~/talk

Do You Really Know JWT?

TalkinFrenchat Devoxx France 2022 · 2022-04-20..04-22· [security, web-platform]
slides:none on file

Covers JSON Web Tokens (JWT): explains token structure and formats (JWS, JWE, JWK) and key transport, then demonstrates practical attacks using a custom PHP verifier and unit tests — including alg=none exploitation, RSA-to-HMAC key confusion, brute-forcing weak secrets, and ciphertext malleability that flips claims. Uses jwt.io and a homemade library to reproduce failures and finds libraries/defaults that accept insecure headers; recommends long secrets or asymmetric keys, algorithm allowlists, validate iss/aud/exp, short lifetimes, key rotation, and using well-tested libraries.

AI-written summary · about

  1. 0:00Start
  2. 9:36Focus on the payload
  3. 15:50Key management
  4. 20:52And the attacks?
  5. 30:33Modifying encrypted data
  6. 31:29Substitution
  7. 31:59The JWT paradox
  8. 33:44Some security tips
  9. 35:08Validating claims
  10. 35:40Prefer asymmetric
  11. 36:00Use an existing and proven library
  12. 36:42Don't fight to revoke JWTs
  13. 37:27About privacy
  14. 37:58Avoid logging tokens
  15. 38:23Include necessary and sufficient information
  16. 39:10What are the alternatives?
~/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.