Problem Statement
Which mistake leads to Mass Assignment or property-level auth bugs in APIs?
Explanation
If the API blindly maps client fields to server models, attackers can set sensitive fields like isAdmin. OWASP’s API list merges this with property-level authorization concerns. Use explicit allowlists and server-side checks.
Code Solution
SolutionRead Only
allowed = pick(req.body, ['name','email']); user.update(allowed);
