PHP is vulnerable to authorization bypass. File names with NULL characters \0
are not properly handled, which would allow a remote attacker to abuse the vulnerability to create a PHP script to access arbitrary files and bypass file system access restrictions. This is demonstrated by entering a NULL character such as .php\0.jpg
at the end of the argument to the file_exists
function, which causes access controls to treat the file as an image .jpg
file, but process the file as a .php
file.
Vendor | Product | Version | CPE |
---|---|---|---|
php | php | 5.3.3_3.el6_2.5 | cpe:2.3:a:php:php:5.3.3_3.el6_2.5:*:*:*:*:*:*:* |
php | php | 5.3.3_23.el6_4 | cpe:2.3:a:php:php:5.3.3_23.el6_4:*:*:*:*:*:*:* |
php | php | 5.1.6_39.el5_8 | cpe:2.3:a:php:php:5.1.6_39.el5_8:*:*:*:*:*:*:* |
php | php | 5.3.3_3.el6 | cpe:2.3:a:php:php:5.3.3_3.el6:*:*:*:*:*:*:* |
php | php | 5.1.6_15.el5 | cpe:2.3:a:php:php:5.1.6_15.el5:*:*:*:*:*:*:* |
php | php | 5.3.3_14.el6_3 | cpe:2.3:a:php:php:5.3.3_14.el6_3:*:*:*:*:*:*:* |
php | php | 5.3.3_22.el6 | cpe:2.3:a:php:php:5.3.3_22.el6:*:*:*:*:*:*:* |
php | php | 5.3.3_3.el6_2.8 | cpe:2.3:a:php:php:5.3.3_3.el6_2.8:*:*:*:*:*:*:* |
php | php | 5.1.6_23.2.el5_3 | cpe:2.3:a:php:php:5.1.6_23.2.el5_3:*:*:*:*:*:*:* |
php | php | 5.1.6_27.el5_5.3 | cpe:2.3:a:php:php:5.1.6_27.el5_5.3:*:*:*:*:*:*:* |
bugs.php.net/39863
lists.apple.com/archives/security-announce/2011/Mar/msg00006.html
lists.fedoraproject.org/pipermail/package-announce/2015-May/158616.html
lists.fedoraproject.org/pipermail/package-announce/2015-May/158915.html
lists.fedoraproject.org/pipermail/package-announce/2015-May/159031.html
marc.info/?l=bugtraq&m=132871655717248&w=2
marc.info/?l=bugtraq&m=133469208622507&w=2
openwall.com/lists/oss-security/2010/11/18/4
openwall.com/lists/oss-security/2010/11/18/5
openwall.com/lists/oss-security/2010/12/09/10
openwall.com/lists/oss-security/2010/12/09/11
openwall.com/lists/oss-security/2010/12/09/9
rhn.redhat.com/errata/RHSA-2013-1307.html
rhn.redhat.com/errata/RHSA-2013-1615.html
rhn.redhat.com/errata/RHSA-2014-0311.html
secunia.com/advisories/55078
support.apple.com/kb/HT4581
svn.php.net/viewvc?view=revision&revision=305412
svn.php.net/viewvc?view=revision&revision=305507
www.madirish.net/?article=436
www.mandriva.com/security/advisories?name=MDVSA-2010:254
www.php.net/archive/2010.php#id2010-12-10-1
www.php.net/ChangeLog-5.php
www.php.net/releases/5_3_4.php
www.securityfocus.com/bid/44951
access.redhat.com/security/updates/classification/#moderate
bugzilla.redhat.com/show_bug.cgi?id=892158
bugzilla.redhat.com/show_bug.cgi?id=953814
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A12569
rhn.redhat.com/errata/RHSA-2013-1615.html