Lion Cipher Lab

Plan crAPI authorization tests from the inventory: a matrix, an order of work, and a ledger

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

Steps in this lab

  1. A matrix first, tests second
  2. The rules the planner applies
  3. Write the planner
  4. Read the plan
  5. Decide the public operations before you test
  6. Run it safely: an order of work
  7. Keep a ledger, and let the script check your discipline
  8. The defender's view: the matrix is a regression test
  9. What this plan does not cover

Open the full interactive lab →

Keep learning