What the OWASP Top 10 is, and what it is not
OWASP (the Open Worldwide Application Security Project) is a nonprofit community that publishes free security resources. Its best-known document is the OWASP Top 10: a consensus list of the ten most critical categories of web application security risk, refreshed every few years using contributed vulnerability data from many organisations plus a community survey for emerging risks.
It is:
- A shared vocabulary. Developers, testers, auditors and managers all know what "A01 Broken Access Control" means.
- An awareness document. It tells you where to focus learning and where to invest in defence.
- A map for this course. Almost every chapter corresponds to one or more categories.
It is not:
- A complete list of every possible vulnerability.
- A testing checklist (use the OWASP Web Security Testing Guide and ASVS for that).
- A strict ranking of how dangerous each bug is in your application. The order reflects incidence and impact across many applications.
Categories are broad risk groups, each mapped to many CWEs (Common Weakness Enumeration entries). "Injection" contains SQL injection, command injection, XSS and more.
The 2021 edition, category by category
The 2021 edition is the version most training material, job descriptions and compliance documents still reference, so you must know it well.
A01:2021 Broken Access Control
What it is: users acting outside their intended permissions. It moved up to number one in 2021.
Examples: changing /api/orders/1042 to /api/orders/1043 and seeing someone else's order (IDOR); a normal user calling /admin/deleteUser; modifying a role field in a request body; forced browsing to an authenticated page; missing checks on non-GET methods; CORS misconfiguration allowing untrusted origins.
Testing: log in as different roles and replay each request with another role's session or none at all; change identifiers; try every HTTP method.
Fix: deny by default, enforce authorization server-side on every request, check ownership of each object, and log access-control failures.
Practise: the access-control chapter and the IDOR labs.
A02:2021 Cryptographic Failures
What it is: failing to protect sensitive data in transit or at rest. It was previously called "Sensitive Data Exposure", but the new name targets the root cause.
Examples: HTTP instead of HTTPS, weak or hard-coded keys, MD5 or unsalted SHA-1 password hashes, predictable random numbers for tokens, missing certificate validation, secrets in URLs.
Testing: inspect TLS configuration and mixed content, look for sensitive data in responses and local storage, check how password hashes and tokens are generated.
Fix: TLS everywhere with HSTS, modern algorithms (AES-GCM, Argon2id/bcrypt/scrypt for passwords), a cryptographically secure random generator, proper key management, and not storing data you do not need.
A03:2021 Injection
What it is: untrusted data is sent to an interpreter as part of a command or query. The 2021 grouping includes cross-site scripting as well as SQL, NoSQL, OS command, LDAP and template injection.
-- vulnerable pattern: user input concatenated into a query
SELECT * FROM users WHERE name = '" + input + "';
Testing: send syntax-breaking characters, boolean and time-based probes, and look for errors, changed responses and delays.
Fix: parameterised queries, safe APIs, allowlist validation, context-aware output encoding and Content Security Policy as defence in depth.
Practise: the injection, command and NoSQL, and cross-site scripting chapters.
A04:2021 Insecure Design
What it is: a new category in 2021 for flaws in the design, not the implementation. A perfect implementation of a flawed design is still insecure.
Examples: a password reset based on easy-to-guess "security questions"; a coupon system that never checks whether a code was already used (see race conditions); a ticketing flow with no limit on bulk purchases that enables scalping; trusting prices sent by the client.
Testing: read the business logic critically, look for missing limits and missing steps, and think about abuse cases, not just use cases.
Fix: threat modelling, secure design patterns, abuse-case user stories, rate limits and plausibility checks built in from the start.
Practise: the business logic chapter.
A05:2021 Security Misconfiguration
What it is: insecure defaults, incomplete setup, open cloud storage, unnecessary features enabled, verbose errors, missing security headers. XML External Entities (XXE) were merged into this category in 2021.
Examples: default admin credentials, directory listing, a debug console in production, an S3 bucket readable by anyone, exposed management endpoints such as /actuator/env, stack traces shown to users.
Testing: content discovery, header review, checking for default pages and error handling (the recon chapter covers much of this).
Fix: a repeatable hardening process, minimal platform, automated configuration checks, separate production configuration, and removal of unused features.
A06:2021 Vulnerable and Outdated Components
What it is: using libraries, frameworks and platforms with known vulnerabilities, or ones that are no longer maintained.
Examples: an old framework version with a published remote code execution flaw; an unmaintained JavaScript library with known XSS; a base container image never rebuilt.
Testing: fingerprint versions (headers, files, JavaScript library names), then check them against databases such as the NVD and vendor advisories.
Fix: an inventory of components (a software bill of materials), dependency scanning, timely patching and removal of unused dependencies.
A07:2021 Identification and Authentication Failures
What it is: weaknesses in confirming who a user is and managing their session. Previously "Broken Authentication".
Examples: credential stuffing with no rate limit, weak passwords allowed, session identifiers in the URL, session not invalidated at logout, missing or bypassable MFA, forgeable JWTs.
Fix: MFA, strong password policy aligned with NIST guidance, throttling and lockout, secure session management, and well-tested libraries rather than custom authentication.
Practise: the authentication and tokens chapters.
A08:2021 Software and Data Integrity Failures
What it is: code and data used without verifying integrity. A new category covering insecure deserialization (previously its own category), unsigned updates and compromised CI/CD pipelines.
Examples: auto-updating from an unverified source, loading a third-party script without Subresource Integrity, deserializing user-controlled objects, a build pipeline where a dependency can inject code.
Fix: digital signatures, SRI on third-party scripts, locked dependency versions with integrity hashes, avoiding native deserialization of untrusted data, and hardened CI/CD.
A09:2021 Security Logging and Monitoring Failures
What it is: without proper logging and alerting, attacks and breaches go unnoticed for months. It rarely causes a bug itself, but multiplies the damage of every other category.
Examples: failed logins not logged, logs stored only locally and overwritten, no alert on a burst of 403 errors, sensitive data inside logs.
Fix: log authentication, access-control and input-validation failures with context, centralise logs, set meaningful alerts and prepare an incident response plan. Do not log secrets.
A10:2021 Server-Side Request Forgery (SSRF)
What it is: the server fetches a URL supplied by the user, letting an attacker reach internal systems or cloud metadata services. It entered the list through the community survey rather than data, because incidence was low while potential impact was high.
GET /fetch?url=http://169.254.169.254/latest/meta-data/ HTTP/1.1
Host: app.example.com
Fix: allowlist destinations, resolve and validate addresses, block internal ranges, disable unnecessary redirects and network-segment the fetching component.
Practise: the server-side attacks chapter.
The 2025 edition
OWASP has published a 2025 edition of the Top 10, at top10.owasp.org/2025. Its categories are:
| 2025 | Category |
|---|---|
| A01 | Broken Access Control |
| A02 | Security Misconfiguration |
| A03 | Software Supply Chain Failures |
| A04 | Cryptographic Failures |
| A05 | Injection |
| A06 | Insecure Design |
| A07 | Authentication Failures |
| A08 | Software or Data Integrity Failures |
| A09 | Security Logging and Alerting Failures |
| A10 | Mishandling of Exceptional Conditions |
Compared with 2021 you can see:
- Broken Access Control remains number one, and SSRF is now treated as part of it (CWE-918 is mapped to A01:2025) rather than as its own category.
- Security Misconfiguration moves up to second place.
- Software Supply Chain Failures broadens "Vulnerable and Outdated Components" to cover the whole chain of dependencies, build systems and distribution.
- Mishandling of Exceptional Conditions is new and covers error handling that fails open, leaks information or leaves systems in an unsafe state.
- Several names are tidied: "Authentication Failures", "Logging and Alerting Failures".
The underlying vulnerability classes are the same. The course teaches the techniques; whichever edition a client or exam uses, you will recognise every item. Check the official site for the details and the data behind the ranking.
Mapping the Top 10 to this course
| Risk | Where you practise |
|---|---|
| Broken Access Control | Access control chapter, IDOR labs |
| Cryptographic Failures | Authentication and tokens chapters, information disclosure |
| Injection | SQL injection, command and NoSQL, XSS chapters |
| Insecure Design | Business logic chapter, race-condition lab |
| Security Misconfiguration | Recon and disclosure chapter, XXE |
| Vulnerable Components | Fingerprinting in recon, advanced chapter |
| Authentication Failures | Authentication, session and JWT chapters |
| Integrity Failures | Advanced chapter (deserialization), file upload |
| Logging and Monitoring | Reporting and defence sections in each lesson |
| SSRF | Server-side attacks chapter, SSRF lab |
How to use the Top 10 well
- As a learning map. For each category, learn what it looks like in code, how to find it, and above all how to prevent it. Each lesson in this course follows that order.
- As a conversation tool. Reports and risk discussions often reference categories. Tagging a finding with its OWASP category and CWE helps developers search for guidance.
- As a starting point, not an endpoint. Real applications fail in ways no list captures, such as custom business rules and unusual integrations.
- Alongside other standards. ASVS for requirements, WSTG for tests, the OWASP Cheat Sheet Series for developer fixes, and CWE for precise weakness names.
Checklist
- I can name the ten 2021 categories and give one example of each.
- I understand that Injection includes XSS in 2021.
- I know which new categories appeared in 2021 (Insecure Design, Software and Data Integrity Failures, SSRF).
- I know the 2025 edition exists and which names changed.
- I know the Top 10 is not a test plan.
Key takeaways
- The Top 10 is a ranked, data-informed list of risk categories used as a shared language.
- Broken Access Control is first in both 2021 and 2025.
- Categories are broad; individual vulnerabilities map to CWEs inside them.
- Use the Top 10 for awareness, the WSTG and ASVS for actual testing and verification.
Further reading
- OWASP Top 10:2021: https://owasp.org/Top10/
- OWASP Top 10:2025: https://top10.owasp.org/2025
- OWASP Web Security Testing Guide: https://owasp.org/www-project-web-security-testing-guide/
- OWASP Cheat Sheet Series: https://cheatsheetseries.owasp.org/
- CWE: https://cwe.mitre.org/