Email injection

From zakirkun/ice-tea · View interactive version

Email injection is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects email sending functions that include user input in email headers without CRLF stripping, enabling spam relay and header manipulation.

How to use this skill

Skill file

Email Header Injection

Overview

Email header injection (also known as SMTP header injection) allows attackers to inject additional To:, CC:, BCC: headers or modify the message by inserting CRLF sequences (\r\n) into email fields. This turns the application into a spam relay.

Attack: Setting the "From name" to victim@example.com\r\nBCC: spam@list.com adds a blind carbon copy to all sent emails.

Remediation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.