XSS, CSRF, CSP, JWT, Wtf? Idk ¯\_(ツ)_/¯
summary
Demonstrates concrete web security attacks and mitigations: a JWT "none" algorithm exploit that converts a user cookie to admin (fixed by using HttpOnly cookies and whitelisting algorithms); a CSRF reproduction via a cross-site form post mitigated with a CSRF token sent in a cookie and header; and a marked-markdown XSS bypass using encoded-colon tricks that requires patching the library. Also shows a JSONP callback attack that can install a malicious service worker, and how a Content Security Policy (report-only then enforcing), combined with dependency updates, can block many of these issues.
AI-written summary · about
chapters (10)
- 0:00Intro
- 1:00Who am I
- 2:35HTTPS
- 8:51Social Networks
- 9:45Cross-Site Request Forgery
- 10:56Targetblank links
- 14:24Myspace worm
- 17:23XSS
- 19:49Bottom Line
- 24:43CSP








