OWASP A01 · API1 (BOLA) · CWE-639
Broken access control
- Cause
- The application checks that a user is signed in but not whether the requested record belongs to them. Authorization is enforced in the interface and not repeated on the server.
- Impact
- A user changes the id in the address and reads or edits someone else’s invoice, order or personal data.
- How we fix it
- We enforce ownership on every endpoint on the server, through one central authorization policy.
- We test every resource with cross-account requests from two separate users.
- We lock the fix in with an automated test that expects another user’s request to be rejected with 403.