Insecure Design

Architectural decisions that create vulnerabilities no amount of clean implementation can fix.

A06:2025 · High severity · Updated November 6, 2026

What it is

Insecure Design moves from A04:2021 to A06:2025. It covers vulnerabilities that are baked into the system before any line of code is written: business logic flaws (rate limits that are not enforced, password reset flows that allow account takeover by design, file upload features that cannot be safely implemented), missing threat modeling, and reliance on user-supplied trust labels. Unlike injection or auth bugs, insecure design issues persist through code-level fixes because the design itself is the vulnerability.

Common patterns

  • File upload features without a viable threat model (allowed types, storage location, serving behavior).
  • Password reset flows that confirm reset based on knowledge of public information.
  • Rate limits enforced client-side, or applied per IP rather than per identity, or absent entirely.
  • Multi-tenant architectures that scope by request parameter rather than by the authenticated identity.
  • Privileged operations that rely on the absence of a UI link to remain undiscovered ('security by obscurity').
  • Workflows that assume an out-of-band step has occurred when it has not been verified.

What Deva detects

Insecure design is partly architectural and not fully detectable by code-level static analysis. Deva surfaces some structural smells (unsafe upload filenames and brute-force exposure on login routes in Flask, and disabled CSRF protection) but cannot replace threat modeling.

CWE detection guides

  • CWE-434 · Unrestricted File Upload

Real-world examples

YearIncidentWhat happened
2019Twitter SMS-based 2FA designTwitter's design tied 2FA to phone numbers in a way that could be hijacked via SIM-swap attacks. The flaw was structural: any system that uses SMS as a second factor inherits SIM-swap risk. Stronger second factors are now preferred for high-value accounts.

Compliance framework impact

These educational references describe control topics, including frameworks Deva does not currently offer for evaluation. CMMC evaluation and SPRS scoring are unavailable. See the FAQ for supported frameworks and preview status. Code-level findings support an assessment; they do not certify compliance.

  • NIST 800-53 SA-8 Security and Privacy Engineering Principles, SA-11 Developer Testing and Evaluation
  • PCI-DSS v4.0.1 Req 6.2 Secure software development
  • NIST SSDF PW.1 Design software to meet security requirements and mitigate security risks

Related glossary terms