Question 390
At fictional Eaglebridge Publishing, a software-security team is conducting a security incident follow-up assessment without placing confidential information in build artifacts. The case observation is: A profile API automatically maps every JSON property into a user database model, including isAdmin and billingLimit. The team must select a defensible control or assessment. Which repeatable engineering safeguard would most directly reduce recurrence?
Explanation
Writer-proposed answer: B (UNVERIFIED)
Preliminary individual option explanations — NOT expert validated
Correct Answer
External request schemas should expose only intentionally writable fields rather than entire internal models. Requests containing unexpected privileged fields are rejected or ignored without changing protected records.
Incorrect Answers
This response concerns path traversal in document access. Here, a profile API automatically maps every JSON property into a user database model, including isAdmin and billingLimit. The confirming evidence is: Requests containing unexpected privileged fields are rejected or ignored without changing protected records.
Focusing on output encoding for html would leave this problem unresolved: A profile API automatically maps every JSON property into a user database model, including isAdmin and billingLimit.
Parameterized database queries concerns another aspect of the problem. External request schemas should expose only intentionally writable fields rather than entire internal models.