Reject Ambiguous JSON Members
Medium About 30 min Katabench Pro
Reject duplicate decoded property names at every nesting level before downstream parsers disagree.
The full brief is part of Katabench Pro
Pro opens this kata's brief, its starter code and its grader. To see how the track works first, try Block Private Hosts (SSRF), which is free.
How it is graded
Functional tests and adversarial payloads both have to pass before the solution is accepted.
What it practices
- Parser differentials
- Reject ambiguous input such as duplicate members or conflicting framing that two parsers read differently.
Related katas
- Alternate IPv4 Spellings (SSRF) Medium Pro Read octal, hex, and shortened IPv4 hosts the way the URL parser does, so another spelling of an internal address cannot slip past the SSRF filter.
- Reject Ambiguous HTTP Framing Hard Pro Reconcile repeated body-length headers and transfer coding before two HTTP hops disagree on request boundaries.
- Block Private Hosts (SSRF) Medium Free Reject internal hosts so a user-supplied URL cannot make the server call itself or its neighbors.
- Comment Renderer (HTML Injection) Easy Free Fix a stored-XSS hole in a comment renderer without breaking its output.