Parsing JSON Is a Minefield
summary
Examines how various JSON libraries differ in behavior by building a test corpus from JSON specifications (RFCs) and running libraries against it; finds many inconsistencies, edge cases and malformed payloads that can trigger bugs, crashes and DoS (including a SQLite stack overflow). Explains the methodology of deriving test cases from evolving, loosely specified RFC details to uncover parsing vulnerabilities and implementation flaws.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 2:09Fridge as analogy
- 4:13JSON spec origins
- 7:46Parser tests
- 10:15Nested structures
- 12:03Number precision
- 14:06String encoding
- 18:14Parser inconsistencies
- 21:02Testing popular parsers
- 24:11Unicode edge cases
- 26:39Reference flaws
- 28:47Output differences
- 30:58Key normalization
- 32:25Writing a parser
- 33:07JSON fragility
- 34:32Community feedback
- 37:20Security implications
- 38:44JSON spec updates
- 39:34Q&A
