0day.today - Biggest Exploit Database in the World.
![](/img/logo_green.jpg)
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earnGOLD
Administration of this site uses the official contacts. Beware of impostors!
![We DO NOT use Telegram or any messengers / social networks!](/img/no_telegram_big.png)
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
ProjectPier 0.8.8 Shell Upload
ProjectPier <= 0.8.8 Remote Code Execution by BlackHawk Thanks to alisael for the time spent together. Half credits goes to her ;) 01/11/2012 ProjectPier come with a upload.php file under ./tools/, that is the GUI for upload_file.php ---------------------------- <?php header("Content-Type: text/plain"); if ($_FILES["file"]["error"] > 0) { echo $_FILES["file"]["error"] . " " . $_FILES["file"]["name"] . " " . $_FILES["file"]["tmp_name"]; } else { $folder = rtrim( './upload/' . $_POST['folder'] , '/'); @mkdir($folder, 0777, true); $seq = str_pad((int) $_POST["part"],4,"0",STR_PAD_LEFT); move_uploaded_file($_FILES["file"]["tmp_name"], $folder . '/' . $_FILES["file"]["name"] . '-' . $seq ); // <-- XXXX echo $_FILES["file"]["error"] . " " . $folder . '/' . $_FILES["file"]["name"] . '-' . $seq; } ?> ----------------------------- the file is uploaded in a fresh made dir, with the original name PLUS a minus (-) PLUS a sequence of 4 digits. As Apache, if the filename got 2 extension (filename.one.two), when do not recognize the exstension (two), try to recognize the first one (one), and act as it's the correct one, you just need to rename a PHP shell in: filename.php.1 and then call directly the file from the browser. # 0day.today [2024-07-07] #