Bitting into the forbidden fruit.Lessons froms trusting JavaScript crypto
summary
Survey of real-world JavaScript crypto finds concrete failures: key generation bugs in chat apps (Cryptocat/cryptocurrent) that drop entropy, a 16‑byte unicode AES attack that recovers keys by type coercion, OpenPGPjs RSA padding timing leaks, a GnuTLS integer-return bug analogue, and engine-level memory safety exploits that let attackers read/write process memory by overwriting an arraybuffer getter. Browser delivery and XSS remain the biggest attack surface; running crypto inside a signed extension with strict coding and CSP reduces but does not eliminate risk.
AI-written summary · about
chapters (26)
- 0:00Biting into the forbidden fruit
- 1:23JS crypto history
- 3:52Doomed to fail?
- 5:10Action plan
- 5:47JS crypto vulns in the wild
- 7:11Language issues matter
- 7:39Javascript in a glance
- 8:44Weak typing
- 11:32Magic properties
- 14:49Silent errors
- 18:33Encrypting...
- 19:57Implicit type coercion
- 21:41Decrypting...
- 25:16Web platform
- 26:28XSS
- 30:08RCE in non-JS crypto
- 30:38Timing side-channels
- 32:16Direct memory access
- 34:59Browser architecture
- 36:11Malware problem
- 37:31Application delivery
- 38:49Is JS crypto doomed?
- 39:46Browser extension
- 41:23Open problems
- 42:48Summary
- 43:45The end
