Course map

Topic 166 / Core

OWASP Top 10 (2025 edition)

Chapter 10.4 · Application and API Security

What and why

Threat modeling (→ 158) finds the risks specific to your design; the OWASP Top 10 is the complementary shortcut — a ranked, consensus list of the most critical risks common to nearly every web application, maintained as a standard awareness document for developers. It doesn't replace a threat model; it's a checklist you run alongside one, so design and code review don't have to rediscover known classes of risk from scratch every time. Builds on: → 158 (security fundamentals, defense in depth and threat modeling).

Diagram

The OWASP Top 10:2025 categories, ranked, with a design-level defense direction for each (names and rank order read live from the current OWASP Top 10:2025 list):

Rank Category Design-level defense direction
1 Broken Access Control Object-ownership / resource-level checks (→ 39, 163)
2 Security Misconfiguration Secure defaults, hardened config, no verbose errors
3 Software Supply Chain Failures SBOM, signing, provenance (→ 173)
4 Cryptographic Failures Correct use of encryption (→ 164) and key management (→ 165)
5 Injection Parameterized queries / prepared statements
6 Insecure Design Threat modeling and secure design reviews (→ 158, 172)
7 Authentication Failures A real identity lifecycle, MFA (→ 160)
8 Software or Data Integrity Failures Verify integrity of code and data dependencies, signing
9 Security Logging and Alerting Failures Audit logging (→ 171)
10 Mishandling of Exceptional Conditions Deliberate error handling (→ 1), no silent failures

How it works

  1. The list is a consensus ranking of the most critical web application security risks — an awareness and checklist document, not an exhaustive test suite.
  2. Walk it category by category during design review (→ 172) and again during code review — it's cheap to check and catches well-known mistakes before they ship.
  3. For each category, map it to a design-level defense, not only a point code fix — the table above gives the direction, the referenced topics give the depth.
  4. Re-check against the list whenever its edition changes; ranks shift as real-world attack patterns shift.
  5. Remember what it doesn't do: it does not replace threat modeling (→ 158), which finds risks specific to your system; it catalogs risks common to systems in general.

Practical example

(illustrative). An endpoint is missing an object-ownership check, letting a caller read another user's record by incrementing an ID (#1, Broken Access Control). The same endpoint also returns a full stack trace to the client on error (#10, Mishandling of Exceptional Conditions). Two separate categories, two separate bugs, in one endpoint — checking the list catches both, where fixing only the one a tester happened to notice would have left the other live.

When to use it

  • Use as a shared checklist across every design and code review, and as common vocabulary with auditors or external testers.
  • Avoid treating a clean pass against the list as proof the system is secure — it's necessary, not sufficient; business-logic flaws specific to your system are never on it.
  • Failure scenarios: passing every listed category while missing a business-logic flaw the list was never meant to cover; treating rank order as a priority queue ("nothing below position 5 matters") with no judgment about this system's actual exposure.
  • Simpler alternative: none — for any system reachable from the internet, checking against this list is close to free relative to what it catches.

Practice

(Vocabulary kind — classification drill; 15–20 min, no lab services). For six short vulnerability descriptions (write your own, based on bugs you've seen or can imagine — e.g. "a login error message says 'wrong password' only for valid usernames," "a deploy pulls a dependency with no version pin"), assign each to its OWASP Top 10:2025 category and name one design-level defense. Done when every description has exactly one best-fit category and a defense that matches the table above's direction.

Key takeaway

The OWASP Top 10:2025 is a ranked, shared checklist of common web application risks, used alongside — never instead of — threat modeling for your own system. Done when you can: map a described vulnerability to its category and name its design-level defense without looking at the table. Used next in → 167 (practical API hardening for categories 1, 5 and 6), → 172 (SAST/DAST test for several of these), → 173 (category 3 in full).

References

OWASP Top 10:2025 — see references.md.

Source directory

Search the guide