Question 400
Architecture principle case — A fraud service trusts a caller-supplied forwarding address to bypass access policies. The design review is extracting the transferable lesson for later software projects. Which security principle best governs the observation?
Explanation
Correct Answer
In Q0400, the fictional organizational observation is: A fraud service trusts a caller-supplied forwarding address to bypass access policies. The distinct underlying risk mechanism is: The code assumes transport metadata is authenticated even when supplied by untrusted clients. Choice D addresses the governing security-design principle because it states: Headers have no inherent authenticity unless the trusted network path establishes it. This fits the governing design principle: Headers have no inherent authenticity unless the trusted network path establishes it. For measurable acceptance, the team should: Spoofed forwarded addresses cannot change authorization or rate-limit identity in edge tests. Sustained prevention requires: Document trusted proxy chains and validate them after load-balancer changes.
Incorrect Answers
Choice A describes a plausible governing security-design principle for a separate security issue, weak account enumeration protection: Public authentication responses reveal sensitive account existence through wording or timing. Its proposed response, “Error handling should not become a directory of identities attackers can validate”, does not directly resolve this case. The discriminating cause is: The code assumes transport metadata is authenticated even when supplied by untrusted clients. A stronger governing security-design principle would be: Headers have no inherent authenticity unless the trusted network path establishes it. An objective reviewer would test: Spoofed forwarded addresses cannot change authorization or rate-limit identity in edge tests.
Choice B describes a plausible governing security-design principle for a separate security issue, sql query composed from user fields: Untrusted input was used to construct executable database syntax rather than bound as data. Its proposed response, “Separating instructions from untrusted data prevents injection at database execution boundaries”, does not directly resolve this case. The discriminating cause is: The code assumes transport metadata is authenticated even when supplied by untrusted clients. A stronger governing security-design principle would be: Headers have no inherent authenticity unless the trusted network path establishes it. An objective reviewer would test: Spoofed forwarded addresses cannot change authorization or rate-limit identity in edge tests.
Choice C describes a plausible governing security-design principle for a separate security issue, improper json schema validation: Input validation checks shape but not business semantics or cross-field constraints. Its proposed response, “Syntactically valid data may still violate security-relevant business invariants”, does not directly resolve this case. The discriminating cause is: The code assumes transport metadata is authenticated even when supplied by untrusted clients. A stronger governing security-design principle would be: Headers have no inherent authenticity unless the trusted network path establishes it. An objective reviewer would test: Spoofed forwarded addresses cannot change authorization or rate-limit identity in edge tests.



Secure Software Design (KEO1) Practice Tests