SB2017060802 - Email content disclosure in PHP



SB2017060802 - Email content disclosure in PHP

Published: June 8, 2017

Security Bulletin ID SB2017060802
CSH Severity
Low
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Local access
Highest impact Information disclosure

Breakdown by Severity

Low 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 vulnerability.


1) Information disclosure (CVE-ID: N/A)

CWE-ID: CWE-200 - Exposure of sensitive information to an unauthorized actor

CVSSv4: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear


The vulnerability allows an attacker to gain access to potentially sensitive information.

The vulnerability exists within the implementation of the mail() PHP function in win32/sendmail.c, when parsing email headers for CC and BCC lines. A local or remote attacker with ability to modify email headers can send a copy of email messages to arbitrary email address.

Example:

$headers = implode("\r\n", [
  "Cc: test2@example.com",
  "X-Test-Cc: line 2",
  "X-Test-Aabbcc: test3@example.com",
  "X-Line-4: line 4"
]);
mail("test@example.com", "Subject", "Body", $headers);

Actual recipients:

Recipients: test@example.com, test2@example.com, test3@example.com

Remediation

Install update from vendor's website.