A pen test reports that a web API allows mass assignment because it maps user JSON fields directly onto server-side objects. Which mitigation most directly addresses the vulnerability class?
Answer
Implement an explicit allowlist of fields that the server accepts for each operation
Explanation
Mass assignment is prevented by restricting server-side binding to an allowlisted set of fields, not by obscuring or encrypting the input.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
An organization’s threat hunting hypothesis is: “credential dumping will be followed quickly by lateral movement attempts using the same host.” Which analytic strategy best tests this causality claim?
View question →
A threat actor exfiltrates sensitive records by encoding data in HTTP headers rather than the body to bypass content inspection rules. Which detection strategy is most likely to catch this method?
View question →
You are asked to design a log strategy for an environment where attackers may attempt to evade detection by stopping agents. Which logging control most directly preserves forensic visibility even if endpoint agents are disabled?
View question →
A SOC suspects ransomware but only sees suspicious file renames, not mass encryption yet. Which action is most appropriate to validate the hypothesis while preserving evidence?
View question →
During incident triage, analysts find that the attacker used valid VPN credentials but never touched the VPN client configuration. Which analysis step most directly tests whether the credentials were obtained through an existing session rather than from password theft?
View question →
In a cloud environment, you observe sudden privilege increases through role assignments that appear to use a service principal rather than a human identity. What is the most likely root-cause category?
View question →