In brief
The OWASP Top 10 is a list of the ten most serious risk categories in web applications, which the OWASP Foundation updates every few years. A development team gets the most from it as a shared language: in task descriptions, in the code review checklist, and in tests. The list is not a certification standard or a full test scope, but a minimum to start from. We describe the 2021 edition.
What the OWASP Top 10 is and which edition we describe
The OWASP Top 10 is an educational document: it organizes the most common and most dangerous classes of flaws so that developers, testers, and architects can talk about them in the same words. The categories are built from vulnerability data collected from companies that test applications and from a survey of practitioners.
This article describes the 2021 edition. OWASP refreshes the list every few years, so before you put category numbers into a policy or a contract, check on the project's site which edition is current. Category names change between editions, and old numbers in documents quickly lose their meaning.
For a team, what a category means in its own system matters more than the numbers. The same “access control” means accounts and powers of attorney in online banking, contracts and phone numbers in a telecom operator's system, and permissions to change a recipe on a line in an MES. That is why it is worth translating the list into examples from your own domain.
The ten categories in the team's language
| Code | Category (2021) | What the team checks |
|---|---|---|
| A01 | Broken Access Control | whether the server checks permissions for every resource, rather than just hiding a button |
| A02 | Cryptographic Failures | encryption in transit and at rest, obsolete algorithms, keys in code |
| A03 | Injection | parameterized queries, output escaping (including XSS) |
| A04 | Insecure Design | whether risks were analyzed during design, for example attempt limits |
| A05 | Security Misconfiguration | default passwords, enabled consoles, overly broad CORS headers |
| A06 | Vulnerable and Outdated Components | library and image versions, known vulnerabilities |
| A07 | Identification and Authentication Failures | sessions, password reset, MFA, protection against password guessing |
| A08 | Software and Data Integrity Failures | update signatures, CI/CD pipeline integrity, deserialization |
| A09 | Security Logging and Monitoring Failures | whether security events reach the logs and someone responds to them |
| A10 | Server-Side Request Forgery | whether the server fetches user-supplied addresses without an allowlist of targets |
Access control in first place is no accident. It is a logic flaw that no compiler will catch: the application works correctly for an honest user and fails only when someone changes an identifier in the URL.
Where the list fits in the work cycle
The OWASP Top 10 gives the most when it is built into the team's regular rhythm rather than into an annual training.
- When refining a task. For a story that adds a new resource or endpoint, add an acceptance criterion on access control: who can read, who can change, what another customer sees.
- In code review. A short checklist in the pull request template: are queries parameterized, does the server check permissions, is input validated, is there no secret in the change.
- In tests. Add denial cases to API tests: user A tries to read user B's resource and gets a 403 or 404. Such tests are cheap and protect against regression right away.
- In CI. Automation covers some of the categories: a dependency scanner for A06, static analysis partly for A03 and A02, a configuration scan for A05. We describe this in the article SAST, DAST, and SCA.
Categories A04 and A09 need people. A scanner will not detect an unsafe design, and a lack of response to an alert shows only in an exercise or an incident.
Examples from business systems
Bank: access control in online banking
An endpoint returns an account's history by the number in the URL. The functional test passes, because a logged-in customer sees their own accounts. The denial test checks what happens when the customer supplies another person's account number. The fix is not to hide the number but for the server to bind the resource to the identity from the token and reject everything else.
Telecom operator: SSRF in an integration
A document preview module fetches a file from an address given in the request. Without an allowlist of hosts, the server can reach internal services that are not visible from the internet. The defense is an allowlist of targets, blocking internal addresses and cloud metadata, and a separate network zone for the service that fetches data from outside.
Factory: components and configuration
A machine service panel runs on an older application server with the default administration console. A05 and A06 meet here: a component inventory, an update plan, and shutting down services nobody uses.
What the OWASP Top 10 will not replace
The list has ten items, while an application has hundreds of places where a mistake can be made. For full verification, OWASP provides the ASVS (Application Security Verification Standard), requirements divided into levels that can be written into a specification and checked in tests. For analyzing a design there is threat modeling, and for specific defense techniques there is the OWASP Cheat Sheet series.
For APIs there is a separate list, the OWASP API Security Top 10, because flaws in machine interfaces have a different distribution. We write about it in the article API security: the most common mistakes. If the team needs to check whether these principles work in a finished system, the next step is a penetration test, described in the article on the difference between a test and scanning. B2Bnetwork engineers run such tests as part of our security services.
Questions and answers
Is compliance with the OWASP Top 10 enough for an audit?
No, because the OWASP Top 10 is a risk awareness document, not a standard with requirements to verify. An auditor or an enterprise customer usually asks about a specific test scope and results. If you need measurable requirements, use OWASP ASVS at a chosen level and describe which requirements the system meets and how that was verified.
Who on the team is responsible for the OWASP Top 10?
The whole team is, but each category has a natural owner. Developers watch access control and injection in code, the architect watches secure design, DevOps watches configuration and components, and testers watch denial cases. It works well to have one person in the role of security champion, who updates the checklist and collects lessons from tests.
How often should the team be trained on the OWASP Top 10?
A short refresher when joining a project and after each new edition of the list is enough, provided the categories are present in daily work: in the pull request template, in acceptance criteria, and in denial tests. Training once a year without such habits quickly fades from memory.
Does the OWASP Top 10 apply to mobile applications?
Partly, because a mobile app's backend is usually an API, and the OWASP API Security Top 10 fits it. For the app on the phone itself, OWASP runs separate projects: a list of mobile risks and the MASVS verification standard. A team building a banking mobile app therefore uses two or three lists at once.