Skip to content
yaklang avatar

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
View on GitHub

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(), Python smtplib, and Node.js nodemailer with 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 -y

Installs 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


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

Similar to Email Header Injection

More Security