SecurityReason.com - Our Reason is

Security

Register | Forget Password | Login
SecurityReason
WLB
Services
RSS
Corporate
Note

If you have found a vulnerability, please send to our SecurityAlert Database :
secalert()securityreason()com

Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive :
exploit()securityreason()com

Home arrow SecurityAlert Database

Arrow  Topic :

MyBB 1.1.1 Local SQL Injections


Arrow  SecurityAlert : 808
Arrow  CVE : CVE-2006-2103
Arrow  SecurityRisk : Medium  Security Risk Medium  (About)
Arrow  Remote Exploit : Yes
Arrow  Local Exploit : Yes
Arrow  Exploit Available : Yes
Arrow  Credit : o y 6 hotmail com
Arrow  Published : 01.05.2006

Arrow  Affected Software : MyBB



Arrow  Advisory Content :  

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['a
ction']."','".$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['a
ction']."','".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 ;)





Arrow  Feedback :

If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.
Alert

libc:fts_*() Multiple Denial of Service

Security Risk Medium- 2009-10-02

The fts functions are provided for traversing UNIX file hierarchies...

Apache RSS Apache Alert

» Apache 1.3.41 mod_proxy
   Integer overflow (code
   execution)

» Apache Tomcat 6.0.20 and
   5.5.28 unexpected file
   deletion in work
   directory

» Apache Tomcat 6.0.20 and
   5.5.28 insecure partial
   deploy after failed
   undeploy

» Apache Tomcat 6.0.20 and
   5.5.28 unexpected file
   deletion and/or
   alteration

PHP RSS PHP Alert

» PHP 5.2.12/5.3.1
   session.save_path
   safe_mode and
   open_basedir bypass

» PHP 5.2.12/5.3.1 Multiple
   Vulnerabilities

» PHP 5.2.11 libgd multiple
   vulnerabilities

» PHP 5.2.11 tempnam()
   safe_mode bypass

Copyright © SecurityReason.com. All Rights Reserved.