~/talk

The Hacker's Guide to JWT Security

Talkat Devoxx Belgium 2019 · 2019-11-04..11-08· [security, web-platform]
links:none on file
slides:none on file

Demos show concrete failures: a library accepting "alg":"none" lets an attacker swap tokens and gain sessions, and poor APIs like parse vs parseClaimsJws cause silent acceptance of unsigned tokens. HS256 secrets are brute forced offline (Hashcat on GPUs reaches billions hashes/sec; a 6‑char secret is trivial; use ≥32‑byte keys). Packet sniffing and XSS demo exfiltrates sessionStorage tokens; mitigation options include cookies with HttpOnly plus fingerprinting (cookie vs token claim), short expirations, revocation state, and RSA ≥2kbit keys.

AI-written summary · about

  1. 0:00Intro
  2. 0:15About Me
  3. 2:00RFC 7519, JSON Web Token
  4. 10:15io.jsonwebtoken
  5. 13:04Another Library with None Problem
  6. 13:49Library API Problem
  7. 15:03Why to Require Algorithm and Key?
  8. 23:06hashcat
  9. 23:26Demo #2, Problems
  10. 24:10JWT, Algorithms
  11. 25:05JWT, HS Family
  12. 37:28XSS Attack Vector
  13. 38:36Problems and Solutions
  14. 42:23OWASP Token Sidejacking Solution
  15. 44:19Basic Hygiene: Timeouts and Logouts
  16. 47:34Continuous Learning
~/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.