nested route
A URL with several identifiers, such as /customers/c-7/orders/1002, where one object sits under another.
In more detail
The trap is checking the parent and forgetting the child, so a caller keeps their own account in the path and swaps only the order identifier. Check every segment, or derive the child from the authorised parent.
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.
- ownership check — Confirming that the object a caller asked for actually belongs to that caller before returning or changing it.
Taught in
- Broken Object Level Authorization — Application Security & Threat Modeling for Engineers