Skip to content
ShankarStack
IntermediateProAPI Security150 pts

API BOLA

Work through broken object-level authorization on a REST API — the most common serious API flaw.

This is an isolated, sandboxed environment created only for you. Techniques here apply only to systems you own or are authorised to test.

Scenario

A REST API exposes endpoints that take an object ID. At least one returns or modifies the object without confirming the authenticated caller is authorised for that specific object.

Objective

Access an object you shouldn't via the API, then specify the per-request authorization fix.

Your approach

  1. Authenticate and enumerate the API's object-referencing endpoints.
  2. Act on your own objects, noting the ID scheme.
  3. Attempt to access another principal's object via the API.
  4. Confirm the server does not enforce per-object authorization.
  5. Specify the authorization check applied on every request.

Rules of engagement

Run this lab only in the isolated environment provided — the downloadable bundle runs on your own machine in a private Docker network. Only interact with the lab's target, keep testing non-destructive, and never use these techniques on systems you don't own or aren't authorised to test. When you've met the objective, submit the flag (format SS{...}) to score.

Remediation focus

Enforce object-level authorization centrally on every request using the authenticated principal, and validate tenant scoping for multi-tenant APIs.

Deliverable

Write up what you did, what you observed, the business impact, and a clear remediation — exactly as you would in a professional report.

Hints

Hint 1

Re-read the matching knowledge-base entry before you start.

Hint 2

Capture reproducible evidence as you go — you'll need it for the write-up.

Hint 3

For every finding, identify the single control that would prevent it.

Study the theory

Read the Broken Object-Level Authorization (BOLA) knowledge-base entry

→