Question 370
Architecture principle case — An identity provider accepts a caller-supplied post-login destination with no approved-origin checks. The design review is extracting the transferable lesson for later software projects. Which security principle best governs the observation?
Explanation
Correct Answer
In Q0370, the fictional organizational observation is: An identity provider accepts a caller-supplied post-login destination with no approved-origin checks. The distinct underlying risk mechanism is: Untrusted redirect destinations can route users into attacker-controlled follow-up flows. Choice C addresses the governing security-design principle because it states: Navigation after authentication must not transfer trust to arbitrary destinations. This fits the governing design principle: Navigation after authentication must not transfer trust to arbitrary destinations. For measurable acceptance, the team should: Tests reject off-site redirect parameters while legitimate login journeys remain functional. Sustained prevention requires: Use a central redirect policy and review callback URLs when applications change.
Incorrect Answers
Choice A describes a plausible governing security-design principle for a separate security issue, path traversal through upload filename: Attacker-controlled path components can escape the intended storage directory. Its proposed response, “A filename is untrusted input, not authority to choose a server filesystem destination”, does not directly resolve this case. The discriminating cause is: Untrusted redirect destinations can route users into attacker-controlled follow-up flows. A stronger governing security-design principle would be: Navigation after authentication must not transfer trust to arbitrary destinations. An objective reviewer would test: Tests reject off-site redirect parameters while legitimate login journeys remain functional.
Choice B describes a plausible governing security-design principle for a separate security issue, improper use of password hashing: The storage design uses a fast or deterministic hash unsuited to resisting offline guesses. Its proposed response, “Password hashes require purpose-built resistance to guessing, not mere irreversibility”, does not directly resolve this case. The discriminating cause is: Untrusted redirect destinations can route users into attacker-controlled follow-up flows. A stronger governing security-design principle would be: Navigation after authentication must not transfer trust to arbitrary destinations. An objective reviewer would test: Tests reject off-site redirect parameters while legitimate login journeys remain functional.
Choice D describes a plausible governing security-design principle for a separate security issue, xml parser trusts external entities: Parser features allow external resource access unrelated to the application's business purpose. Its proposed response, “Data formats often carry optional execution or retrieval features that must be deliberately restricted”, does not directly resolve this case. The discriminating cause is: Untrusted redirect destinations can route users into attacker-controlled follow-up flows. A stronger governing security-design principle would be: Navigation after authentication must not transfer trust to arbitrary destinations. An objective reviewer would test: Tests reject off-site redirect parameters while legitimate login journeys remain functional.



Secure Software Design (KEO1) Practice Tests