Reject Ambiguous HTTP Framing
Hard About 40 min Katabench Pro
Reconcile repeated body-length headers and transfer coding before two HTTP hops disagree on request boundaries.
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 JSON Members Medium Pro Reject duplicate decoded property names at every nesting level before downstream parsers disagree.
- Block Private Hosts (SSRF) Medium Free Reject internal hosts so a user-supplied URL cannot make the server call itself or its neighbors.
- Validate an Attenuated Delegation Chain Hard Pro Validate every grant ancestor so a delegated capability cannot regain permissions, extend expiry, or switch resources.