Skip to content
Katabench
Try free

Email Header Injection

Easy About 12 min Katabench Pro

Reject recipient addresses that could break out of an email header line and forge new headers.

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 Log Forging (CRLF), 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

CRLF injection
Stop embedded newlines from forging log lines or email headers.

Related katas