The PHP Extension and Application Repository (PEAR) Installer.php file overwrite
| pear-installer-file-overwrite (34482) |
Description:
PEAR could allow a remote attacker to overwrite arbitrary files on the system, caused by improper validation by the Installer.php function. By persuading a victim to install a malicious PEAR package, a remote attacker could exploit this vulnerability to overwrite arbitrary files and possibly execute arbitrary code on the system.
*CVSS:
| Base Score: | 4.2 |
| Access Vector: | Remote |
| Access Complexity: | High |
| Authentication: | Not Required |
| Confidentiality Impact: | None |
| Integrity Impact: | Partial |
| Availability Impact: | Partial |
| Temporal Score: | 3.1 |
| Exploitability: | Unproven |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
File Manipulation
Remedy:
Refer to PEAR SECURITY VULNERABILITY ANNOUNCEMENT 2007/05/07 for patch, upgrade, or suggested workaround information. See References.
For Ubuntu Linux (PEAR):
Refer to USN-462-1 for patch, upgrade, or suggested workaround information. See References.
For Mandriva Linux (php-pear):
Refer to MDKSA-2007:110 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
References:
- PEAR SECURITY VULNERABILITY ANNOUNCEMENT 2007/05/07: PEAR installer arbitrary code execution vulnerability.
- PEAR Web site: PEAR :: Package :: Auth.
- BID-24111: PHP PEAR INSTALL-AS Attribute Arbitrary File Overwrite Vulnerability
- CVE-2007-2519: Directory traversal vulnerability in the installer in PEAR 1.0 through 1.5.3 allows user-assisted remote attackers to overwrite arbitrary files via a .. (dot dot) sequence in the (1) install-as attribute in the file element in package.xml 1.0 or the (2) as attribute in the install element in package.xml 2.0. NOTE: it could be argued that this does not cross privilege boundaries in typical installations, since the code being installed could perform the same actions.
- MDKSA-2007:110: Updated php-pear packages fix directory traversal vulnerability
- USN-462-1: PHP vulnerabilities
- VUPEN/ADV-2007-1926: PEAR Installer install-as Attribute Processing Arbitrary File Overwrite Vulnerability
Platforms Affected:
- Canonical Ubuntu 6.06 LTS
- Canonical Ubuntu 6.10
- Canonical Ubuntu 7.04
- MandrakeSoft Mandrake Linux 2007 X86_64
- MandrakeSoft Mandrake Linux 2007
- 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 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0
- MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 4.0
- PHP PEAR 1.0
- PHP PEAR 1.0.1
- PHP PEAR 1.1
- PHP PEAR 1.2
- PHP PEAR 1.2.1
- PHP PEAR 1.2b1
- PHP PEAR 1.2b2
- PHP PEAR 1.2b3
- PHP PEAR 1.2b4
- PHP PEAR 1.2b5
- PHP PEAR 1.3
- PHP PEAR 1.3.1
- PHP PEAR 1.3.3
- PHP PEAR 1.3.3.1
- PHP PEAR 1.3.4
- PHP PEAR 1.3.5
- PHP PEAR 1.3.6
- PHP PEAR 1.3b1
- PHP PEAR 1.3b2
- PHP PEAR 1.3b3
- PHP PEAR 1.3b5
- PHP PEAR 1.3b6
- PHP PEAR 1.4.0
- PHP PEAR 1.4.0 RC1
- PHP PEAR 1.4.0 b2
- PHP PEAR 1.4.0 RC2
- PHP PEAR 1.4.0 b1
- PHP PEAR 1.4.0a1
- PHP PEAR 1.4.0a10
- PHP PEAR 1.4.0a11
- PHP PEAR 1.4.0a12
- PHP PEAR 1.4.0a2
- PHP PEAR 1.4.0a3
- PHP PEAR 1.4.0a4
- PHP PEAR 1.4.0a5
- PHP PEAR 1.4.0a6
- PHP PEAR 1.4.0a7
- PHP PEAR 1.4.0a8
- PHP PEAR 1.4.0a9
- PHP PEAR 1.4.1
- PHP PEAR 1.4.10 RC1
- PHP PEAR 1.4.10
- PHP PEAR 1.4.11
- PHP PEAR 1.4.2
- PHP PEAR 1.4.3
- PHP PEAR 1.4.4
- PHP PEAR 1.4.5
- PHP PEAR 1.4.6
- PHP PEAR 1.4.7
- PHP PEAR 1.4.8
- PHP PEAR 1.4.9
- PHP PEAR 1.5.0
- PHP PEAR 1.5.0 RC1
- PHP PEAR 1.5.0 RC2
- PHP PEAR 1.5.0 RC3
- PHP PEAR 1.5.0a1
- PHP PEAR 1.5.1
- PHP PEAR 1.5.2
- PHP PEAR 1.5.3
Reported:
May 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 (IBM 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.
For corrections or additions please email xforce@iss.net
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
