Alternate IPv4 Spellings (SSRF)
Medium About 35 min Katabench 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.
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 Comment Renderer (HTML Injection), which is free.
How it is graded
Functional tests and adversarial payloads both have to pass before the solution is accepted.
What it practices
- Server-side request forgery
- Block requests to private, loopback and alternately spelled internal addresses.
- Parser differentials
- Reject ambiguous input such as duplicate members or conflicting framing that two parsers read differently.
Do these first
Related katas
- Reject Ambiguous JSON Members Medium Pro Reject duplicate decoded property names at every nesting level before downstream parsers disagree.
- Reject Ambiguous HTTP Framing Hard Pro Reconcile repeated body-length headers and transfer coding before two HTTP hops disagree on request boundaries.
- Comment Renderer (HTML Injection) Easy Free Fix a stored-XSS hole in a comment renderer without breaking its output.
- Filename Sanitizer Easy Free Reduce an uploaded filename to a safe, single path segment.