~/talk

XSS, CSRF, CSP, JWT, Wtf? Idk

Talkat JSConf Iceland 2018 · on Thursday, 2018-03-01· [security, nodejs]
slides:none on file

A vulnerable Node JSON Web Token setup lets an attacker flip the role to admin by switching the token to the JWT none algorithm exploit and pasting a manipulated auth cookie, a simple form autosubmit demonstrates a real CSRF that posts as the user, a sloppy JSONP callback allows arbitrary JavaScript that installs a JSONP → service worker implant to persist compromise, and a few demos show marked sanitizer bypass encodings; fixes used: whitelist algorithms, HTTPOnly signed cookies, csurf tokens, CSP reporting, and Snyk scans.

AI-written summary · about

  1. 0:00Intro
  2. 2:03HTTPS
  3. 3:06JWT
  4. 5:58Cookies
  5. 6:30JSON Web Tokens
  6. 7:30Social Network
  7. 8:13CSRF
  8. 9:31Target Blank
  9. 10:16No Opener
  10. 12:09Little Bobby
  11. 12:37Myspace worm
  12. 13:27CSS inline CSS
  13. 14:59XSS demo
  14. 17:34JSONP
  15. 21:28CSP
  16. 23:36CSP should be your safety net
  17. 24:05Avoid clickjacking
  18. 25:38Security audits
  19. 26:54Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.