ownership check
Confirming that the object a caller asked for actually belongs to that caller before returning or changing it.
In more detail
Put the owner inside the database query or loader function, so no route can reach the data without the check. Answer not found rather than forbidden so the caller cannot learn that the object exists.
Example
The course puts the owner inside the database query or loader function, so no route can reach the data without the check, and answers not found rather than forbidden so the caller cannot learn that the object exists.Related terms
- 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.
- authorization — Deciding whether an already identified caller may perform a particular action on a particular resource.
- 404 Not Found — The HTTP status meaning there is no resource at the requested address.
Taught in
- Authentication Versus Authorisation — Application Security & Threat Modeling for Engineers
- Broken Object Level Authorization — Application Security & Threat Modeling for Engineers