broken object level authorization
An API flaw where changing an identifier in a request, such as /tasks/2 instead of /tasks/1, lets a caller reach an object that belongs to someone else.
Guessable identifiers expose every user’s objects to every other user.
In more detail
It is first in the OWASP API Security Top 10. Every handler that takes an identifier must check that the authenticated caller may use that particular object.
Related terms
- broken access control — A flaw where the server lets a caller act on data or operations it should not, for example by trusting a user name the caller supplied or skipping an ownership check.
- authorization — Deciding whether an already identified caller may perform a particular action on a particular resource.
- identifier — A name or number that picks out exactly one thing, such as one container, one image or one database row.
- attribute-based access control — An authorization model that decides each request from attributes of the subject, the resource and the environment, such as owner, department or time of day.
- affordance — A visual clue that tells people what they can do with something, such as a raised look that says a button can be pressed.
- ownership check — Confirming that the object a caller asked for actually belongs to that caller before returning or changing it.
- nested route — A URL with several identifiers, such as /customers/c-7/orders/1002, where one object sits under another.
- enumeration attack — Recovering a hidden value by trying every possibility in a small, known set until one matches, such as every date of birth or every username.
Taught in
- RBAC Contrasted With ABAC — Modern API Architecture: REST, GraphQL & gRPC
- Security Best Practices — Modern API Architecture: REST, GraphQL & gRPC
- Role-Based & Attribute Access Control: RBAC & ABAC — Production Full-Stack Engineering
- Authentication Versus Authorisation — Application Security & Threat Modeling for Engineers
- Broken Object Level Authorization — Application Security & Threat Modeling for Engineers