No Way JOSE! Designing Cryptography
summary
Claims that JOSE/JWT design mixes symmetric and asymmetric metadata and enables attacks (including invalid-curve and header-forced-algorithm swaps) and that blaming libraries shifts responsibility. Builds a replacement called pasado with versioned cipher suites (v1: RSA-AES-HMAC; v2: libsodium ChaCha20-Poly1305 + Ed25519), pre-auth encoding, HKDF, base64url, and typed key objects. Publishes an RFC draft, reference PHP implementation and ~11 language ports; the design is implemented and usable today and aims to reduce developer footguns by hardening defaults.
AI-written summary · about
chapters (16)
- 0:00Intro
- 0:20Scott Arciszewski
- 2:21Case Study: JOSE
- 3:10JSON Web Tokens
- 3:47JSON Web Signatures
- 5:09JSON Web Encryption
- 6:30The Generalized Problem
- 7:42To pwn, or JWT to pwn?
- 8:59Industry Antipatterns
- 11:14PASETO Overview
- 12:51PASETO Versions
- 15:46PASETO-Rules for All Versions
- 17:32Pre-Authentication Encoding
- 18:35PAE in Practice
- 21:26Designing Cryptography for Humans
- 23:07Cryptography for Mere Mortals, cont'd.
