Question 420
Architecture principle case — A login form says the email is not registered, while password failures use a different response. The design review is extracting the transferable lesson for later software projects. Which security principle best governs the observation?
Explanation
Correct Answer
In Q0420, the fictional organizational observation is: A login form says the email is not registered, while password failures use a different response. The distinct underlying risk mechanism is: Public authentication responses reveal sensitive account existence through wording or timing. Choice B addresses the governing security-design principle because it states: Error handling should not become a directory of identities attackers can validate. This fits the governing design principle: Error handling should not become a directory of identities attackers can validate. For measurable acceptance, the team should: Tests compare existing and nonexistent account paths and find no actionable public enumeration signal. Sustained prevention requires: Review authentication and recovery flows for side-channel disclosures during each release.
Incorrect Answers
Choice A describes a plausible governing security-design principle for a separate security issue, unsafe exception text returned to browser: Error handling leaks implementation details while failing to provide actionable safe client responses. Its proposed response, “Detailed diagnostics belong in protected telemetry, not public error surfaces”, does not directly resolve this case. The discriminating cause is: Public authentication responses reveal sensitive account existence through wording or timing. A stronger governing security-design principle would be: Error handling should not become a directory of identities attackers can validate. An objective reviewer would test: Tests compare existing and nonexistent account paths and find no actionable public enumeration signal.
Choice C describes a plausible governing security-design principle for a separate security issue, business logic race in inventory redemption: The resource constraint was checked outside an atomic transaction or concurrency control. Its proposed response, “Security-sensitive business constraints must hold under simultaneous requests, not only serial tests”, does not directly resolve this case. The discriminating cause is: Public authentication responses reveal sensitive account existence through wording or timing. A stronger governing security-design principle would be: Error handling should not become a directory of identities attackers can validate. An objective reviewer would test: Tests compare existing and nonexistent account paths and find no actionable public enumeration signal.
Choice D describes a plausible governing security-design principle for a separate security issue, integer arithmetic overflows a resource cap: Numeric conversion or overflow changes the value used to enforce a security-relevant limit. Its proposed response, “Mathematical constraints must remain true after every representation and type conversion”, does not directly resolve this case. The discriminating cause is: Public authentication responses reveal sensitive account existence through wording or timing. A stronger governing security-design principle would be: Error handling should not become a directory of identities attackers can validate. An objective reviewer would test: Tests compare existing and nonexistent account paths and find no actionable public enumeration signal.



Secure Software Design (KEO1) Practice Tests