> For the complete documentation index, see [llms.txt](https://martian1337.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference.md). Agents can also search and read this documentation through its [MCP server](https://martian1337.gitbook.io/notes/~gitbook/mcp).

# Vulnerability Class Reference

Defender-oriented references on recurring vulnerability classes. The vulnerability-class table in [Application Security and Secure SDLC](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc.md) gives the one-line durable fix for each class; these pages expand the ones that need more than a line: the root cause, where the flaw hides in real code, the layered defenses, and how to review and test for it. Vendor-neutral: named tools and libraries are examples, and version-specific behavior is flagged where it matters.

Each page follows the same shape: scope and durability note, mechanics, defenses in order of preference, review and testing, a checklist, and cross-references into the hands-on sections.

## Files

| File                                                                                                                                                                                                                                                                                                           | Purpose                                                                                                                                                                                                                                                                     |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Cross-Site Scripting (XSS) Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/cross-site-scripting-xss-reference.md)                                                                                                                       | Types of XSS, the context-specific encoding rule, DOM sources and sinks, framework escape hatches, sanitization, and Trusted Types.                                                                                                                                         |
| [SQL and NoSQL Injection Prevention Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/sql-and-nosql-injection-prevention-reference.md)                                                                                                     | Parameterization by platform, what parameters cannot protect, ORM escape hatches, second-order injection, and NoSQL operator injection.                                                                                                                                     |
| [SSRF and URL Handling Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/ssrf-and-url-handling-reference.md)                                                                                                                               | Where SSRF hides, validation that survives DNS rebinding and redirects, cloud metadata hardening, and network-layer enforcement.                                                                                                                                            |
| [Insecure Deserialization Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/insecure-deserialization-reference.md)                                                                                                                         | How gadget chains work, risky APIs by ecosystem, type allowlisting, integrity checks, and detection.                                                                                                                                                                        |
| [Business Logic Flaws and Race Conditions Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/business-logic-flaws-and-race-conditions-reference.md)                                                                                         | Workflow bypass, limit overrun, and check-then-act races, with atomic-update and idempotency controls and concurrency tests.                                                                                                                                                |
| [Path Traversal and File Inclusion Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/path-traversal-and-file-inclusion-reference.md)                                                                                                       | Where the flaw hides, why string checks fail, canonicalize-then-contain, archive extraction, file inclusion, and web server configuration.                                                                                                                                  |
| [Open Redirect and URL Redirection Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/open-redirect-and-url-redirection-reference.md)                                                                                                       | Redirect sinks, the input shapes that defeat naive checks, exact-origin validation, signed targets, OAuth impact, and how to rate the finding.                                                                                                                              |
| [Mass Assignment and Prototype Pollution Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/mass-assignment-and-prototype-pollution-reference.md)                                                                                           | Input types and allowlists for bindable fields, response shaping, and the JavaScript prototype-pollution mechanism, gadgets, and defenses.                                                                                                                                  |
| [Regular Expression and Parser Denial of Service Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/regular-expression-and-parser-denial-of-service-reference.md)                                                                           | Backtracking patterns, linear-time engines, input bounds and timeouts, and limits for XML, YAML, JSON, archive, and image parsers.                                                                                                                                          |
| [Host Header and Forwarded Header Trust Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/host-header-and-forwarded-header-trust-reference.md)                                                                                             | Password reset poisoning, trusted-proxy configuration, host allowlists, cache keys, and tenant routing.                                                                                                                                                                     |
| [OS Command and Argument Injection Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/os-command-and-argument-injection-reference.md)                                                                                                       | Shell injection versus argument injection, sinks by language, defenses in order of preference, where the flaw hides in CI and infrastructure, search-path and environment problems, and detection.                                                                          |
| [Cross-Origin Security Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/cross-origin-security-reference.md)                                                                                                                               | Origin versus site, CORS, CSRF and Fetch Metadata, clickjacking, postMessage, cross-site leaks and isolation headers, and third-party content.                                                                                                                              |
| [Error Handling and Exceptional Conditions Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/error-handling-and-exceptional-conditions-reference.md)                                                                                       | Fail-closed versus fail-open decisions per control, mishandling patterns, state integrity, what errors reveal, resilience without weakening controls, and fault-injection tests.                                                                                            |
| [Subdomain Takeover and Dangling DNS Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/subdomain-takeover-and-dangling-dns-reference.md)                                                                                                   | Takeover classes, why the blast radius reaches cookies, CORS, CSP, OAuth redirect URIs, mail, and certificates, prevention in order of preference, inventory and detection, testing, and response.                                                                          |
| [TLS Client Validation and Certificate Pinning Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/tls-client-validation-and-certificate-pinning-reference.md)                                                                               | What a correct client verifies, how validation gets disabled by language, trust stores and private PKI, pinning as a decision, client certificates, and review and testing.                                                                                                 |
| [Application Misconfiguration and Exposed Management Interfaces Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/application-misconfiguration-and-exposed-management-interfaces-reference.md)                                             | Why management and diagnostic surfaces end up exposed, a severity guide, default and bootstrap credentials, defenses in order of preference, source maps and build artifacts, environment drift, an exposure test matrix, and response.                                     |
| [Authorization Design and Object-Level Access Control Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/authorization-design-and-object-level-access-control-reference.md)                                                                 | The authorization decision and its failure families, default-deny route registration, object-level patterns in order of preference, the paths that bypass the endpoint check, routing differentials, policy engines and decision caches, and delegated and background work. |
| [Input Validation, Canonicalization and Parser Differentials Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/input-validation-canonicalization-and-parser-differentials-reference.md)                                                    | Schema-first validation, the order of decoding and canonicalization across layers, Unicode and encoding hazards, identifier collisions, and the parser differentials that make a checked value differ from the value used.                                                  |
| [Commerce, Billing and Entitlement Flows Reference: Pricing, Callbacks, Subscriptions and Credits](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/vulnerability-class-reference/commerce-billing-and-entitlement-flows-reference-pricing-callbacks-subscriptions-and-credits.md) | Money authority and the order state machine, processor callbacks and reconciliation, prices and stored value, entitlements after plan changes, refund and credit authority, and usage metering.                                                                             |

## How these map to the standards

| Class                                                                                                 | OWASP category                                                                                                                                 | Related CWE                                                                               |
| ----------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| Cross-site scripting                                                                                  | A05:2025 Injection                                                                                                                             | CWE-79                                                                                    |
| SQL and NoSQL injection                                                                               | A05:2025 Injection                                                                                                                             | CWE-89, CWE-943                                                                           |
| Server-side request forgery                                                                           | A01:2025 Broken Access Control (absorbed from the 2021 A10)                                                                                    | CWE-918                                                                                   |
| Insecure deserialization                                                                              | A08:2025 Software or Data Integrity Failures                                                                                                   | CWE-502                                                                                   |
| Business logic flaws and race conditions                                                              | A06:2025 Insecure Design                                                                                                                       | CWE-841, CWE-837, CWE-362                                                                 |
| Path traversal and file inclusion                                                                     | A01:2021 Broken Access Control (2021 mapping)                                                                                                  | CWE-22, CWE-23, CWE-36, CWE-59, CWE-98                                                    |
| Open redirect                                                                                         | A01:2021 Broken Access Control (2021 mapping)                                                                                                  | CWE-601                                                                                   |
| Mass assignment                                                                                       | API3:2023 Broken Object Property Level Authorization; A08:2021 Software and Data Integrity Failures (2021 mapping)                             | CWE-915                                                                                   |
| Prototype pollution                                                                                   | No dedicated category                                                                                                                          | CWE-1321                                                                                  |
| Regular expression and parser denial of service                                                       | No dedicated category; API4:2023 Unrestricted Resource Consumption for APIs                                                                    | CWE-1333, CWE-407, CWE-400, CWE-776                                                       |
| Host header and forwarded header trust                                                                | No single category                                                                                                                             | CWE-348, CWE-346, CWE-20                                                                  |
| OS command and argument injection                                                                     | A05:2025 Injection                                                                                                                             | CWE-78, CWE-77, CWE-88, CWE-426, CWE-427                                                  |
| Cross-origin security (CORS, CSRF provenance, clickjacking, cross-window messaging, cross-site leaks) | A01:2025 Broken Access Control and A02:2025 Security Misconfiguration                                                                          | CWE-346, CWE-942, CWE-352, CWE-1021, CWE-1275                                             |
| Error handling and exceptional conditions                                                             | A10:2025 Mishandling of Exceptional Conditions                                                                                                 | CWE-703, CWE-754, CWE-755, CWE-636, CWE-209                                               |
| Subdomain takeover and dangling DNS                                                                   | A02:2025 Security Misconfiguration, with downstream effects in A01:2025 Broken Access Control                                                  | No dedicated CWE; CWE-672 by analogy, CWE-346, CWE-942                                    |
| Improper TLS certificate validation in clients                                                        | A04:2025 Cryptographic Failures and A07:2025 Authentication Failures                                                                           | CWE-295, CWE-297, CWE-296, CWE-299, CWE-319                                               |
| Security misconfiguration and exposed management interfaces                                           | A02:2025 Security Misconfiguration; API8:2023 Security Misconfiguration for APIs                                                               | CWE-16, CWE-1188, CWE-489, CWE-306, CWE-798, CWE-1392, CWE-200                            |
| Broken object-level and function-level authorization                                                  | A01:2025 Broken Access Control, with A06:2025 Insecure Design where the check was never designed; API1:2023, API3:2023, and API5:2023 for APIs | CWE-284, CWE-285, CWE-862, CWE-863, CWE-639, CWE-807                                      |
| Input validation, canonicalization, and parser differentials                                          | No single category; A05:2025 Injection when the value reaches an interpreter                                                                   | CWE-20, CWE-172, CWE-174, CWE-176, CWE-179, CWE-180, CWE-436, CWE-1289, CWE-235, CWE-1007 |

The CWE column lists related weaknesses and is not necessarily the list OWASP maps to that category. Rows marked 2021 show the category OWASP assigned to that CWE in the 2021 edition. The 2025 edition regrouped several categories, so confirm those rows against the 2025 CWE lists. The Top 10 edition and CWE mappings are fast-moving; read the living sources. The CWE vocabulary is in [Weakness Taxonomy Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc/weakness-taxonomy-reference.md).

## Related

* [Application Security and Secure SDLC](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc.md): the class overview, Top 10, ASVS, and the Secure SDLC. Browser-facing controls are in [Web Application Hardening](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc/web-application-hardening.md), session handling in [Session Management Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc/session-management-reference.md), and authorization testing in [Access Control Testing Checklist](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc/access-control-testing-checklist.md).
* [Injection Classes Reference: XXE, SSTI, LDAP, XPath, and Header/Log Injection](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc/injection-classes-reference-xxe-ssti-ldap-xpath-and-header-log-injection.md): the injection classes beyond XSS and SQL injection.
* [Untrusted File and Media Processing Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc/untrusted-file-and-media-processing-reference.md): the processing pipeline that follows [File Upload Security Checklist](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc/file-upload-security-checklist.md), with sandboxing, limits, and per-format hazards.
* [Rate Limiting, Quotas and Resource Consumption Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/api-security/rate-limiting-quotas-and-resource-consumption-reference.md): the design reference for limits on request rate, size, cost, and fan-out, which also bound the regular expression and parser denial of service class above.
* [Signed URLs, Capability Links and Direct-to-Storage Access Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc/signed-urls-capability-links-and-direct-to-storage-access-reference.md): URLs that carry authority, including pre-signed storage URLs, share links, and magic links.
* [API Keys and Personal Access Tokens Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/api-security/api-keys-and-personal-access-tokens-reference.md): issuer-side design of long-lived credentials, which broken authentication and misconfiguration findings often involve.
* [Secure Software Update Delivery Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/product-security-and-psirt/secure-software-update-delivery-reference.md): the update channel, the highest-privilege remote path into a deployed product.
* [Native Code Hardening and Memory-Safety Migration Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc/native-code-hardening-and-memory-safety-migration-reference.md): build hardening and migration for the memory-safety bug classes.
* [Service-to-Service and Partner API Authentication Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/api-security/service-to-service-and-partner-api-authentication-reference.md): caller and subject authentication between services and with partners, which the object-level checks above depend on.
* [Account Lifecycle, Recovery and Linking Flows Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-security-and-secure-sdlc/account-lifecycle-recovery-and-linking-flows-reference.md): sign-up, recovery, MFA, and identity-linking flows, where broken authentication findings concentrate.
* [Application Platform Security Reference](https://martian1337.gitbook.io/notes/appsec/application-and-product-security/application-platform-security-reference.md): the platform-level references (multi-tenant, serverless, desktop, and browser extension applications).
* [AppSec Testing](https://martian1337.gitbook.io/notes/appsec/appsec.md): the hands-on checklists and test cases that exercise these classes.
* [Product Security Engineering](https://martian1337.gitbook.io/notes/appsec/product-security-engineering.md): static analysis, DevSecOps, and threat modeling that find and prevent them.

## Sources

* [OWASP Top 10:2025](https://owasp.org/Top10/2025/)
* [OWASP ASVS](https://owasp.org/www-project-application-security-verification-standard/)
* [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/)
* [OWASP WSTG (testing guide)](https://owasp.org/www-project-web-security-testing-guide/)
* MITRE CWE and the CWE Top 25: <https://cwe.mitre.org/> and <https://cwe.mitre.org/top25/>
