Twenty real attacks on web apps. Every one happened to a real company and got fixed. Each entry has:
- what the attack is, in plain words
- the public incident, with a link to the source
- how to tell if it applies to your app
- the fix, with before and after code
- a prompt that has Claude Code check your own codebase for it (read only)
Ten entries also have a small demo that runs on toy code in your browser, like a 2FA code that works twice, a username that skips the password, or a JSON body that makes every user an admin.
| Group | Attacks |
|---|---|
| Login | 52-character username, SAML bypass, nOAuth email spoof, 2FA code replay, JWT algorithm confusion, Unicode username |
| Traffic | HTTP/2 Rapid Reset, GraphQL aliases, ReDoS regex, Request smuggling, Cache poisoning, Spoofed IP header |
| Data | Views bypass RLS, Math.random tokens, Timing attack, Padding oracle |
| Code | Prototype pollution, Template injection, XXE file read, WebSocket hijack |
Built for defenders. The demos never send a request anywhere, and nothing uses eval. Only test systems you own or have written permission to test.
node test.mjs checks every entry has a source link, applies-if, fix and before/after code. It runs on every push.
MIT license. Made by Chase Builds.
