broken object property level authorization
OWASP's name for letting a caller read or write individual fields of an object they may access but should not see or change.
Private fields leak out and protected fields can be overwritten.
In more detail
It combines mass assignment on the way in with excessive data exposure on the way out. For every new field, decide whether it is writable, by whom, and whether it appears in a response.
Example
The course's answer: for every new column, say out loud whether it is writable, by whom, and whether it appears in a response.Related terms
- mass assignment — A bug where a handler copies every field of a request body into a data model, so a caller can set fields such as role or balance that were never meant to be writable.
- serialization — Turning an in-memory object into bytes, such as JSON text, that can be sent or stored, and parsing it back again.
- OWASP API Security Top 10 — OWASP’s ranked list of the ten most critical security risks specific to APIs, last updated in 2023.
Taught in
- Mass Assignment — Application Security & Threat Modeling for Engineers