Lion Cipher Lab
Plan crAPI authorization tests from the inventory: a matrix, an order of work, and a ledger
- Penetration Testing / Red Team
- Advanced
- ~60 min
- Free · no account required
Why it matters
Authorization bugs hide in the cases nobody wrote down. An API of 44 operations has dozens of questions of the form who may call this on whose object, and a tester who works from memory covers the exciting ones and skips the rest. OWASP's cheat sheet on automating authorization tests describes the fix: write the authorization matrix down, feature by role, in a file a person and a program can both read, and test from it. This lab builds that matrix and a test plan from the inventory, in an order that keeps your data safe, and a ledger that shows what is done and what is only claimed.
What you'll learn
- building an authorization matrix of feature by point of view
- turning the matrix into numbered test cases with an expected result
- ordering tests so reads come first and deletes last, on objects you own
- keeping a ledger that shows what was run, what passed, and what has evidence
- separating authorization tests from login, one-time-code and rate-limit tests
Steps in this lab
- A matrix first, tests second
- The rules the planner applies
- Write the planner
- Read the plan
- Decide the public operations before you test
- Run it safely: an order of work
- Keep a ledger, and let the script check your discipline
- The defender's view: the matrix is a regression test
- What this plan does not cover
Open the full interactive lab →