OWASP

OWASP Top 10 — Web & API

The most common ways apps actually get broken. STRIDE says what class; OWASP names the bug.

20 risks

Web Application Top 10 (2021)

A01:2021

Broken Access Control

Users act outside their intended permissions — IDOR, missing authorization, path traversal.

A02:2021

Cryptographic Failures

Weak, missing, or misused crypto exposes data at rest or in transit.

A03:2021

Injection

Untrusted input alters a query or command — SQLi, command injection, XSS.

A04:2021

Insecure Design

Missing or flawed security controls baked into the design — threat model earlier.

A05:2021

Security Misconfiguration

Insecure defaults, verbose errors, open storage, unnecessary features enabled.

A06:2021

Vulnerable & Outdated Components

Known-vulnerable dependencies you do not track or patch (see Log4Shell).

A07:2021

Identification & Authentication Failures

Weak auth, credential stuffing, broken session management.

A08:2021

Software & Data Integrity Failures

Unverified updates, insecure deserialization, compromised CI/CD (see SolarWinds).

A09:2021

Security Logging & Monitoring Failures

You cannot detect, alert on, or investigate an attack you do not log.

A10:2021

Server-Side Request Forgery (SSRF)

The server is tricked into fetching an attacker-chosen URL (see Capital One).

API Security Top 10 (2023)

API1:2023

Broken Object Level Authorization (BOLA)

Access another user’s object just by changing an ID. The #1 API risk.

API2:2023

Broken Authentication

Weak or forgeable tokens, no rate limit on login, JWT mistakes.

API3:2023

Broken Object Property Level Authorization

Over-exposed or mass-assignable fields (excessive data exposure + mass assignment).

API4:2023

Unrestricted Resource Consumption

No rate/size/quota limits — denial of service and denial of wallet.

API5:2023

Broken Function Level Authorization

A normal user can call admin/privileged functions.

API6:2023

Unrestricted Access to Sensitive Business Flows

Automation abuses legitimate flows (scalping, spam, mass signups).

API7:2023

Server-Side Request Forgery

The API fetches a URL from user input without validation.

API8:2023

Security Misconfiguration

Insecure config across servers, headers, CORS, and the pipeline.

API9:2023

Improper Inventory Management

Shadow, deprecated, or undocumented API versions still exposed.

API10:2023

Unsafe Consumption of APIs

Blindly trusting data from third-party APIs you integrate with.