Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | MyBB 1.1.1 Local SQL Injections |
|---|---|
| Date: | 27 Apr 2006 08:01:19 -0000 |
MyBB Local SQL Injections ..
[ This Local Injections Only For Admin ]
* 1 *
[code]
adminfunctions.php , line 730
$db->query("INSERT INTO ".TABLE_PREFIX."adminlog
(uid,dateline,scriptname,action,querystring,ipaddress) VALUES
('".$mybbadmin['uid']."','".$now."','".$scriptname."','".$mybb->input['action']."','".$querystring."','".$ipaddress."')");
$querystring = Not Filtered
Exploit Exm.
/admin/adminlogs.php?action=view&D3vil-0x1=[SQL]'
Fix , Replace with
$db->query("INSERT INTO ".TABLE_PREFIX."adminlog
(uid,dateline,scriptname,action,querystring,ipaddress) VALUES
('".$mybbadmin['uid']."','".$now."','".$scriptname."','".$mybb->input['action']."','".addslashes($querystring)."','".$ipaddress."')");
[/code]
* 2 *
[code]
templates.php , lines 107 to 114
$newtemplate = array(
"title" => addslashes($mybb->input['title']),
"template" => addslashes($mybb->input['template']),
"sid" => $mybb->input['setid'],
"version" => $mybboard['vercode'],
"status" => "",
"dateline" => time()
);
sid = Not Filtered
Exploit Exm.
/admin/templates.php?action=do_add&title=Devil&template=Div&setid=[SQL]'
Fix Replace with
$newtemplate = array(
"title" => addslashes($mybb->input['title']),
"template" => addslashes($mybb->input['template']),
"sid" => addslashes($mybb->input['setid']),
"version" => $mybboard['vercode'],
"status" => "",
"dateline" => time()
);
[/code]
* 3 *
[code]
templates.php , line 600
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."templatesets WHERE
sid='".$expand."'");
$expand = $mybb->input['expand']; = Not Filtered
Exploit Exm.
/admin/templates.php?expand=' UNION ALL SELECT 1,2/*
Fix Replace With
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."templatesets WHERE
sid='".intval($expand)."'");
[/code]
* 4 *
[code]
templates.php , line 424
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."templates WHERE
title='".$mybb->input['title']."' AND sid='".$mybb->input['sid1']."'");
$template1 = $db->fetch_array($query);
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."templates WHERE
title='".$mybb->input['title']."' AND sid='".$mybb->input['sid2']."'");
Exploit Exm.
/admin/templates.php?action=diff&title=[SQL]'
/admin/templates.php?action=diff&sid2=[SQL]'
Fix Replace With
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."templates WHERE
title='".addslashes($mybb->input['title'])."' AND
sid='".intval($mybb->input['sid1'])."'");
$template1 = $db->fetch_array($query);
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."templates WHERE
title='".addslashes(($mybb->input['title'])."' AND
sid='".intval($mybb->input['sid2'])."'");
[/code]
MyBB Has Many Local Bugs ,, Fix It s00n ;)
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Invision Vulnerabilities, including remote code execution, mattmecham |
|---|---|
| Next by Date: | , Yannick von Arx |
| Previous by Thread: | [Full-disclosure] [USN-274-1] MySQL vulnerability, Martin Pitt |
| Next by Thread: | , Yannick von Arx |
| Indexes: | [Date] [Thread] [Top] [All Lists] |