Skip to content
Katabench
Try free

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.

C# secure coding exercises →

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