PHP FILTER_VALIDATE_EMAIL header injection
| php-filtervalidateemail-header-injection (33510) |
Description:
PHP is vulnerable to email header injection. A remote attacker could inject a specially-crafted email header using the FILTER_VALIDATE_EMAIL function, which could be used for sending unsolicited email messages.
Platforms Affected:
- Canonical, Ubuntu 6.06 LTS
- Canonical, Ubuntu 6.10
- Canonical, Ubuntu 7.04
- Debian, Debian Linux 3.1
- Debian, Debian Linux 4.0
- Gentoo, Linux
- HP, HP-UX B.11.11
- HP, HP-UX B.11.23
- HP, HP-UX B.11.31
- MandrakeSoft, Mandrake Linux 2007
- MandrakeSoft, Mandrake Linux 2007 X86_64
- MandrakeSoft, Mandrake Linux 2007.1 X86_64
- MandrakeSoft, Mandrake Linux 2007.1
- MandrakeSoft, Mandrake Linux 2008.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 4.0
- MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
- MandrakeSoft, Mandrake Multi Network Firewall 2.0
- Novell, Linux POS 9
- Novell, Open Enterprise Server
- Novell, Open Enterprise Server
- Novell, OpenSUSE 10.2
- Novell, UnitedLinux 1.0
- PHP, PHP 5.2.0
- PHP, PHP 5.2.1
- SuSE, SLE SDK 10
- SuSE, SuSE Linux Retail Solution 8
- SuSE, SuSE SLES 10
- SuSE, SuSE SLES 9
Remedy:
Upgrade to the latest version of PHP (5.2.3 or later), available from the PHP Web site. See References.
For Debian GNU/Linux (PHP5):
Refer to DSA-1283-1 for patch, upgrade, or suggested workaround information. See References.
For Ubuntu Linux:
Refer to USN-455-1 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux (PHP):
Refer to GLSA 200705-19 for patch, upgrade, or suggested workaround information. See References.
For Mandriva Linux (PHP):
Refer to MDKSA-2007:187 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Bypass Security
References:
- HPSBUX02262 SSRT071447, HP-UX running Apache, Remote Arbitrary Code Execution, Cross Site Scripting (XSS) at http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01178795.
- PHP Web site, PHP: Hypertext Preprocessor at http://www.php.net/.
- PHP Web site, PHP 5.2.3 Release Announcement at http://www.php.net/releases/5_2_3.php.
- PMOPB-45-2007, PHP ext/filter Email Validation Vulnerability at http://www.php-security.org/MOPB/PMOPB-45-2007.html.
- ASA-2007-416: HP-UX running Apache, Remote Arbitrary Code Execution, Cross Site Scripting (XSS) (HPSBUX02262)
- BID-23359: PHP Filter_Var FILTER_VALIDATE_EMAIL Newline Injection Vulnerability
- CVE-2007-1900: CRLF injection vulnerability in the FILTER_VALIDATE_EMAIL filter in ext/filter in PHP 5.2.0 and 5.2.1 allows context-dependent attackers to inject arbitrary e-mail headers via an e-mail address with a '\n' character, which causes a regular expression to ignore the subsequent part of the address string.
- DSA-1283: php5 -- several vulnerabilities
- FrSIRT/ADV-2007-2016: PHP Multiple Function Remote Integer Overflow and Security Bypass Vulnerabilities
- FrSIRT/ADV-2007-3386: HP-UX Apache Code Execution and Cross Site Scripting Vulnerabilities
- GLSA-200705-19: PHP: Multiple vulnerabilities
- GLSA-200710-02: PHP: Multiple vulnerabilities
- MDKSA-2007:187: Updated PHP packages fix numerous vulnerabilities
- OSVDB ID: 33962: PHP ext/filter FILTER_VALIDATE_EMAIL Newline Injection
- SA24824: PHP "FILTER_VALIDATE_EMAIL" Filter Newline Injection
- SUSE-SA:2007:032: PHP security problems
- USN-455-1: PHP vulnerabilities
Reported:
Apr 07, 2007
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
