Question 380
Architecture principle case — A partner invoice parser fetches external references from untrusted XML by default. The design review is extracting the transferable lesson for later software projects. Which security principle best governs the observation?
Explanation
Correct Answer
In Q0380, the fictional organizational observation is: A partner invoice parser fetches external references from untrusted XML by default. The distinct underlying risk mechanism is: Parser features allow external resource access unrelated to the application's business purpose. Choice C addresses the governing security-design principle because it states: Data formats often carry optional execution or retrieval features that must be deliberately restricted. This fits the governing design principle: Data formats often carry optional execution or retrieval features that must be deliberately restricted. For measurable acceptance, the team should: Tests with harmless external references confirm no outbound retrieval or local file access occurs. Sustained prevention requires: Use hardened XML parser settings and regression tests across library upgrades.
Incorrect Answers
Choice A describes a plausible governing security-design principle for a separate security issue, insecure random generation of reset tokens: Reset secrets lack adequate unpredictability against actors who observe timing or earlier values. Its proposed response, “Secrets used as bearer credentials must be unpredictable and short-lived”, does not directly resolve this case. The discriminating cause is: Parser features allow external resource access unrelated to the application's business purpose. A stronger governing security-design principle would be: Data formats often carry optional execution or retrieval features that must be deliberately restricted. An objective reviewer would test: Tests with harmless external references confirm no outbound retrieval or local file access occurs.
Choice B describes a plausible governing security-design principle for a separate security issue, mass assignment of privileged fields: A generic binder exposes security-sensitive model fields to unauthorized user changes. Its proposed response, “Convenient object binding should not give clients authority over fields they are never meant to set”, does not directly resolve this case. The discriminating cause is: Parser features allow external resource access unrelated to the application's business purpose. A stronger governing security-design principle would be: Data formats often carry optional execution or retrieval features that must be deliberately restricted. An objective reviewer would test: Tests with harmless external references confirm no outbound retrieval or local file access occurs.
Choice D describes a plausible governing security-design principle for a separate security issue, improper escaping in template rendering: Untrusted content is interpreted as server-side template instructions. Its proposed response, “Template languages can become execution environments when untrusted text is parsed as instructions”, does not directly resolve this case. The discriminating cause is: Parser features allow external resource access unrelated to the application's business purpose. A stronger governing security-design principle would be: Data formats often carry optional execution or retrieval features that must be deliberately restricted. An objective reviewer would test: Tests with harmless external references confirm no outbound retrieval or local file access occurs.



Secure Software Design (KEO1) Practice Tests