~/talk

The Hacker's Guide to JWT Security

Talkat GopherCon AU 2023 · 2023-11-08..11-10· [security]
links:none on file
slides:none on file

Four live demos show concrete failures and fixes: a none algorithm bypass lets an attacker replace a token and become another user because parse-without-verify mistakes libraries expose; HS256 secrets crack offline with 14 seconds with Hashcat on a GPU to recover "gofer" and mint valid tokens; unencrypted internal hops leak Authorization headers via tcpdump packet sniffing; persistent XSS exfiltrates sessionStorage JWTs using XSS via image src exfiltration. Recommendations: require algorithms/keys, use 32-byte+ HMAC keys or 2K/3K RSA, verify signatures and check claims.

AI-written summary · about

  1. 0:00Introduction to JWT insecurity
  2. 6:36Demo one none algorithm
  3. 17:31Cracking HS256 keys
  4. 24:43Sniffing unencrypted tokens
  5. 26:35XSS to steal tokens
  6. 29:45Summary and best practices
~/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.