加入收藏 设为首页
博客 友圈 商城
留言 搜索 投搞
首页 | 网络动态 | 技术文章 | 下载中心 | 设计 | 摄影 | 精彩Flash | 摄影作品 | 顶客排行 | 悠乐论坛
>首页 -> 网络动态 -> 漏洞安全

TOP

IceBB开源论坛系统含有$username参数SQL注入漏洞
[ 录入者:riqukiqpl | 时间:2008-07-31 14:32:06 | 作者: | 来源: | 浏览:33次 ]
简介:受影响系统:XAOS Interactive IceBB <= 1.0-RC9.2 不受影响系统:XAOS Interactive IceBB 1.0-rc9.3 描述:IceBB是一个基于PHP+MySQL的开源论坛系统。 IceBB的modules/members.php文件没有正确地验证对use..

受影响系统:
XAOS Interactive IceBB <= 1.0-RC9.2

不受影响系统:
XAOS Interactive IceBB 1.0-rc9.3

描述:
IceBB是一个基于PHP+MySQL的开源论坛系统。

IceBB的modules/members.php文件没有正确地验证对username参数的输入便用在了SQL查询中:

    $fleh    = $icebb->input;  <==
    ...
    foreach($fleh as $k => $g)
    {   
         ...
        $where_clauses[]  = "{$k}='{$g}'";  <==
        ...
    }
    ...

    $this->qwhere    = implode(' AND ',$where_clauses);
    $total    = $db->fetch_result("SELECT COUNT(*) as total FROM icebb_users{$this->qwhere}{$qextra}"); <==

这个查询中可以包含有更多的GET/POST输入,如$username和$url。如果设置username=\的话,则之后的句法会成为字符串的一部分,而下一个引号开始($url之前)会成为SQL。例如,

# GET /index.php?act=members&username=a\&url=OR+1#

会变为

# "SELECT COUNT(*) as total FROM icebb_users WHERE user_group='a\' AND username='OR 1#' AND id!=0 ORDER BY username ASC"

因此远程攻击者可以通过$username参数执行SQL注入攻击。

厂商补丁:
XAOS Interactive
----------------
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:
http://icebb.net/

1
】【打印繁体】【投稿】【收藏】 【推荐】【举报】 【关闭】 【返回顶部
[上一篇]Gregarius RSS聚合器下/ajax.php.. [下一篇]European Performance Systems Pr..

评论

称  呼:
内  容:

相关栏目

最新文章

热门文章

推荐文章

相关文章

广告位