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

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

缺陷编号:wooyun-2014-077920

漏洞标题:CuuMall免费开源商城系统(无视各种防御和GPC)(2处)

相关厂商:cuumall.com

漏洞作者: menmen519

提交时间:2014-10-02 10:17

修复时间:2014-12-31 10:18

公开时间:2014-12-31 10:18

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-10-02: 细节已通知厂商并且等待厂商处理中
2014-10-09: 厂商已经确认,细节仅向厂商公开
2014-10-12: 细节向第三方安全合作伙伴开放
2014-12-03: 细节向核心白帽子及相关领域专家公开
2014-12-13: 细节向普通白帽子公开
2014-12-23: 细节向实习白帽子公开
2014-12-31: 细节向公众公开

简要描述:

CuuMall免费开源商城系统(无视各种防御和GPC)(2处)

详细说明:

直接看代码:
UserinfoAction.class.php(13-40):

public function __construct( )
{
( );
$title = c( "MALLTITLE" )."-用户中心";
$this->assign( "title", $title );
import( "@.Action.Home.HeaderAction" );
import( "@.Action.Home.ButtomAction" );
load( "extend" );
$_GET = $_GET( $_GET, 1, TRUE );
$_POST = $_POST( $_POST, 1, TRUE );
$_COOKIE = $_COOKIE( $_COOKIE, 1, TRUE );
$_SERVER = $_SERVER( $_SERVER );
$_FILES = $_FILES( $_FILES );
$_REQUEST = $_REQUEST( $_REQUEST, 1, TRUE );
$this->inject_checksql( );
$co = new Cookie( );
$username = $co->get( c( "GUESTCOOK" )."mall-m-name" );
$password = $co->get( c( "GUESTCOOK" )."mall-m-pass" );
if ( empty( $username ) || empty( $password ) )
{
$this->redirect( "home/login" );
exit( );
}
$m_member = new Model( "m_member" );
$d_m_member = $m_member->where( "username='".$username."'" )->find( );
if ( empty( $d_m_member ) )
{
$this->redirect( "home/login" );


这里一样用到了指定获取的cookie:
$username = $co->get( c( "GUESTCOOK" )."mall-m-name" );
$password = $co->get( c( "GUESTCOOK" )."mall-m-pass" );
那么我们访问一下看看:

11.png


我们构造内容如下

12.png


我们在搜索一下
还有 commuerAction.class.php(10-30):

class CommuserAction extends Action
{
public function _initialize( )
{
$co = new Cookie( );
$username = $co->get( c( "GUESTCOOK" )."mall-m-name" );
$password = $co->get( c( "GUESTCOOK" )."mall-m-pass" );
if ( empty( $username ) || empty( $password ) )
{
$this->redirect( "home/login" );
exit( );
}
$m_member = new Model( "m_member" );
$d_m_member = $m_member->where( "username='".$username."'" )->find( );
if ( empty( $d_m_member ) )
{
$this->redirect( "home/login" );
exit( );
}
if ( $password != $d_m_member['password'] )
{
$this->redirect( "home/login" );
exit( );
}
}


这里原理是一样的 就不多赘述了
ok..........

漏洞证明:

修复方案:

版权声明:转载请注明来源 menmen519@乌云


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:1

确认时间:2014-10-09 13:35

厂商回复:

仍然是你提交过的 cookies端过滤不严格导致的,感谢

最新状态:

暂无