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.

ID2023 risk2019 lineage / change
API1Broken Object Level Authorization (BOLA)unchanged
API2Broken Authenticationrenamed only
API3Broken Object Property Level Authorization (BOPLA)merges API3:2019 Excessive Data Exposure + API6:2019 Mass Assignment
API4Unrestricted Resource Consumptionwas “Lack of Resources & Rate Limiting”; renamed to the root cause
API5Broken Function Level Authorization (BFLA)unchanged
API6Unrestricted Access to Sensitive Business Flowsnew
API7Server-Side Request Forgerynew
API8Security Misconfigurationwas API7:2019
API9Improper Inventory Managementwas “Improper Assets Management”
API10Unsafe Consumption of APIsnew

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)

IDConcrete test
API1Same 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.
API2Token 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.
API3Add role, isAdmin, credit to writes. Diff response fields across roles. GraphQL exposes every schema field unless resolvers enforce field-level authz.
API4Raise 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.
API5Call 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.
API6Automate checkout, signup or booking at scale. Look for flows with no compensating control (no bot detection, no per-identity cap).
API7Supply URLs the server fetches. Target metadata and loopback (Server-Side Request Forgery).
API8CORS reflecting Origin with Access-Control-Allow-Credentials: true (vAPI api7 leaked authkey to Origin: evil.com), verbose errors, unnecessary methods.
API9Downgrade /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.
API10Feed 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, with 200/404 enabling 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-id claims 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.254 egress from workloads, use egress allowlists and private endpoints.

Sources