The move_uploaded_file implementation in ext/standard/basic_functions.c in PHP before 5.4.39, 5.5.x before 5.5.23, and 5.6.x before 5.6.7 truncates a pathname upon encountering a x00 character, which allows remote attackers to bypass intended extension restrictions and create files with unexpected names via a crafted second argument. NOTE: this vulnerability exists because of an incomplete fix for CVE-2006-7243.
Source: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-2348
Reference (s):
- APPLE:APPLE-SA-2015-09-30-3
- URL: http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
- BID:73434
- URL: http://www.securityfocus.com/bid/73434
- http://git.php.net/?p=php-src.git;a=commit;h=1291d6bbee93b6109eb07e8f7916ff1b7fcc13e1

