Description
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.
Remediation
References
Related Vulnerabilities
Squid Out-of-bounds Read Vulnerability (CVE-2021-28116)
Apache Tomcat Improper Input Validation Vulnerability (CVE-2012-3544)
WordPress Plugin Spicy Blogroll Local File Include (1.0.0)
Moodle Exposure of Sensitive Information to an Unauthorized Actor Vulnerability (CVE-2012-1155)
phpMyAdmin Cryptographic Issues Vulnerability (CVE-2008-7252)