The OWASP Top 10, in code.
Each of the ten web risks explained, with vulnerable and fixed code in several languages, and the test that proves the fix.
$ click a card for details · ctrl+k to search
learning map
Topics are laid out by level, from foundations to advanced. Arrows point from a prerequisite to what builds on it. Select a topic to preview it, or follow the highlighted next step.
Your next step
0 of 10 studied01 Foundations
The ideas everything else builds on.
02 Practitioner
Apply the controls and make them work in practice.
03 Advanced
Design, scale and operate at depth.
- studied
- ready to study
- prerequisites missing
- arrows go from a prerequisite to what builds on it
where each risk is decided
From design to operations: every risk has a phase where prevention is cheap. Each chip opens the matching topic.
- 01design
decide what must be impossible
gate: every feature has abuse cases and an authorization rule before code
- 02code
handle input, secrets and identity safely
gate: dangerous patterns are blocked in review and CI
- 03ship
deliver verified code with safe settings
gate: only signed, scanned, hardened artifacts reach production
- 04operate
see attacks and fail safely
gate: an attack is noticed, contained and leaves a trail