~/talk

How to securely use JSON Web Tokens

Talkat UtahJS Conf 2022 · on Friday, 2022-09-23· [security, web-platform]
links:none on file
slides:none on file

Explains JWT structure (header, payload, signature), warns never to store secrets in the base64 payload, and demonstrates two real vulnerabilities: a library-attack where an ES256 public key is reused to sign as HS256 letting an attacker forge admin tokens (demoed against an old jsonwebtoken version now patched), and acceptance of alg none allowing arbitrary payloads. Shows a session-token proof-of-failure: embedding user state prevents revocation and forces a revocation DB, negating stateless gains. Recommends short-lived tokens, verification, asymmetric keys, and alternatives like PASETO.

AI-written summary · about

  1. 0:00Introduction
  2. 0:46What are JWTs
  3. 2:58Signing tokens securely
  4. 4:24Symmetric vs asymmetric
  5. 5:28Dangers of none algorithm
  6. 6:31Algorithm confusion attack
  7. 8:58Use cases for JWTs
  8. 10:22Short-lived tokens
  9. 10:42Session tokens overview
  10. 12:08Live demo of JWT API
  11. 16:28Why JWTs fail for sessions
  12. 17:10Best practices for JWTs
  13. 18:37Alternatives to JWTs
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.