OWASP Top 10 explained for defenders: what each risk means and how to prevent it
TL;DR. The OWASP Top 10 is a widely used overview of the most serious risks seen in web applications. It is not a checklist you tick once, and it is not a list of attack recipes. Read each item as a class of design and implementation failures, then ask what control you would put in an application you maintain: input handling, authentication, access checks, cryptography, logging, and a supply chain you can actually inventory. This article uses the 2021 edition categories that teams still map their work to, and it stays on prevention. Practice only on applications you own or on official labs such as OWASP Juice Shop.
How to read the list without misunderstanding it
OWASP is a non-profit community. The Top 10 is built from data and expert input; category names and order can change between editions. Treat a category as a risk theme, not as a single bug. “Broken access control” covers many concrete mistakes. “Injection” is not one payload.
Use the list in this order, every time:
- What user or component is trusted that should not be?
- What happens if that trust is wrong?
- Which control, already documented by OWASP or by your framework, removes the class of issue?
- How will you know the control is still in place next quarter?
If you jump from a category name to “try this string in a form,” you are no longer reading the Top 10 as a defender.
The official project pages and the Juice Shop documentation are the primary texts. This article is a field translation for people who ship or review software.
The ten categories, in defensive language
A01: Broken access control
The application believes a user may do something the user’s role, tenancy or object ownership does not allow. Typical roots: missing checks on the server, trusting a hidden field or a client route, predictable object identifiers with no authorization, and CORS or directory rules that leak functions.
Prevention. Enforce authorization on the server for every request that reads or changes a sensitive object. Deny by default. Tie checks to the authenticated identity and to the object, not to the user interface. Test with accounts that must not succeed. Review “ID in the URL” features as a habit, not as an afterthought.
A02: Cryptographic failures
Sensitive data is stored or moved with weak, leftover or missing cryptography: outdated protocols, secrets in source code, passwords in reversible form, or backups that are clearer than the production database.
Prevention. Classify data first. Use current, well-known libraries — do not invent a cipher. Prefer platform-managed TLS and proven password hashing (see the companion article on hashing). Keep keys out of git and images. Encrypt backups with a key that is not sitting next to the files.
A03: Injection
Untrusted input is interpreted as a command or query: SQL, operating-system commands, LDAP, or template languages. The failure is almost always string concatenation mixed with authority.
Prevention. Use parameterized queries and safe APIs. Do not build OS commands from request data. Escape only where the framework tells you it is still required. Treat template engines as powerful; do not feed them raw user input. Input validation helps, but it is not a substitute for a safe API.
A04: Insecure design
The feature is unsafe even if the code is tidy: missing abuse cases, no rate limits on a costly action, a workflow that assumes every caller is honest, or a “temporary” debug path that became a product.
Prevention. Threat-model new features before you write them. Ask who benefits from abusing the step. Add limits, confirmations and separation of duties where a single request should not be enough. Insecure design is fixed by changing the flow, not by a one-line sanitizer.
A05: Security misconfiguration
Defaults left on, unused services exposed, verbose errors in production, missing security headers, cloud storage left listable, or a framework option that was never reviewed.
Prevention. Build a repeatable hardening baseline (the Linux and headers articles in this series complement this). Turn off what you do not need. Make production errors generic and send detail to logs you control. Scan configuration as part of deployment, not once a year.
A06: Vulnerable and outdated components
A library, image, plugin or agent you did not write has a known issue, and you have no inventory or upgrade path.
Prevention. Maintain a bill of materials. Subscribe to advisories for the stacks you actually run. Patch on a schedule, and have an emergency path for issues that are already being exploited in the wild. Remove dead dependencies. “It still works” is not a security status.
A07: Identification and authentication failures
Session handling, password reset, multi-factor, or “remember me” logic that lets someone become another user. Credential stuffing succeeds because the application has no resistance to repeated attempts.
Prevention. Use the framework’s session tools; do not roll your own cookies. Rate-limit authentication. Offer phishing-resistant second factors where you can. Invalidate sessions on password change and on logout. Store passwords only as modern slow hashes.
A08: Software and data integrity failures
Updates, CI artefacts or serialized objects are accepted without verifying origin. A pipeline that publishes whatever is in the branch, unsigned, is a trust problem waiting for a bad commit or a poisoned cache.
Prevention. Sign or at least checksum release artefacts and verify them on install. Restrict who can publish. Be cautious with deserialization of untrusted data — prefer plain data formats. Protect CI secrets as carefully as production keys.
A09: Security logging and monitoring failures
The event happened, but nobody can prove it, alert on it, or keep the log long enough. Missing login failures, no request identifiers, logs that contain secrets, or logs that nobody reads, all count.
Prevention. Log authentication outcomes, access-control failures and admin actions with a timestamp, a request id and the actor — not the password. Send logs somewhere an attacker on the web node cannot trivially erase. Test that an alert actually arrives.
A10: Server-side request forgery (SSRF)
The server fetches a URL supplied, in effect, by a user, and is talked into requesting internal services or cloud metadata that the user should never reach.
Prevention. Avoid fetching user-supplied URLs. If you must, allow-list schemes and destinations, block link-local and metadata addresses, and do not follow redirects blindly. Run the fetcher with the least network privilege you can.
A compact prevention map
| Category | First defensive question | Control family |
|---|---|---|
| Broken access control | Is this object allowed for this identity? | Server-side authorization, deny by default |
| Cryptographic failures | Is this data classified and protected in transit and at rest? | TLS, key management, modern hashing |
| Injection | Does any untrusted string become syntax? | Parameterized APIs, no shell interpolation |
| Insecure design | What is the abuse case for this flow? | Threat modelling, limits, step-up checks |
| Misconfiguration | What is still on by default? | Baselines, headers, error hygiene |
| Outdated components | Can I list what we run and patch it? | Inventory, advisories, upgrade path |
| Auth failures | Can someone become another user cheaply? | Framework sessions, MFA, rate limits |
| Integrity failures | Do we verify what we install and run? | Signed artefacts, tight CI, safe parsers |
| Logging failures | Would we notice and prove this next week? | Useful logs, retention, tested alerts |
| SSRF | Why does this server fetch a caller-controlled URL? | Allow-lists, no internal targets, least privilege |
How to practice this safely
Work through official OWASP explanations and, in an isolated lab, through Juice Shop or a similar official app. Fix the issue in a copy of your code when you can: add the authorization check, the parameter binding, the header, the log line. Do not collect “payload lists” for use outside a scope you own.
If you use a writing assistant to turn a review note into a clearer ticket, keep code secrets and production hostnames out of the prompt. SiberAI is useful for summarising your findings in plain language; the security notes are a reminder that prompts can leak. For product setup, stay on the quickstart rather than wiring an application’s raw error traces into a chat.
Key takeaways
- The Top 10 is a risk map, not a recipe book and not a one-time audit form.
- Most categories collapse to trust, authorization, safe APIs, and the ability to notice failure.
- Prevention lives in design, frameworks and operations — not in a single filter.
- Practice on official labs or on code you maintain; do not “try the Top 10” on a live site you do not own.
- Write the control and the test that proves it is still there.
Last updated: November 2026.
FAQ
Q: Is the 2021 list still worth using if a newer edition exists?
A: Use the current official edition when you formally map a programme. The defensive questions in this article still apply; category numbers may move. Always prefer the text on OWASP’s own site.
Q: Does a Web Application Firewall replace these controls?
A: No. A WAF can buy time and add telemetry. Authorization, parameterized queries and safe design still have to exist in the application.
Q: Where should a small team start if everything looks red?
A: Access control on sensitive objects, authentication hygiene, parameterized database access, TLS, and an inventory of what you deploy. Those five remove a large share of real incidents.
Q: Are APIs in scope or only browser apps?
A: APIs are in scope. Hidden routes, object identifiers and SSRF often show up first in JSON APIs, not in HTML forms.
Q: How often should we revisit the list?
A: After each major feature, and at least when you plan a year of security work. The list is a conversation starter, not a quarterly rubber stamp.
Q: Can I publish screenshots of Juice Shop solutions?
A: Follow the project’s guidance and do not turn a teaching app into a copy-paste kit. Describe the control you would add in production software.
Q: Does “passing the Top 10” mean we are secure?
A: No. It means you have thought about common classes of risk. New features, new dependencies and new integrations can reintroduce the same classes tomorrow.
Yorumlar
Yorum Gönder