The OWASP Top 10 and secure design
A map of the most common web application risks, what each means in practice and a short review checklist you can apply to any design.
On the roadmap:Intermediate · step 7: Secure by design
Lesson 5 of 5 · 13 min read · quiz · exercise
What the Top 10 is
OWASP (the Open Worldwide Application Security Project) publishes an awareness list of the most critical web application risks, updated every few years from real data. Treat it as a checklist of categories to think about, not a complete standard. The names and order change between editions, so below the themes are described in stable terms with the current style of names in brackets.
The recurring risk categories
Figure SDA-NSD-05-1 · The risk categories as a review map · © forcsguy.com
| Category | In plain words | Typical prevention |
|---|---|---|
| Broken access control | Users can act outside their permissions (view others' data, call admin features) | Check authorisation on the server for every request and object; deny by default; test with two users |
| Cryptographic failures | Sensitive data exposed (no TLS, weak or home-made crypto, plaintext storage) | TLS everywhere, strong standard algorithms, hash passwords with a slow salted hash, manage keys properly |
| Injection | Input interpreted as code or commands | Parameterised queries, validation, least privilege (see the attacks lesson) |
| Insecure design | The design itself lacks controls | Threat modelling, abuse cases, secure patterns, limits on resources |
| Security misconfiguration | Default passwords, open storage buckets, verbose errors, missing headers | Hardened baselines, infrastructure as code, regular scans |
| Vulnerable and outdated components | Known flaws in libraries or platforms | Inventory dependencies, update, use automated advisories |
| Identification and authentication failures | Weak passwords, no MFA, bad session handling | MFA, rate limiting, safe recovery, strong session management |
| Software and data integrity failures | Untrusted updates, insecure CI/CD, unsafe deserialisation | Signed artefacts, protected pipelines, verify dependencies |
| Security logging and monitoring failures | Attacks go unnoticed | Log security events, alert, practise incident response |
| Server-side request forgery | The server fetches attacker-chosen URLs | Allow-lists, block internal ranges, isolation |
Authentication, authorisation, encryption, hashing
- Authentication answers "who are you?"; authorisation answers "what may you do?". Do both on the server, every request.
- Encryption is reversible with a key (protect data in transit and at rest). Hashing is one-way (verify without storing the original): for passwords use a slow, salted algorithm such as Argon2, bcrypt or scrypt, never plain SHA of the password. A salt is a unique random value per password that defeats precomputed tables. (Details in the passwords lesson.)
- Never invent your own cryptography.
Secure design in practice
- Threat model early. Draw the data flows, list assets, ask "who might attack this and how?" (a simple method: for each component consider spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege).
- Least privilege everywhere: users, services, database accounts, cloud roles.
- Defence in depth: several independent controls.
- Secure defaults: deny first; features off until needed.
- Fail safe: on error, do not grant access; do not leak details.
- Minimise data: do not collect or keep what you do not need.
- Automate: dependency scanning, static analysis, secret scanning, container scanning in CI.
- Test: unit tests for authorisation rules, automated scans, periodic penetration tests.
- Prepare for incidents: logs, alerts, runbooks, key rotation, backups.
A short review checklist for any feature
- Who is allowed to do this, and where is that checked?
- What input comes from users, and how is it validated and encoded?
- What secrets and personal data are involved, and how are they protected and logged?
- What can an attacker abuse in volume (rate limits, size limits, cost)?
- What third-party code or services does it add, and are they maintained?
- How would we notice if it were abused?
Where this fits
Security is a property of the whole system: network edge (previous lessons), application code (attacks lesson), identity (SSO and passwords lessons), data (encryption) and operations (monitoring and incident response). Make it a routine part of design reviews, not a final gate.
Real-world reading
Related reading
- OWASP Cheat Sheet SeriesOWASP · OWASP FoundationDocumentation
- AWS Security BlogAmazon Web Services engineers · Amazon Web ServicesBlogs
- Google Security BlogGoogle engineers · GoogleBlogs
- OWASP Top 10OWASP · OWASP FoundationDocumentation
Show 6 moreShow fewer
- Building Secure and Reliable SystemsGoogle engineers · O'Reilly / GoogleBooks
- Athenz: Fine-Grained, Role-Based Access Control at YahooYahoo engineers · YahooCase Studies
- Scalable IAM Architecture to Secure Access to 100 AWS Accounts at SegmentSegment engineers · SegmentCase Studies
- Security Development Lifecycle at SlackSlack engineers · SlackCase Studies
- Centralized Application Logging at eBayeBay engineers · eBayCase Studies
- Enterprise Key Management at SlackSlack engineers · SlackCase Studies
Check your understanding
Question 1 of 3
0 correct so far
What is the OWASP Top 10?
Go deeper
- OWASP Top 10 by OWASP: the current list and explanations
- OWASP Application Security Verification Standard by OWASP: a detailed checklist
Topics covered in this lesson
Practise it: Defence in depth
Everything below is already set up for this lesson: change the design, run the traffic, and see whether you meet the goal.
- 1The task
- 2Build and test
Credential stuffing and scraping hit your API: 90% of 4,000 requests per second are abusive.
Goal: Under 1% errors for real users.
Which layer can refuse excess requests before they cost you anything?
Try it yourself
Apply a quick threat-model to a new 'export my data as a file' feature: list assets, attackers, and five controls.
Click what a strong design here would need:
More in Building blocks
© 2026 forcsguy.com. Original lesson text and diagrams. Books and sites linked above belong to their authors.