OWASP API Security Top 10
OWASP’s API-specific risk list (current edition 2023, separate from the web Top 10). It ranks authorization failures above everything else and frames API risk around object, property and function-level access, resource abuse, and inventory.
How it works
The 2023 edition was the first update since 2019 (released June 2023). It moves away from technical misconfiguration toward business-logic abuse and trust in third parties.
| ID | 2023 risk | 2019 lineage / change |
|---|---|---|
| API1 | Broken Object Level Authorization (BOLA) | unchanged |
| API2 | Broken Authentication | renamed only |
| API3 | Broken Object Property Level Authorization (BOPLA) | merges API3:2019 Excessive Data Exposure + API6:2019 Mass Assignment |
| API4 | Unrestricted Resource Consumption | was “Lack of Resources & Rate Limiting”; renamed to the root cause |
| API5 | Broken Function Level Authorization (BFLA) | unchanged |
| API6 | Unrestricted Access to Sensitive Business Flows | new |
| API7 | Server-Side Request Forgery | new |
| API8 | Security Misconfiguration | was API7:2019 |
| API9 | Improper Inventory Management | was “Improper Assets Management” |
| API10 | Unsafe Consumption of APIs | new |
Removed in 2023: Injection and Insufficient Logging & Monitoring. Both still appear in labs built on the 2019 list, such as vAPI.
The BOPLA merge is the key conceptual change. Read-side leakage (Excessive Data Exposure) and write-side binding (Mass Assignment) share one root cause: object-level checks exist, but nobody decides per field what this caller may read or write.
Techniques / payloads (what to test per item)
| ID | Concrete test |
|---|---|
| API1 | Same token, different object: GET /vapi/api1/user/1 with a freshly registered user’s token returned user 1’s profile. Prove it with two accounts per role. See BOLA in APIs. |
| API2 | Token validation and expiry, revocation on password change, JWT none/weak key (JSON Web Tokens), credential stuffing on login and reset. vAPI api2: GET /user/details returned every user’s token field. |
| API3 | Add role, isAdmin, credit to writes. Diff response fields across roles. GraphQL exposes every schema field unless resolvers enforce field-level authz. |
| API4 | Raise page_size/max_return (Salt example: 250 → 20,000). Brute-force a 4-digit OTP with no throttle (vAPI api4: 0000–9999, hit 1872). See API Rate Limiting. |
| API5 | Call admin routes as a normal user. vAPI api5: ffuf found /api5/users; it returned 403 unauthenticated but 200 with the full user table for a low-privilege token. See Function Level Authorization. |
| API6 | Automate checkout, signup or booking at scale. Look for flows with no compensating control (no bot detection, no per-identity cap). |
| API7 | Supply URLs the server fetches. Target metadata and loopback (Server-Side Request Forgery). |
| API8 | CORS reflecting Origin with Access-Control-Allow-Credentials: true (vAPI api7 leaked authkey to Origin: evil.com), verbose errors, unnecessary methods. |
| API9 | Downgrade /v2/ → /v1/. vAPI api9: v2 PIN login sent X-RateLimit-Limit: 5; v1 had no limiter, so PIN 1655 fell after 795 requests. See API Discovery. |
| API10 | Feed malformed responses and redirects from the third-party APIs the target consumes. |
Notable cases
- Uber (2016), Facebook (2018), Trello (2024) are cited as BOLA breaches leaking millions of users’ PII. The Capital One SSRF → IMDSv1 → S3 path is cited under API2/API7 (see Capital One Breach).
- 42crunch “State of API Security 2026” (200 incidents from 2024–25) found Missing Authentication the most frequent API vulnerability of 2025. The EvoMaster paper uses this to motivate BOLA/BFLA oracles in fuzzers (API Fuzzing).
- Scanner blind spot. BOLA, BOPLA and business-flow abuse all return a valid
200 OK. Signature DAST can’t tell whose record a token should reach, which is why manual, role-matrix testing is still the core of an API engagement. - API1 without an ID swap. USPS Informed Visibility accepted wildcard search terms, returning ~60M accounts to any logged-in user — no object-level scoping existed at all (USPS). A classic swap:
GET /app-api/enduserapp/profile/{userId}returned any user’s PII, with200/404enabling enumeration (profile IDOR). - API4 via GraphQL. Alias batching past a request-count limit on a voucher endpoint caused 504s; Saleor’s unbounded array batching bypassed per-query complexity limits (voucher, Saleor).
Defenses
- API1/API5: validate JWTs at the gateway and re-authorize in each backend service. Pass trusted
user-id/tenant-idclaims to internal services. Use row-level security in data stores. Use central policy-as-code and RBAC/ABAC with route- and method-level permissions. - API3: explicit field allowlists on input. JSON Schema validation with
readOnly/writeOnly. Strip or reject unknown fields. Response DTOs instead of serializing entities. - API4: rate, concurrency and timeout limits at the gateway and in serverless functions. Page-size caps. Baseline traffic per parameter.
- API2/API7 in cloud: enforce IMDSv2, block
169.254.169.254egress from workloads, use egress allowlists and private endpoints.
Related
- API Security
- BOLA in APIs
- Function Level Authorization
- Mass Assignment
- Excessive Data Exposure
- API Rate Limiting
- API Discovery
- Server-Side Request Forgery
- API Fuzzing
Sources
- OWASP API Security Project - OWASP Foundation · original
- OWASP API Security Top 10 · original
- OWASP API Security Top 10 Risks · original
- OWASP API Security Top 10 Explained - Salt Security · original
- API4:2023 Unrestricted Resource Consumption · original
- What Is Broken Object Property Level Authorization? · original
- Exploiting All 10 OWASP API Security Risks in vAPI (+ Bonus Arena Challenges) · original
- The 200 OK That Hands Over Someone Else’s Data · original
- Enhancing REST API Fuzzing with Access Policy Violation Detection · original
- The Wildcard Parameter That Exposed 60 Million USPS Accounts · original
- IDOR in /app-api/enduserapp/profile/{userId} — Cross-Account PII Disclosure · original
- GraphQL Alias Batching Bypasses Rate Limiting · original
- Saleor: DoS via unbounded GraphQL query batching · original