Lion Cipher Lab
Model, fix and retest object-level authorization in a tiny API, with the audit log a defender needs
- Penetration Testing / Red Team
- Advanced
- ~60 min
- Free · no account required
Why it matters
Knowing that an API is vulnerable is half the work. The other half is seeing the fix go in, proving it with the same tests, and leaving behind a log that would have shown the problem. This lab does all three on an API small enough to read in one sitting. It uses the shape OWASP's cheat sheet recommends, an authorization matrix in a file that drives the tests, so you can watch rows change from failing to passing. And it adds the log lines that the access log in an earlier lab could not provide: who, which object, whose, and what the decision was.
What you'll learn
- running a matrix of authorization checks in a safe order against a small API
- seeing why a write case needs a follow-up check that the write changed nothing
- writing the object-level and function-level fixes as two short conditions
- logging each access decision with user, object, owner and outcome
- using an audit log to spot an allow on someone else's object, before and after a fix
Steps in this lab
- What you are building, and the rule
- Save the API, the matrix, and the two scripts
- Run the matrix against the vulnerable API
- Read the audit log: a signal before any fix
- The fix: two conditions
- Retest with the same matrix, and read the new log
- The defender's view: what to carry into a real API
- Clean up
Open the full interactive lab →