Description
move_uploaded_file in PHP does not does not check for the base directory (open_basedir), which could allow remote attackers to upload files to unintended locations on the system.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Exploit-DB 1
- PHP 3.0.x/4.x - Move_Uploaded_File open_basedir Circumvention EDB-21347 · local · Mar 17, 2002 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 20020317 move_uploaded_file breaks safe_mode restrictions in PHP mailing-list
- http://bugs.php.net/bug.php?id=16128
- php-moveuploadedfile-create-files(8591) vdb-entry
- 4325 vdb-entry
- 20020322 Re: move_uploaded_file breaks safe_mode restrictions in PHP mailing-list
- 20020321 Re: move_uploaded_file breaks safe_mode restrictions in PHP mailing-list