Lucene search
K

onArcade v2.2 Blind SQL Vulnerability

🗓️ 28 Oct 2012 00:00:00Reported by Cold ZeroType 
zdt
 zdt
🔗 0day.today👁 32 Views

onArcade v2.2 Blind SQL Vulnerability, forums.php allows SQL injection via the 'r' paramete

Code
/**
 * @exploit             onArcade v2.2 Blind SQL Vulnerability
 * @version             2.2 tested & Also All versions infacted
 * @author              Cold Zero <- [Cold z3ro] => www.hackteach.org
 * @copyright           27/10/2012
 * @script              http://up.support-ar.com/upload/files/onArcade%20v2.2.zip
 * @vendor              http://www.onarcade.com/
 */


1. [SQl] 

In forums.php the GET value of r ($_GET['r']) its only secured to be as a number,
with function is_numeric($_GET['r']) check it http://php.net/manual/en/function.is-numeric.php
then as we can use none exist number like 99999999999999 then exploit it


error lines =>


case 'new_reply':
	// get topic or post information
	if (isset($_GET['t']) && is_numeric($_GET['t']))
		$topic_sql = "
		SELECT
			t.topic_id, t.title AS topic_title, t.replies, t.locked,
			f.forum_id, f.title AS forum_title, f.reply_permission
		FROM
			". $tbl_prefix ."forums_topics AS t
			LEFT JOIN ". $tbl_prefix ."forums AS f ON (f.forum_id = t.forum_id)
		WHERE
			t.topic_id = ". (int) $_GET['t'] ."
		LIMIT 1";
	elseif (isset($_GET['r']) && is_numeric($_GET['r']))
		$topic_sql = "
		SELECT
			r.title AS reply_title, r.message,
			t.topic_id, t.title AS topic_title, t.replies, t.locked,
			f.forum_id, f.title AS forum_title, f.reply_permission
		FROM
			". $tbl_prefix ."forums_replies AS r
			LEFT JOIN ". $tbl_prefix ."forums_topics AS t ON (r.topic_id = t.topic_id)
			LEFT JOIN ". $tbl_prefix ."forums AS f ON (f.forum_id = t.forum_id)
		WHERE
			r.reply_id = ". (int) $_GET['r'] ."
		LIMIT 1";
	else
		no_page();

[EOF]



Exploit:

/forums.php?a=new_reply&r=[ Blind SQL ]

#  0day.today [2018-01-09]  #

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

28 Oct 2012 00:00Current
7.1High risk
Vulners AI Score7.1
32