CVE-2011-2202
MEDIUM
6.4
CVSS 2.0
Description
The rfc1867_post_handler function in main/rfc1867.c in PHP before 5.3.7 does not properly restrict filenames in multipart/form-data POST requests, which allows remote attackers to conduct absolute path traversal attacks, and possibly create or overwrite arbitrary files, via a crafted upload request, related to a "file path injection vulnerability."
Affected products and versions
- PHP — Up to and including 5.3.6
- PHP versions 1.0, 2.0, 2.0b10, 3.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.10, 3.0.11, 3.0.12, 3.0.13, 3.0.14, 3.0.15, 3.0.16, 3.0.17, 3.0.18, 4.0, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0beta1, 4.0beta2, 4.0beta3, 4.0beta4, 4.0beta_4_patch1, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.3.6, 4.3.7, 4.3.8, 4.3.9, 4.3.10, 4.3.11, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.4.4, 4.4.5, 4.4.6, 4.4.7, 4.4.8, 4.4.9, 5.3.0, 5.3.1, 5.3.2, 5.3.3, 5.3.4, 5.3.5
References
- bugs.php.net http://bugs.php.net/bug.php?id=54939
- lists.apple.com http://lists.apple.com/archives/security-announce/2012/Feb/msg00000.html
- marc.info http://marc.info/?l=bugtraq&m=133469208622507&w=2
- openwall.com http://openwall.com/lists/oss-security/2011/06/12/5 Patch
- openwall.com http://openwall.com/lists/oss-security/2011/06/13/15 Patch
- pastebin.com http://pastebin.com/1edSuSVN Exploit
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2012-0071.html
- secunia.com http://secunia.com/advisories/44874 Vendor Advisory
- securitytracker.com http://securitytracker.com/id?1025659
- support.apple.com http://support.apple.com/kb/HT5130
- svn.php.net http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/NEWS?view=markup&pathrev=312103
- svn.php.net http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/main/rfc1867.c?r1=312103&r2=312102&pathrev=312103 Patch
- svn.php.net http://svn.php.net/viewvc?view=revision&revision=312103 Patch
- www.debian.org http://www.debian.org/security/2011/dsa-2266
- www.mandriva.com http://www.mandriva.com/security/advisories?name=MDVSA-2011:165
- www.php.net http://www.php.net/ChangeLog-5.php#5.3.7
- www.php.net http://www.php.net/archive/2011.php#id2011-08-18-1
- www.redhat.com http://www.redhat.com/support/errata/RHSA-2011-1423.html
- www.securityfocus.com http://www.securityfocus.com/bid/48259
- www.securityfocus.com http://www.securityfocus.com/bid/49241
- exchange.xforce.ibmcloud.com https://exchange.xforce.ibmcloud.com/vulnerabilities/67999
- nvd.nist.gov Official NVD record