Question 390
Architecture principle case — A cloud storage quota check multiplies user-supplied item counts using an unsafe narrow integer type. The design review is extracting the transferable lesson for later software projects. Which security principle best governs the observation?
Explanation
Correct Answer
In Q0390, the fictional organizational observation is: A cloud storage quota check multiplies user-supplied item counts using an unsafe narrow integer type. The distinct underlying risk mechanism is: Numeric conversion or overflow changes the value used to enforce a security-relevant limit. Choice A addresses the governing security-design principle because it states: Mathematical constraints must remain true after every representation and type conversion. This fits the governing design principle: Mathematical constraints must remain true after every representation and type conversion. For measurable acceptance, the team should: Boundary-value tests show oversized quantities fail rather than bypass resource or payment limits. Sustained prevention requires: Include overflow and precision checks in financial and resource consumption code review.
Incorrect Answers
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: Numeric conversion or overflow changes the value used to enforce a security-relevant limit. A stronger governing security-design principle would be: Mathematical constraints must remain true after every representation and type conversion. An objective reviewer would test: Boundary-value tests show oversized quantities fail rather than bypass resource or payment limits.
Choice C describes a plausible governing security-design principle for a separate security issue, unsafe html sanitizer allowlist: The sanitization policy allows active browser capabilities in supposedly harmless user content. Its proposed response, “Rich-text acceptance requires explicit limits on browser capabilities, not blanket markup trust”, does not directly resolve this case. The discriminating cause is: Numeric conversion or overflow changes the value used to enforce a security-relevant limit. A stronger governing security-design principle would be: Mathematical constraints must remain true after every representation and type conversion. An objective reviewer would test: Boundary-value tests show oversized quantities fail rather than bypass resource or payment limits.
Choice D describes a plausible governing security-design principle for a separate security issue, credentials accidentally recorded in audit text: A coding convenience moved reusable credentials into a lower-trust telemetry store. Its proposed response, “Logs should explain failures without becoming an alternate repository of usable credentials”, does not directly resolve this case. The discriminating cause is: Numeric conversion or overflow changes the value used to enforce a security-relevant limit. A stronger governing security-design principle would be: Mathematical constraints must remain true after every representation and type conversion. An objective reviewer would test: Boundary-value tests show oversized quantities fail rather than bypass resource or payment limits.



Secure Software Design (KEO1) Practice Tests