Email Header Injection
Expert playbook for email header injection and SPF/DKIM/DMARC bypass, covering CRLF payloads, spoofing vectors, and mail client abuse.
- CCM score
- 64 of 100
- skills.sh installs
- 4K
- GitHub stars
- 2.7K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers SMTP CRLF injection in headers and body, plus SPF, DKIM, and DMARC bypass techniques with DNS check commands
- Includes BCC exfiltration, Reply-To hijacking, and HTML phishing payloads for contact forms and password reset flows
- Documents vulnerable patterns in PHP
mail(), Pythonsmtplib, and Node.jsnodemailerwith the injectable parameters called out - Designed for authorized penetration testing of contact forms, email APIs, and mail-sending features
Install
$ npx -y skills add yaklang/hack-skills --skill email-header-injection -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
SKILL: Email Header Injection — Expert Attack Playbook
AI LOAD INSTRUCTION: Expert email header injection and authentication bypass. Covers SMTP CRLF injection, SPF/DKIM/DMARC circumvention, display name spoofing, and mail client rendering abuse. Base models miss the nuance between header injection (technical) and email auth bypass (protocol-level) — this skill covers both attack surfaces.
0. RELATED ROUTING
- crlf-injection — general CRLF injection; email headers are a specific high-value sink
- ssrf-server-side-request-forgery — when SMTP server is reachable via SSRF (gopher://smtp)
- open-redirect — redirect in password-reset emails as phishing amplification
1. SMTP HEADER INJECTION FUNDAMENTALS
SMTP headers are separated by CRLF (\r\n). If user input is placed into email headers without sanitization, injecting %0d%0a (or \r\n) adds arbitrary headers.
Injection anatomy
Normal header construction:
To: user@example.com\r\n
Subject: Contact Form\r\n
From: noreply@target.com\r\n
Details
- Repository
- github.com/yaklang/hack-skills
- Category
- Security
- First seen
- Jun 3, 2026
More from yaklang/hack-skills
All 102- Xslt Injection4K
- Linux Lateral Movement4K
- Type Juggling4K
- Linux Security Bypass4K
- Classical Cipher Analysis4K
- Tunneling And Pivoting4K
- Steganography Techniques4K
- Prototype Pollution Advanced3.9K
- Stack Overflow And Rop3.9K
- Smart Contract Vulnerabilities3.9K
- Lattice Crypto Attacks3.9K
- Rsa Attack Techniques3.9K
- Sandbox Escape Techniques3.9K
- Symmetric Cipher Attacks3.9K
- Windows Lateral Movement3.9K
- Macos Security Bypass3.9K
- Ntlm Relay Coercion3.9K
- Nosql Injection3.9K
- Macos Process Injection3.9K
- Upload Insecure Files3.9K
- Unauthorized Access Common Services3.8K
- Reverse Shell Techniques3.8K
- Ghost Bits Cast Attack3.7K
- Hack4.8K
Similar to Email Header Injection
More SecuritySMTP Penetration Testingdavila7/claude-code-templates185 installsStructured walkthrough for assessing SMTP servers covering banner grabbing, user enumeration, open relay checks, and authentication testing.
clickjackingyaklang/hack-skills4K installsClickjacking playbook covering frameability checks, PoC templates, and bypasses for UI redress attacks on sensitive actions.
http-host-header-attacksyaklang/hack-skills4K installsHost header injection and routing abuse playbook covering password reset poisoning, cache poisoning, and virtual host bypass.
email-best-practicesresend/resend-skills14.7K installsComprehensive guidance for deliverable, compliant, and accessible email from planning through production sending.
HTML Injection Testingdavila7/claude-code-templates223 installsHTML injection testing skill covering reflected, stored, and POST injection with phishing and defacement payload patterns.