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

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

缺陷编号:wooyun-2014-057133

漏洞标题:太平洋网络某站svn泄露可读源码

相关厂商:太平洋电脑网

漏洞作者: if、so

提交时间:2014-04-15 11:56

修复时间:2014-05-30 11:57

公开时间:2014-05-30 11:57

漏洞类型:系统/服务运维配置不当

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

太平洋网络某站svn泄露,可读源码

详细说明:

问题出自太平洋网络采编发系统http://14.23.152.207/admin/login.jsp,存在svn泄露,源码可读
比如http://14.23.152.207/.svn/text-base/autopub_log.jsp.svn-base

<%@ page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
<%@ page import="java.util.*,java.text.*" %>
<%
response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
Calendar calendar = Calendar.getInstance();
int hour = calendar.get(Calendar.HOUR_OF_DAY);
int minute = calendar.get(Calendar.MINUTE);
if (hour < 1 && minute < 31) {
out.println("<h1>发布任务还没开始执行!</h1>");
return;
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>凌晨重发一二级栏目监控页面</title>
</head>
<body>
<%
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
String file = "/autopub/" + format.format(new Date()) + ".txt";
request.setAttribute("file",file);
%>
<%
try {
%>
<jsp:include page="<%=file%>" flush="true"/>
<%
} catch (Exception ee) {
out.println("<h1><font color=red>自动发布没有执行,请联系相关人员!</font></h1>");
}
%>
</body>
</html>


http://14.23.152.207/.svn
http://14.23.152.207/admin/.svn
http://14.23.152.207/css/.cvn
不一一列举,自行排查

漏洞证明:

<%@ page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
<%@ page import="java.util.*,java.text.*" %>
<%
response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
Calendar calendar = Calendar.getInstance();
int hour = calendar.get(Calendar.HOUR_OF_DAY);
int minute = calendar.get(Calendar.MINUTE);
if (hour < 1 && minute < 31) {
out.println("<h1>发布任务还没开始执行!</h1>");
return;
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>凌晨重发一二级栏目监控页面</title>
</head>
<body>
<%
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
String file = "/autopub/" + format.format(new Date()) + ".txt";
request.setAttribute("file",file);
%>
<%
try {
%>
<jsp:include page="<%=file%>" flush="true"/>
<%
} catch (Exception ee) {
out.println("<h1><font color=red>自动发布没有执行,请联系相关人员!</font></h1>");
}
%>
</body>
</html>


修复方案:

版权声明:转载请注明来源 if、so@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2014-04-15 14:43

厂商回复:

感谢“if、so”提供的漏洞信息,反馈的问题确实存在,我们已经在安排修复中。
感谢你对 太平洋系列网站 信息安全作出的贡献。

最新状态:

暂无