OWASP top 10
OWASP top 10 is the consensus list of the most critical web app security risks, updated every 3-4 years. The 2021 edition is the current reference.
OWASP Top 10 is the consensus list of web app security risks, refreshed every few years. The current edition is 2021. Memorize the categories, not the order.
- A01 Broken Access Control. Most common bug, biggest impact. User accesses data they should not. IDOR (changing
?id=123to?id=124), missing authorization on admin endpoints, JWT alg confusion. - A02 Cryptographic Failures. Was "Sensitive Data Exposure." Weak ciphers, no encryption at rest, plaintext passwords, hardcoded keys.
- A03 Injection. SQL injection still top three after 20 years. Also command injection, LDAP injection, NoSQL injection. Fix: parameterized queries.
- A04 Insecure Design. New category. The architecture itself is insecure even if implementation is correct. Missing rate limits, missing CAPTCHA on registration, no MFA option.
- A05 Security Misconfiguration. Default credentials, exposed admin panels, verbose errors, missing security headers, S3 buckets public by default.
- A06 Vulnerable and Outdated Components. log4shell, Equifax (Struts). Run
npm audit,pip-audit, Dependabot, Snyk. - A07 Identification and Authentication Failures. Was "Broken Authentication." Credential stuffing, session fixation, weak password reset flows.
- A08 Software and Data Integrity Failures. New. Trusting unsigned packages, autoupdate without verification, deserialization bugs, CI/CD pipeline compromise.
- A09 Security Logging and Monitoring Failures. You cannot respond to what you do not see. Log auth failures, sensitive operations, admin actions. Ship to SIEM.
- A10 Server-Side Request Forgery. New, promoted because of Capital One. Server fetches attacker-controlled URLs.
How to actually use this list.
- New code review: walk top 10 categories against the diff.
- Threat model for a new feature: which categories does it touch?
- Pen test scope: ask for explicit coverage of the top 10.
- Interview answers: when asked about web security, frame your answer around these categories.
There is also an API Security Top 10 (last updated 2023) for APIs specifically, and a Mobile Top 10, and an LLM Top 10 (2023, big in 2026 with the AI boom). Same idea, different surface.
Learn more
- DocsOWASP Top 10 - 2021OWASP
- DocsOWASP Cheat SheetsOWASP
- Docs