#VU44053 Input validation error in PHP - CVE-2012-1172


| Updated: 2020-08-11

Vulnerability identifier: #VU44053

Vulnerability risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2012-1172

CWE-ID: CWE-20

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
PHP
Universal components / Libraries / Scripting languages

Vendor: PHP Group

Description

The vulnerability allows a remote non-authenticated attacker to manipulate or delete data.

The file-upload implementation in rfc1867.c in PHP before 5.4.0 does not properly handle invalid [ (open square bracket) characters in name values, which makes it easier for remote attackers to cause a denial of service (malformed $_FILES indexes) or conduct directory traversal attacks during multi-file uploads by leveraging a script that lacks its own filename restrictions.

Mitigation
Install update from vendor's website.

Vulnerable software versions

PHP: 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.9


External links
https://isisblogs.poly.edu/2011/08/11/php-not-properly-checking-params/
https://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
https://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html
https://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html
https://lists.fedoraproject.org/pipermail/package-announce/2012-May/080070.html
https://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html
https://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html
https://marc.info/?l=bugtraq&m=134012830914727&w=2
https://openwall.com/lists/oss-security/2012/03/13/4
https://support.apple.com/kb/HT5501
https://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/rfc1867.c?r1=321664&r2=321663&pathrev=321664
https://svn.php.net/viewvc?view=revision&revision=321664
https://www.debian.org/security/2012/dsa-2465
https://www.php.net/ChangeLog-5.php#5.4.0
https://bugs.php.net/bug.php?id=48597
https://bugs.php.net/bug.php?id=49683
https://bugs.php.net/bug.php?id=54374
https://bugs.php.net/bug.php?id=55500
https://nealpoole.com/blog/2011/10/directory-traversal-via-php-multi-file-uploads/
https://students.mimuw.edu.pl/~ai292615/php_multipleupload_overwrite.pdf


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability