API Authorization Testing Walkthrough Against OWASP crAPI
Broken object-level authorization is consistently one of the most common, highest-impact API vulnerability classes, and one of the hardest for automated tools to find, because a bypassed authorization check still returns a normal-looking, authenticated response. This walkthrough uses OWASP crAPI, a public project purpose-built for practicing exactly this kind of testing, to demonstrate how we approach it.
Context
OWASP crAPI is a publicly available, intentionally vulnerable API project maintained for security training and research. This write-up uses it to demonstrate our API testing methodology against a known, public target, not a client environment. No client data, credentials, or infrastructure are involved.
Objectives
- Demonstrate a structured approach to API authorization testing (BOLA/IDOR and function-level authorization)
- Show how authorization issues are identified and verified, not just flagged by an automated scanner
- Illustrate the kind of evidence and reporting we produce for API Security Testing engagements
Scope
The publicly documented vulnerable endpoints of OWASP crAPI, run in a local, isolated instance for this walkthrough, using accounts created specifically for this exercise.
Methodology
- Reviewed the available API surface and created test accounts representing two separate users
- Mapped each endpoint to the data and operations it should and shouldn't expose for a given user
- Systematically tested object references (e.g. order IDs, vehicle IDs) by substituting the second account's identifiers while authenticated as the first
- Tested administrative/internal-sounding endpoints for function-level authorization enforcement
The technical challenge
The application returns a 200 response with valid-looking data even when the authorization check has failed: the same shape of response as a legitimate request. Confirming a real authorization bypass, rather than a coincidental data match, required carefully constructing unambiguous test cases per object type.
Findings / observations
- An authenticated user could retrieve another user's order and vehicle data by substituting object identifiers in otherwise-authenticated requests, with no per-request ownership check
- A user-facing endpoint for retrieving account details leaked more fields than the client application visibly displayed, which widened the authorization issue's practical impact
Impact
Demonstrates the common real-world pattern where authentication is correctly enforced but per-object authorization is not: exactly the class of issue a scanner typically cannot find, because the endpoint returns a structurally valid, authenticated response regardless of whose data is requested.
Remediation recommendations
- Enforce object-ownership checks server-side on every request that accepts a client-supplied identifier, not just at the UI layer
- Apply the principle of least data exposure: return only the fields the authenticated client needs, not the full backing object
- Add automated authorization-matrix tests (per role, per object type) to the API's test suite to catch regressions
Lessons learned
This is a deliberately well-known, public training target, and the issues demonstrated here are documented as part of the crAPI project itself: the value of this write-up is in showing our testing process and reporting structure, not in revealing anything novel about crAPI. The same systematic, per-object-type testing approach is what we apply to real client APIs under API Security Testing.