Learn About CSRF Attacks
What cross-site request forgery is, why a browser's automatic cookies make it possible, and the layers that stop it: tokens, SameSite cookies and a check of where a request came from. Told through one small league website, with code you can read or skip.
- Beginner level
- 3 modules
- 5 lessons
- 25 quiz questions
Syllabus
01What CSRF IsHow a browser vouches for you automatically, and how a malicious page can borrow that vouching to make a site do something you never asked for.1 lesson
02Forged Requests in ExpressA small Express site sends the forged request for real, then closes the gap with tokens, SameSite cookies and a check of where the request came from.3 lessons
03ReviewA checklist of the layers, what each one stops and what it leaves open, then scenario questions that put them together.1 lesson