Lion Cipher Lab
Inventory crAPI from its OpenAPI document: which operations are public, take an id, or exist in several versions
- Penetration Testing / Red Team
- Intermediate
- ~50 min
- Free · no account required
Why it matters
An API is a long list of operations, and most of them are not on any screen. Before choosing what to test you need that list. crAPI ships an OpenAPI document that describes its operations, which makes it a good place to practise the method: read the document, mark which operations are public, which take an object id, which look administrative and which exist in several versions. OWASP's inventory risk is about exactly this: hosts, versions and documentation that nobody is keeping track of. The inventory you build here is what lab 2 turns into a test plan.
What you'll learn
- reading an OpenAPI document for operations, security and parameters
- finding object ids in the path, the query string and the request body
- catching path-level parameters that a quick script misses
- spotting public operations, admin-looking paths and old versions of one function
- writing a check that fails when an operation declares no security at all
Steps in this lab
- The authorization rule for the API series
- Get the document and read how OpenAPI describes an operation
- Write the inventory script
- Read the counts and the five groups
- The path-level parameter trap
- Versions: the same function more than once
- The defender's view: keep the document honest, and test it
- Keep the files
Open the full interactive lab →