Lion Cipher Lab

Inventory crAPI from its OpenAPI document: which operations are public, take an id, or exist in several versions

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

Steps in this lab

  1. The authorization rule for the API series
  2. Get the document and read how OpenAPI describes an operation
  3. Write the inventory script
  4. Read the counts and the five groups
  5. The path-level parameter trap
  6. Versions: the same function more than once
  7. The defender's view: keep the document honest, and test it
  8. Keep the files

Open the full interactive lab →

Keep learning