CAPECattack pattern

CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads

High Official page ↗
Abstraction
Detailed
Status
Draft
Likelihood of attack
High
Typical severity
High
CAPEC version
3.9

Description

This type of attack involves an attacker leveraging meta-characters in email headers to inject improper behavior into email programs. Email software has become increasingly sophisticated and feature-rich. In addition, email applications are ubiquitous and connected directly to the Web making them ideal targets to launch and propagate attacks. As the user demand for new functionality in email applications grows, they become more like browsers with complex rendering and plug in routines. As more email functionality is included and abstracted from the user, this creates opportunities for attackers. Virtually all email applications do not list email header information by default, however the email header contains valuable attacker vectors for the attacker to exploit particularly if the behavior of the email client application is known. Meta-characters are hidden from the user, but can contain scripts, enumerations, probes, and other attacks against the user's system.

Execution flow

1. [Experiment] [Identify and characterize metacharacter-processing vulnerabilities in email headers] An attacker creates emails with headers containing various metacharacter-based malicious payloads in order to determine whether the target application processes the malicious content and in what manner it does so. 2. [Exploit] An attacker leverages vulnerabilities identified during the Experiment Phase to inject malicious email headers and cause the targeted email application to exhibit behavior outside of its expected constraints.

Prerequisites

• This attack targets most widely deployed feature rich email applications, including web based email programs.

Skills required

• [Low] To distribute email

Consequences

• Confidentiality, Integrity, Availability: Execute Unauthorized Commands

Mitigations

• Design: Perform validation on email header data • Implementation: Implement email filtering solutions on mail server or on MTA, relay server. • Implementation: Mail servers that perform strict validation may catch these attacks, because metacharacters are not allowed in many header variables such as dns names

Related

Child of · CAPEC (2)

Weakness · CWE (3)

  • CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences weakness
  • CWE-697 Incorrect Comparison weakness
  • CWE-88 Improper Neutralization of Argument Delimiters in a Command weakness

Referenced by CWE · attack pattern (3)

  • CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences weakness
  • CWE-697 Incorrect Comparison weakness
  • CWE-88 Improper Neutralization of Argument Delimiters in a Command weakness