Injection
Email Injection
Email injection occurs when user input is placed into a mail message or protocol command without stripping CR/LF or MIME structure. Typical sinks are contact and invite forms, password-reset mailers, "send to a friend" features and webmail clients (IMAP/SMTP command injection). Impact includes spamming, phishing from a trusted sender, reset-link redirection, header spoofing and data exfiltration via added recipients.
- 69 payloads
- 1 file
- README on GitHub
Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.
These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.
Payload files
Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.
email-injection-payloads.txt
69 payloads · 4.3 KBLoading payloads for Email Injection…
Common Attack Vectors#
- To, From, Subject, Reply-To and custom headers built from form input
- Additional
Cc:andBcc:recipients added with CR/LF - Body injection through a header that ends the header block early
- MIME boundary and content-type manipulation, HTML injection in HTML email
- IMAP/SMTP command injection in webmail and mail-proxy features
- Email-address parsing differences (quoted local parts, comments, encoded words) that bypass validation or domain allow-lists
- Password-reset and invitation mailers where the recipient can be duplicated
Testing Approach#
Use mailboxes you own. Add a second recipient you control through a CRLF in the field and check which mailbox receives the message and with what headers. Compare how the validator and the mail library parse the same address; mismatches create allow-list bypasses. For webmail and mail proxies, inject protocol commands such as NOOP and observe protocol-level errors. Do not email third parties or send bulk messages.
References#
Responsible Use
All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.
- Systems and applications you own
- Authorized penetration testing engagements
- Bug bounty programs with defined scope
- Educational lab environments (DVWA, WebGoat, HackTheBox)