Simulations/Email Header Injection

Email Header Injection

Beginner

The "Contact us" form builds raw SMTP headers by concatenating your email and subject straight into the message. Sneak a CRLF (\r\n) into either field and the mail server treats whatever follows as a brand-new header — Bcc, Cc, even a forged Content-Type.

Progress:
1
Smuggle a Bcc Recipient
2
Spoof Extra Headers
3
Strip the CRLF
⚡ Contact form
From email
Subject
🛡 Server protection
SMTP send log
Waiting for a message…

Challenges

1
Smuggle a Bcc Recipient
Inject \r\nBcc: victim@corp.com into the email field so a hidden copy is sent to an address you added.
hints
2
Spoof Extra Headers
Inject a Cc and/or forge the Subject/Content-Type header via CRLF.
hints
3
Strip the CRLF
Enable the fix and confirm injected line breaks are removed and only the intended recipient remains.
hints
How to fix email header injection
strip CR/LF, use a mailer library, validate address format

Frequently Asked Questions