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

Taught in

References