Use this when the design itself lacks security controls (OWASP A04).
Insecure Design
Insecure design (OWASP A04) is a flaw in the design itself, such as missing rate limits on password reset, which perfect code cannot fix. Threat modelling and secure design patterns address it.
1. Insecure design: missing security controls by design.
2. Threat model early.
3. Abuse cases and limits (rate limits, quotas).
4. Secure patterns and paved roads.
5. Review designs.
feature → threat model → controls in design
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Adding security only at the end of design.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Code fixes cannot repair missing design controls.
- Threat model early.
- Use secure design patterns.
- Threat model per feature — design review
- Abuse cases — misuse scenarios
- Secure design patterns — reference architecture
ReferenceWhy it matters1 section · depth on demand
Preventing insecure design
- Threat model new features (STRIDE or abuse cases) before building them.
- Use secure design patterns and reference architectures.
- Add business limits: rate limits, maximum transaction values, multi-step verification for risky actions.
- Write security requirements and test them like functional requirements.
ReferenceHow it works1 section · depth on demand
In depth
Insecure design covers flaws in how an application is designed rather than how it is coded: missing rate limits on sensitive actions, business logic that can be abused, lack of tenant isolation, recovery flows that bypass authentication. Perfect code cannot fix a design that lacks the necessary controls.
Preventing design flaws:
| Practice | Example |
|---|---|
| Threat modelling | STRIDE on data flows during design |
| Security requirements | Based on OWASP ASVS levels |
| Secure design patterns | Reference architectures, vetted components |
| Abuse cases | "What if a user repeats this step 10,000 times?" |
| Design reviews | Security sign-off for high-risk features |
Design issues are cheapest to fix on the whiteboard and expensive in production — involve security early.
ReferenceImportant terms & boundaries2 sections · depth on demand
Threat modelling in practice
1. Draw a data-flow diagram: users, processes, data stores, trust boundaries.
2. Apply STRIDE per element (Spoofing, Tampering, Repudiation, Information disclosure, DoS, Elevation of privilege).
3. Record threats, mitigations and owners.
4. Turn mitigations into requirements and tests (e.g. ASVS items).
Tools: OWASP Threat Dragon, Microsoft Threat Modeling Tool, or a whiteboard.
Examples
- Password reset based on security questions.
- No rate limit on ticket purchase, letting bots buy everything.
- Business logic that trusts client-side price calculations.
- Multi-tenant app without tenant ID checks on every query.
These are design flaws — no amount of perfect code fixes them without changing the design.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in OWASP → Insecure Design. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://owasp.org/www-project-application-security-verification-standard/ · confidence 94%