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)
Broken Access Control
Users act outside their intended permissions — IDOR, missing authorization, path traversal.
Cryptographic Failures
Weak, missing, or misused crypto exposes data at rest or in transit.
Injection
Untrusted input alters a query or command — SQLi, command injection, XSS.
Insecure Design
Missing or flawed security controls baked into the design — threat model earlier.
Security Misconfiguration
Insecure defaults, verbose errors, open storage, unnecessary features enabled.
Vulnerable & Outdated Components
Known-vulnerable dependencies you do not track or patch (see Log4Shell).
Identification & Authentication Failures
Weak auth, credential stuffing, broken session management.
Software & Data Integrity Failures
Unverified updates, insecure deserialization, compromised CI/CD (see SolarWinds).
Security Logging & Monitoring Failures
You cannot detect, alert on, or investigate an attack you do not log.
Server-Side Request Forgery (SSRF)
The server is tricked into fetching an attacker-chosen URL (see Capital One).
API Security Top 10 (2023)
Broken Object Level Authorization (BOLA)
Access another user’s object just by changing an ID. The #1 API risk.
Broken Authentication
Weak or forgeable tokens, no rate limit on login, JWT mistakes.
Broken Object Property Level Authorization
Over-exposed or mass-assignable fields (excessive data exposure + mass assignment).
Unrestricted Resource Consumption
No rate/size/quota limits — denial of service and denial of wallet.
Broken Function Level Authorization
A normal user can call admin/privileged functions.
Unrestricted Access to Sensitive Business Flows
Automation abuses legitimate flows (scalping, spam, mass signups).
Server-Side Request Forgery
The API fetches a URL from user input without validation.
Security Misconfiguration
Insecure config across servers, headers, CORS, and the pipeline.
Improper Inventory Management
Shadow, deprecated, or undocumented API versions still exposed.
Unsafe Consumption of APIs
Blindly trusting data from third-party APIs you integrate with.