Lion Cipher Lab

Test for broken access control (IDOR) — on your own app

Why it matters

Broken Access Control is the number-one risk in the OWASP Top 10, and its most common form is the Insecure Direct Object Reference (IDOR): an application uses a value from the request — an id in a URL or body — to fetch a record, but fails to check that the logged-in user is actually allowed to see THAT record. Change the id, get someone else's data. It's devastatingly common and easy to introduce, because it works fine in testing (you only ever look at your own data) and only fails when someone tries another id. Learning to test for it — safely, on your own app — and understanding the one…

What you'll learn

Steps in this lab

  1. The rule, and what broken access control is
  2. Spot the object references in requests
  3. Test it: change an id you own to one you don't
  4. Understand why it happens: missing server-side checks
  5. The fix: authorize every object access on the server
  6. Test the whole surface, not one endpoint
  7. Why the #1 risk is worth mastering

Open the full interactive lab →