#Why this matters
In earlier lessons, you saw how a Secure SDLC embeds security gates across development and how STRIDE threat modeling exposes what can go wrong in a data-flow diagram. The next step is turning those threats into testable engineering requirements that developers and QA engineers can verify before release.
OWASP publishes two complementary kinds of documents: awareness lists (OWASP Top 10 and OWASP API Security Top 10) and a verification standard (OWASP ASVS). Teams often confuse them -- claiming "OWASP Top 10 compliance" as if a ten-item risk summary were an engineering specification. Knowing how they fit together prevents blind spots, especially in API-driven applications.
#Awareness lists vs. verification standards
An awareness list ranks common failure patterns so teams know what to prioritize. A verification standard defines exact technical controls that must pass inspection or testing.
| Standard | Primary role | Audience | Use in the SDLC |
|---|---|---|---|
| OWASP Top 10 (2021 / 2025) | Web risk awareness | Developers, auditors, leads | Training and risk triage |
| OWASP API Security Top 10 (2023) | API risk awareness | Backend engineers, testers | API threat modeling |
| OWASP ASVS (4.0.3 / 5.0) | Testable requirements | Architects, devs, pentesters | Acceptance criteria, pentest scope |
- Threat Model (STRIDE)Top 10 & API Top 10 Triage | ASVS Level Selection | Checklist & CI Gates
Threat modeling and the Top 10 lists show which risks matter, while ASVS defines what to build and verify.
#OWASP Top 10 (2021 to 2025) and API Top 10 (2023)
OWASP Top 10:2025 updates the 2021 edition to match how modern apps fail:
- A01:2025 Broken Access Control stays #1 and absorbs SSRF (formerly A10:2021).
- A02:2025 Security Misconfiguration rises from #5 in 2021 due to cloud and default-config errors.
- A03:2025 Software Supply Chain Failures expands A06:2021 (Vulnerable Components) to cover packages, pipelines, and build artifacts.
- A04 Cryptographic Failures, A05 Injection, A06 Insecure Design, A07 Authentication Failures, A08 Integrity Failures, and A09 Security Logging & Alerting Failures remain core categories.
- A10:2025 Mishandling of Exceptional Conditions is new, targeting fail-open logic and unhandled errors.
For JSON, REST, and GraphQL backends, the OWASP API Security Top 10 (2023) highlights API-specific flaws:
| Failure example | Top 10:2025 | API Top 10:2023 | Verification focus |
|---|---|---|---|
Caller reads /api/orders/102 owned by another user |
A01 Broken Access Control | API1 Broken Object Level Authorization (BOLA) | Per-object ownership check |
PATCH /api/profile accepts {"role":"admin"} |
A01 Broken Access Control | API3 Broken Object Property Level Authorization | Strict DTO field allow-list |
| Unthrottled export exhausts worker pool | A06 Insecure Design | API4 Unrestricted Resource Consumption | Rate limits and page caps |
Old /api/v1/export left live without auth |
A02 Security Misconfiguration | API9 Improper Inventory Management | API catalog and version retirement |
#Selecting and applying ASVS levels (L1, L2, L3)
OWASP ASVS organizes controls into three cumulative tiers (L2 includes L1; L3 includes L1 and L2):
- Level 1 (L1) -- Basic Hygiene: Penetration-testable from outside without source code. Fits low-risk sites with no sensitive data.
- Level 2 (L2) -- Standard Assurance: The recommended baseline for most web apps and APIs handling user accounts, personal data, or business workflows. Requires architecture and code verification.
- Level 3 (L3) -- High Assurance: Reserved for high-value finance, healthcare, or safety-critical systems needing strict defense in depth.
Teams encode selected L2 controls into version-controlled acceptance checks:
# asvs-l2-api-checklist.yaml (ASVS 5.0 target: L2)
service: student-records-api
asvs_version: "5.0"
target_level: 2
controls:
- id: API-AUTHZ-01
risks: ["A01:2025", "API1:2023"]
requirement: "Verify caller ownership on every object ID before reading or modifying records."
test: "GET /api/v2/records/{other_id} with student A token; expect HTTP 403."
- id: API-PROP-02
risks: ["A01:2025", "API3:2023"]
requirement: "Bind JSON to explicit input schemas; reject privileged fields."
test: "PATCH {\"gpa_locked\":false}; expect HTTP 400 or field ignored."In a lab, verify object-level authorization directly with curl:
$ curl -s -o /dev/null -w "%{http_code}\n" -H "Authorization: Bearer $STUDENT_A_TOKEN" \
http://lab.local/api/v2/records/2042
403A 403 (or 404) confirms the ownership check fired; a 200 with another student's data proves a BOLA flaw.
#Common mistakes
- Claiming "OWASP Top 10 compliant": The Top 10 is an awareness list, not a verification standard.
- Using ASVS L1 for sensitive apps: L1 misses architecture, secret management, and internal validation checks.
- Ignoring API inventory and property rules: Web form protections do not stop BOLA, mass assignment, or forgotten
v1routes. - Mixing ASVS 4.0.3 and 5.0 numbers: Chapters shifted in 5.0 (for example, Authentication moved from V2 to V6); always pin the version.
#Summary
OWASP Top 10 (2021/2025) and API Security Top 10 (2023) prioritize web and API risks, while OWASP ASVS turns them into verifiable L1-L3 engineering controls. Most production apps and APIs should target ASVS Level 2, pairing threat modeling with explicit ownership, schema, supply-chain, and inventory tests in the SDLC.