I. Overview

%%{init: { 'theme': 'base', 'themeVariables': { 'edgeLabelBackground': '#fff' }}}%%
flowchart LR
    A["Exposed endpoints"] -- "OWASP API Top 10\nmanagement" --> B["Secure data\nconnectivity"]
    style A fill:#f9f9f9,stroke:#333,stroke-width:3px
    style B fill:#e1f5fe,stroke:#01579b,stroke-width:3px

Definition: API security refers to the technologies and processes that protect the API interfaces supporting interaction between applications from unauthorized access, data leakage, and availability breaches.

Features:
( Data-Centric Communication ) Unlike traditional web (HTML), interaction is centered on structured data such as JSON and XML.
( Broad Attack Surface ) Numerous endpoints are exposed externally, requiring sophisticated authorization control and business-logic protection.
( Statelessness ) Because each request is processed independently, strong token-based authentication and authorization mechanisms are required.

II. Mechanism & Components

A. BOLA (API 01): The Core API Security Threat

Concept: A vulnerability that occurs when a user includes the ID of an object that does not belong to them in a request, and the server fails to properly verify authorization for that resource.

Attack Scenario: When calling /api/v1/user/1001/profile, changing 1001 to 1002 to obtain another user’s information (a form of IDOR).

Countermeasure: Implement horizontal authorization checks that compare session information against object ownership for every object access.

B. Key Items in the OWASP API Security Top 10

RankItemDescription
API 01BOLAInsufficient object-level authorization checks (the most frequent vulnerability)
API 02Broken AuthenticationExposed authentication tokens, weak password policies, absent session management
API 03BOPLAInsufficient object-property-level authorization (exposure of sensitive fields)
API 04Unrestricted Resource ConsumptionExposure to DoS attacks due to the absence of rate limiting
API 05Broken Function Level AuthA regular user is able to call administrator-only API endpoints

III. Advanced Topics & Comparison

A. API Security vs. General Web Security (OWASP Web Top 10)

ComparisonOWASP Web Top 10OWASP API Security Top 10
Primary TargetTraditional browser-based web applicationsMobile, MSA, and IoT-based API endpoints
Main AttacksSQL Injection, XSS (targeting the browser)BOLA, excessive data exposure (business logic)
Security FocusInput validation and browser securityAuthorization control and traffic governance
Defense SystemWAF (Web Application Firewall)API Gateway, WAAP (Web App & API Protection)

Last updated 18 Aug 2026, 00:00 UTC. history