# 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 ([[raw/medium.com/the-wildcard-parameter-that-exposed-60-million-usps-accounts-15889|USPS]]). A classic swap: `GET /app-api/enduserapp/profile/{userId}` returned any user's PII, with `200`/`404` enabling enumeration ([[raw/zyt00nax0x.medium.com/idor-in-app-api-enduserapp-profile-userid-cross-account-pii-disclosure-15809|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 ([[raw/medium.com/graphql-alias-batching-bypasses-rate-limiting-15820|voucher]], [[raw/github.com/saleor-dos-via-unbounded-graphql-query-batching-15819|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. ## 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 - [[raw/owasp.org/owasp-api-security-project-owasp-foundation-2713|OWASP API Security Project - OWASP Foundation]] - [[raw/owasp.org/owasp-api-security-top-10-2747|OWASP API Security Top 10]] - [[raw/wiz.io/owasp-api-security-top-10-risks-3712|OWASP API Security Top 10 Risks]] - [[raw/salt.security/owasp-api-security-top-10-explained-salt-security-2739|OWASP API Security Top 10 Explained - Salt Security]] - [[raw/salt.security/api4-2023-unrestricted-resource-consumption-4913|API4:2023 Unrestricted Resource Consumption]] - [[raw/paloaltonetworks.com/what-is-broken-object-property-level-authorization-4907|What Is Broken Object Property Level Authorization?]] - [[raw/medium.com/exploiting-all-10-owasp-api-security-risks-in-vapi-bonus-arena-challen-14687|Exploiting All 10 OWASP API Security Risks in vAPI (+ Bonus Arena Challenges)]] - [[raw/medium.com/the-200-ok-that-hands-over-someone-else-s-data-13716|The 200 OK That Hands Over Someone Else’s Data]] - [[raw/arxiv.org/enhancing-rest-api-fuzzing-with-access-policy-violation-detection-3015|Enhancing REST API Fuzzing with Access Policy Violation Detection]] - [[raw/medium.com/the-wildcard-parameter-that-exposed-60-million-usps-accounts-15889|The Wildcard Parameter That Exposed 60 Million USPS Accounts]] - [[raw/zyt00nax0x.medium.com/idor-in-app-api-enduserapp-profile-userid-cross-account-pii-disclosure-15809|IDOR in /app-api/enduserapp/profile/{userId} — Cross-Account PII Disclosure]] - [[raw/medium.com/graphql-alias-batching-bypasses-rate-limiting-15820|GraphQL Alias Batching Bypasses Rate Limiting]] - [[raw/github.com/saleor-dos-via-unbounded-graphql-query-batching-15819|Saleor: DoS via unbounded GraphQL query batching]]