Track 08 of 10Attacks and defenses
- 01What HTTPS protects
- 02The same-origin policy
- 03CORS
- 04Security headers
- 05Cookies done right
- 06Cross-site scripting (XSS)
- 07Content Security Policy
- 08Cross-site request forgery (CSRF)
- 09Clickjacking
- 10Unsafe URLs and open redirects
- 11Prompt injection
- 12SQL and command injection
- 13Prototype pollution, CRLF and SVG
- 14Server-side request forgery (SSRF)
- 15Remote code execution and denial of service
- 16Spoofed headers
- 17Rate limiting
- 18Cache poisoning
- 19The OWASP Top 10
- 20The attack lab
Track 08 of 10
Attacks and defenses
Watch each attack play out step by step, then watch the fix stop it. Browser first, then server.
20 lessons · about 141 minutes
- What HTTPS protectsLog in on café Wi-Fi over http and https, then watch HSTS stop SSL stripping.6 min
- The same-origin policyScheme, host and port: what other sites can make your browser send, and never read.6 min
- CORSBuild a cross-origin fetch, set the server's headers, and watch the preflight decide.8 min
- Security headersSwitch headers on one by one, then grade the headers this very page sends.6 min
- Cookies done rightBuild a session cookie attribute by attribute and see which attacks it survives.6 min
- Cross-site scripting (XSS)Post a comment, pick how the site shows it, and watch a session get stolen.8 min
- Content Security PolicyWrite a policy, then throw five attacks and two of your own features at it.8 min
- Cross-site request forgery (CSRF)A free-cruise page empties your bank account. Layer the defenses that stop it.7 min
- ClickjackingClaim a prize, then slide to reveal the invisible button you really clicked.5 min
- Unsafe URLs and open redirectsjavascript: URLs, look-alike hosts and ?next= tricks. Parse, don't search.7 min
- Prompt injectionA poisoned page steers an AI assistant into leaking your chat through an image.7 min
- SQL and command injectionLog in without a password, then run commands through a file name.8 min
- Prototype pollution, CRLF and SVGMake every user an admin with one JSON key, inject a header, and upload an avatar that runs script.9 min
- Server-side request forgery (SSRF)A link preview reaches cloud metadata. Block addresses, check every hop, cap size.8 min
- Remote code execution and denial of serviceCrash an image endpoint with a 40 KB file, then take it over with a crafted one.8 min
- Spoofed headersThe attacker types X-Forwarded-For. Find out what your app believes, and why.7 min
- Rate limitingForty password guesses against a limiter. Who counts as one client?6 min
- Cache poisoningOne request rewrites the home page for every visitor. Three ways to stop it.6 min
- The OWASP Top 10The 2025 edition: what changed, and where this site teaches each risk.5 min
- The attack labTwelve attacks on a login, graded defenses, and every simulation replayed.10 min