Track 08 of 10Attacks and defenses

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

  1. What HTTPS protectsLog in on café Wi-Fi over http and https, then watch HSTS stop SSL stripping.6 min
  2. The same-origin policyScheme, host and port: what other sites can make your browser send, and never read.6 min
  3. CORSBuild a cross-origin fetch, set the server's headers, and watch the preflight decide.8 min
  4. Security headersSwitch headers on one by one, then grade the headers this very page sends.6 min
  5. Cookies done rightBuild a session cookie attribute by attribute and see which attacks it survives.6 min
  6. Cross-site scripting (XSS)Post a comment, pick how the site shows it, and watch a session get stolen.8 min
  7. Content Security PolicyWrite a policy, then throw five attacks and two of your own features at it.8 min
  8. Cross-site request forgery (CSRF)A free-cruise page empties your bank account. Layer the defenses that stop it.7 min
  9. ClickjackingClaim a prize, then slide to reveal the invisible button you really clicked.5 min
  10. Unsafe URLs and open redirectsjavascript: URLs, look-alike hosts and ?next= tricks. Parse, don't search.7 min
  11. Prompt injectionA poisoned page steers an AI assistant into leaking your chat through an image.7 min
  12. SQL and command injectionLog in without a password, then run commands through a file name.8 min
  13. 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
  14. Server-side request forgery (SSRF)A link preview reaches cloud metadata. Block addresses, check every hop, cap size.8 min
  15. 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
  16. Spoofed headersThe attacker types X-Forwarded-For. Find out what your app believes, and why.7 min
  17. Rate limitingForty password guesses against a limiter. Who counts as one client?6 min
  18. Cache poisoningOne request rewrites the home page for every visitor. Three ways to stop it.6 min
  19. The OWASP Top 10The 2025 edition: what changed, and where this site teaches each risk.5 min
  20. The attack labTwelve attacks on a login, graded defenses, and every simulation replayed.10 min