~/talk

JWTs And Why They Suck

Talkat BSides London 2021 · on Saturday, 2021-11-13· [security, cryptography]
name:Rory M
links:none on file
slides:none on file

JWTs often break guarantees developers expect: they are stateless = unrevokeable so compromised sessions cannot be revoked without server-side tracking, short expiries only partly help, and many libraries mishandle JSON edge cases. The spec’s flexibility causes algorithm confusion (none, alg header swaps, kid injection) and other footguns, and storing tokens in localStorage trades CSRF for XSS. Practical fix is simple: issue opaque random session IDs in cookies, validate server-side, or if forced to use JWTs, strictly pin algorithms and key sources.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:26What is a JWT and why it sucks
  3. 3:51Problem 1: No token revocation
  4. 4:54Problem 2: JSON format issues
  5. 5:56Problem 3: Unnecessary complexity
  6. 6:39Problem 4: Too many algorithms
  7. 8:04Problem 5: Foot guns in JWTs
  8. 9:50Better alternatives to JWTs
  9. 12:15Summary and conclusion
  10. 13:11Q&A and references
~/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.