~/talk

The Hacker's Guide to JWT Security

Talkat JCON-ONLINE 2021 · 2021-10-05..10-08· [security, web-platform]
links:none on file
slides:none on file

Shows concrete failures: tokens are only base64 so claims leak, libraries accept a none algorithm bypass if verification uses parse not parseClaimsJws, HS256 secrets crackable offline with hashcat 2.5B H/s (demo secret found as "jcon29"), RSA-vs-HMAC mixups let an attacker swap alg and verify with a public key, HTTP/tcpdump captures tokens and a crafted XSS loads sessionStorage and exfiltrates tokens (token stolen via XSS). Demos build a vulnerable app and successfully hijack accounts.

AI-written summary · about

  1. 0:00Start
  2. 1:164 demos Problems: RFC. algorithms, implementations, applications Web demos powered by Oracle Cloud • Best practices
  3. 6:43None Algorithm
  4. 17:16HS256 Password/Key Cracking
  5. 22:48Only one token needed - No communication with a verification server - All cracking done offline - A victim/a system are unaware of the attack Weak key problem • Complications - Many algorithms Different kinds of keys
  6. 29:18Packet Sniffing
  7. 29:58XSS to Steal a Token
~/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.