Web Application & API Protection
Blog →
Web Application & API Protection

OWASP API Security Top 10 (2023): risks explained and how to prevent them | Harness Blog

The OWASP API Security Top 10 covers the most critical API risks, from BOLA to unsafe API consumption. See each risk explained and how to prevent it.

OWASP API Security Top 10 (2023): risks explained and how to prevent them

TL;DR

  • OWASP's 2023 API Top 10 ranks the ten most critical API-specific risks, led by Broken Object Level Authorization.
  • Three of the top five risks are authorization failures, so an authenticated request can still reach another user's data.
  • BOLA is hard for scanners to catch because a request for someone else's object looks identical to a legitimate one.
  • Prevention means server-side authorization on every request, a live API inventory, and tests aimed at business-logic flaws.

Answer capsule

What is the OWASP API Security Top 10? 

The OWASP API Security Top 10 is OWASP's ranked list of the ten most critical security risks specific to APIs, last updated in 2023. OWASP counts three of the top five entries as authorization failures, where a valid request still reaches data or functions the caller should not touch.

Quick facts: OWASP API Security Top 10
Publisher OWASP API Security Project
Current edition 2023, the list's second release after the original 2019 edition (OWASP release post)
Top-ranked risk API1:2023 Broken Object Level Authorization (BOLA)
BOLA rating Exploitability easy, prevalence widespread, detectability easy (OWASP API1:2023)
Authorization focus Three of the top five risks (API1, API3, API5) are authorization failures (OWASP)
New in 2023 Unrestricted Access to Sensitive Business Flows (API6) and Server Side Request Forgery (API7)
Not the same list as The OWASP Top 10 for web applications, a separate document with its own 2025 edition

‍

Your API can authenticate every request correctly and still hand an attacker someone else's data. That is why Broken Object Level Authorization leads the OWASP API Security Top 10.

Consider an endpoint such as /api/orders/18472. A customer is authorized to view their own order, so the request returns the expected data. But what happens when they change 18472 to 18473? If the API returns another customer's order because it checked the user's identity but not their access to that specific object, you have a broken authorization control.

This is BOLA, one of the risks covered by the OWASP API Security Top 10. This guide breaks down the complete 2023 list, explains BOLA in detail, and covers practical ways to prevent these risks in live APIs.

OWASP provides the authoritative list. This article explains what those risks mean in practice and how to catch business-logic flaws that code review and testing alone can miss.

What is the OWASP API Security Top 10?

The OWASP API Security Top 10, often called the OWASP API Top 10, is a security awareness document from OWASP that identifies the ten most critical security risks specific to APIs. The 2023 edition is the list's second release, following its original publication in 2019.

The API list shows where these risks occur. APIs do more than expose application functionality. They expose objects, properties, functions, and business operations directly to callers. A request can therefore be perfectly valid, properly authenticated, and still access data or perform an action the caller should not be allowed to access.

That is why the API Top 10 focuses heavily on authorization and business logic. Risks such as Broken Object Level Authorization, Broken Object Property Level Authorization, and Broken Function Level Authorization concern what an authenticated caller can do, not simply whether they can access the system.

For developers, architects, and security teams, the list provides a common framework for identifying and testing these API-specific risks.

What are the OWASP API Security Top 10 risks in the 2023 edition?

The OWASP API Security Top 10 risks in the 2023 edition, in order, are:

Risk What goes wrong
API1:2023 Broken Object Level Authorization (BOLA) An API lets a caller access or modify an object by changing an identifier, without checking whether they are authorized to access that specific object.
API2:2023 Broken Authentication Weak or incorrectly implemented authentication allows an attacker to impersonate another user or service.
API3:2023 Broken Object Property Level Authorization An API lets a caller read or modify object properties they should not have access to.
API4:2023 Unrestricted Resource Consumption An API does not adequately limit requests or resource use, allowing a caller to consume excessive resources, drive up costs, or trigger denial of service.
API5:2023 Broken Function Level Authorization A caller can invoke a function, such as an administrative operation, without having the required authorization.
API6:2023 Unrestricted Access to Sensitive Business Flows An API allows legitimate business processes, such as purchasing or account creation, to be automated or abused beyond the scale they were designed to handle.
API7:2023 Server Side Request Forgery (SSRF) An API retrieves a resource from a URL supplied by the caller without properly validating where that request can go, potentially exposing internal systems.
API8:2023 Security Misconfiguration Insecure defaults, unnecessary features, verbose errors, or other configuration weaknesses leave an API unnecessarily exposed.
API9:2023 Improper Inventory Management Forgotten, outdated, undocumented, or otherwise unmanaged API endpoints and versions remain accessible.
API10:2023 Unsafe Consumption of APIs An application trusts data from another API without applying appropriate validation and security controls to that external data.

‍

What makes BOLA (Broken Object Level Authorization) the number one risk in the OWASP API Top 10?

Broken Object Level Authorization (BOLA) is API1 in the OWASP API Security Top 10 and OWASP rates it as easy to exploit and widespread. It occurs when an API returns or modifies an object based on an identifier the caller supplies, such as an order number or account ID, without confirming the caller is authorized to access that specific object.

Why is it so common? Object IDs are often sequential or predictable, making it easy to try another ID. More importantly, authorization checks can be missed on individual endpoints as an API grows. The question an API needs to answer is simple: does this object belong to this caller?

Consider a customer viewing an invoice through an endpoint containing their order number. They change that number and receive another customer's invoice. The API correctly authenticated the customer, but never verified that the invoice belonged to them.

BOLA is difficult for automated tools to catch because it is a business-logic flaw, not a syntax error. The request can be perfectly well-formed, leaving a scanner without context about object ownership unable to distinguish a legitimate request from an unauthorized one.

How do I prevent the OWASP API Security Top 10 vulnerabilities?

Preventing these API security risks comes down to a handful of consistent habits. Authorization comes first, since three of the top five risks on the OWASP API Top 10 (API1, API3, API5) are authorization failures.

Habit What to do
Enforce object-level authorization on every request Check that the caller owns or has explicit permission to access the specific object being requested. Make that decision on the server for every request, rather than relying only on a gateway or client-side control.
Apply least privilege at the function level Verify that a caller has the required role or permission before executing administrative or sensitive functions. Hiding a function from the UI does not prevent someone from calling its endpoint directly.
Validate and limit every input Apply rate limits, payload size limits, and strict schema validation to every endpoint. Limits should reflect what the API actually needs rather than assuming callers will use resources responsibly.
Keep a live inventory Know which API versions and endpoints are actually reachable, including ones that may no longer appear in current documentation.
Validate third-party responses Treat data returned by another API with the same scrutiny you apply to user-supplied input. An external API is another data source your application needs to trust carefully.
Monitor for abuse of legitimate flows Watch for automated, high-volume use of business processes designed for human-scale traffic, such as account creation or purchasing.
Test for business logic flaws specifically Standard vulnerability scanners can miss authorization flaws such as BOLA because the request itself may be completely valid. Test whether users can access objects, properties, and functions beyond what their permissions allow.
Harden authentication Use standard, well-tested authentication mechanisms, apply strict rate limits and lockout to login and token endpoints, and validate token signature, expiry, and audience on every request.
Restrict outbound requests When an API fetches a caller-supplied URL, validate it against an allow-list of permitted destinations and block requests to internal address ranges.
Secure configuration Disable unnecessary features and verbose error messages, restrict CORS to known origins, and apply the same hardened configuration in every environment.

‍

Prevention is not a one-time exercise. API surfaces change with every release, so you must maintain and test these controls continuously on APIs as they evolve.

Why do these API security risks need a runtime defense, not just testing?

Testing and code review catch a lot, but several of the highest-risk items on the OWASP API Security Top 10, BOLA above all, are business-logic flaws that are easy to miss because the request is valid, and the software is operating exactly as intended. An API can be operating exactly as designed with no vulnerabilities and still be susceptible to business logic abuse. 

  • A well-formed request can still be unauthorized: A request that reaches someone else's data can look identical to a legitimate request because the attack is the user being the wrong user, not in the request itself.
  • The API surface changes constantly: A risk assessment performed during testing can go stale as new endpoints, versions, and functionality are introduced.
  • Runtime defense fills that gap: Watching live API traffic in production helps teams identify suspicious access patterns and abuse that may not have appeared during pre-release testing.

Runtime defense does not replace testing or code review. It complements them by providing visibility into how APIs are used in production.

How Harness protects live APIs against the OWASP API Top 10

The challenge

Several of the risks in the OWASP API Security Top 10, BOLA especially, are difficult to identify from code alone. They become clearer when you can see how real requests interact with your APIs in production.

The approach

The Harness Runtime Protection Agent provides that runtime layer, watching live API traffic to help teams identify exposure, suspicious access patterns, and abuse that pre-release testing may not reveal.

Harness API Posture Management continuously discovers API endpoints from live traffic, including shadow and forgotten APIs, and scores them for exposure and drift.

That directly addresses API9, Improper Inventory Management. An endpoint that nobody knows exists can easily escape security review and authorization controls.

Catch the abuse a syntax check misses. 

A request can be valid in every technical sense and still indicate an authorization bypass. Harness API Advanced Protection uses behavioral analysis on live API traffic to identify access-control bypasses, including patterns such as a caller moving through object IDs that do not belong to them.

It also helps detect unrestricted resource consumption by looking at how requests are actually being used, rather than only checking whether individual requests conform to expected syntax.

Extend the same coverage to AI-fronting APIs. 

As more APIs sit in front of an LLM, agent, or AI service, those endpoints become part of the API security surface. Harness AI Security extends discovery and posture scoring to these AI-fronting APIs, helping teams identify endpoints and assess their security posture when they might otherwise fall outside the existing API inventory.

The outcome

The result is broader coverage of the API environment, including the APIs supporting AI workloads, rather than treating AI-facing endpoints as a separate security problem. Together, these capabilities give security teams a shared view of API exposure, posture, and runtime abuse. Instead of reconciling separate reports for discovery, protection, and AI-facing APIs, teams can see these signals in one place while keeping testing and code review as part of the broader security process.

What this means for your APIs

Passing a code review does not necessarily tell you what will happen once an API is handling real traffic. A better question is: if someone started walking through object IDs that do not belong to them, would you catch it? And, could you stop it?

The 2023 risks become more useful when you can recognize how they appear in your APIs, understand business-logic flaws such as BOLA, and see what happens when those APIs handle real traffic.

That is where continuous runtime visibility complements testing and code review, giving your team another way to identify exposure and abuse after an API reaches production.

See how Harness watches live API traffic to help catch and mitigate the business-logic abuse a code scan alone can miss.

Explore Harness API Protection

← Previous:
Next: →‍

FAQs

Related Resources

Get Started

Get Started with Harness AI

Try the full platform free. No module restrictions, no credit card.

Christine Ferrusi Ross
Principal Product Marketing Manager
Christine Ferrusi Ross leads product marketing for Harness’ runtime security – WAAP and AI Security. Prior to Harness she worked in observability and application security, and blockchain. She also spent many years as an industry analyst helping organizations buy and manage emerging technologies and services.
christine-ferrusi-ross
Christine Ferrusi Ross