当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2013-020969

漏洞标题:B2Bbuilder B2B网站管理系统之注入漏洞 2013/03/30

相关厂商:B2Bbuilder B2B网站管理系统

漏洞作者: 流浪的风

提交时间:2013-03-30 16:09

修复时间:2013-06-28 16:10

公开时间:2013-06-28 16:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2013-03-30: 细节已通知厂商并且等待厂商处理中
2013-04-03: 厂商已经确认,细节仅向厂商公开
2013-04-06: 细节向第三方安全合作伙伴开放
2013-05-28: 细节向核心白帽子及相关领域专家公开
2013-06-07: 细节向普通白帽子公开
2013-06-17: 细节向实习白帽子公开
2013-06-28: 细节向公众公开

简要描述:

存在注入漏洞

详细说明:

##########################################
# Title: B2Bbuilder B2B网站管理系统之注入漏洞
# Time:2013/03/30
# Team:c0deplay
#######################################
源码下载地址:
http://down.chinaz.com/soft/24224.htm
程序:B2Bbuilder B2B网站管理系统 v6.6 正式版 20130225
<?php
/**
* powered by b2bbuilder
* Coprighty http://www.b2b-builder.com
* Auter:brad zhang;
* Des:Reveiw
*/
include_once("includes/global.php");
include_once("includes/smarty_config.php");
//===============================================
if (!empty($_GET['ctype']))
{
if ($_GET['ctype']==1)
$sql="select title from ".NEWSD." where nid=".$_GET['conid'];
if ($_GET['ctype']==2)
$sql="select title from ".INFO." where id=".$_GET['conid'];
if ($_GET['ctype']==3)
$sql="select pname as title from ".PRO." where id=".$_GET['conid'];
if ($_GET['ctype']==4)
$sql="select title from ".EXHIBIT." where id=".$_GET['conid'];
if ($_GET['ctype']==5)
$sql="select downname as title from ".down." where id=".$_GET['conid'];
if ($_GET['ctype']==7)
$sql="select projecttitle as title from ".PROJECT." where id=".$_GET['conid'];
$db->query($sql);
$titlemsg=$db->fetchRow();
$titlem=$titlemsg['title'];
$tpl->assign("tmsg",$titlem);
}
$sql="select a.*,b.user from ".COMMENT." a left join ".ALLUSER." b on a.fromuid=b.userid
where a.conid=".intval($_GET['conid'])." and a.ctype=".intval($_GET['ctype']);
//---------------
include_once("includes/page_utf_class.php");
$page = new Page;
$page->listRows=20;
if (!$page->__get('totalRows'))
{
$db->query($sql);
$page->totalRows = $db->num_rows();
}
$sql .= " limit ".$page->firstRow.",20";
//-----------------------------
$db->query($sql);
$review["page"]=$page->prompt();
$review["list"]=$db->getRows();
$tpl->assign("revdetail",$review);
include_once("footer.php");
$tpl->display("rewiew_detail.htm",$flag)
?>
conid未过滤产生注入

漏洞证明:

这是本地测试的

1.jpg


google搜索过来的

23.jpg


修复方案:

不懂修复,相信厂家懂得。。。

版权声明:转载请注明来源 流浪的风@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2013-04-03 14:16

厂商回复:

CNVD确认并在多个实例上复现所述情况,已在2日联系到软件生产厂商上海远丰信息科技有限公司。2日下午,厂商及时反馈了处置方案,对存在SQL注入的页面提供源文件替换的解决方案。
按部分影响机密性、可用性、完整性进行评分,rank=7.48*1.1*1.5=12.342

最新状态:

暂无