~/talk

The Hacker's Guide to JWT Security

Talkat 4Developers 2021 · 2021-05-24..05-27· [security]
links:none on file
slides:none on file

Four live demos expose practical JWT failures: acceptance of the none algorithm due to misleading library APIs, an HS256 secret cracked in ~15–20s with hashcat on GPUs (2 billion vs ~5 million hashes/sec on a laptop), token theft via XSS + image-based exfiltration and tcpdump on HTTP, and RSA/HMAC confusion allowing forged tokens when keys/algorithms aren’t enforced. The demo app uses sessionStorage and Authorization headers; fixes shown include requiring specific algorithm+key, HTTPS, CSP, hardened cookies and the OWASP cookie+fingerprint pattern; revocation and timeouts remain developer responsibilities.

AI-written summary · about

  1. 0:00Introduction to JWT security
  2. 5:27Problem with none algorithm
  3. 16:15HS256 key cracking demo
  4. 23:10Key length recommendations
  5. 25:19HTTP token sniffing demo
  6. 29:10HTTPS and XSS vulnerabilities
  7. 32:11Solutions and best practices
  8. 35:27Logout and token revocation
~/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.