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

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

缺陷编号:wooyun-2014-077038

漏洞标题:商务中国Tomcat配置不当导致任意代码下载

相关厂商:商务中国

漏洞作者: salforis

提交时间:2014-09-23 13:01

修复时间:2014-09-28 13:02

公开时间:2014-09-28 13:02

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

危害等级:中

自评Rank:10

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-09-23: 细节已通知厂商并且等待厂商处理中
2014-09-28: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

Tomcat未对WEB-INF目录做访问限制,导致任意下载jar包。

详细说明:

QQ20140923-2.png


QQ20140923-3.png

漏洞证明:

// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: DBManager.java
package away.db;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Hashtable;
// Referenced classes of package away.db:
// ConnectionProvider, AwayConnectionProvider
public class DBManager
{
public DBManager()
{
}
public static Connection getConnection()
throws SQLException
{
ConnectionProvider connectionprovider = getConnectionProvider("/usr/local/etc/bizcn.cfg");
return connectionprovider.getConnection();
}
public static Connection getActionLogConnection()
throws SQLException
{
ConnectionProvider connectionprovider = getConnectionProvider("/usr/local/etc/actionlog.cfg");
return connectionprovider.getConnection();
}
public static Connection getOldDataConnection()
throws SQLException
{
ConnectionProvider connectionprovider = getConnectionProvider("/usr/local/etc/olddata.cfg");
return connectionprovider.getConnection();
}
public static void CloseAllConnection()
{
ConnectionProvider connectionprovider = getConnectionProvider("/usr/local/etc/bizcn.cfg");
connectionprovider.closeAllConnection();
connectionprovider = getConnectionProvider("/usr/local/etc/actionlog.cfg");
connectionprovider.closeAllConnection();
connectionprovider = getConnectionProvider("/usr/local/etc/olddata.cfg");
connectionprovider.closeAllConnection();
}
private static synchronized ConnectionProvider getConnectionProvider(String s)
{
Object obj = (ConnectionProvider)m_oProvidersPool.get(s);
if(obj == null)
{
obj = new AwayConnectionProvider(s);
m_oProvidersPool.put(s, obj);
}
return ((ConnectionProvider) (obj));
}
private static Hashtable m_oProvidersPool = new Hashtable();
public static final String CONFIG_FILE_BIZCN = "/usr/local/etc/bizcn.cfg";
public static final String CONFIG_FILE_ACTIONLOG = "/usr/local/etc/actionlog.cfg";
public static final String CONFIG_FILE_OLDDATA = "/usr/local/etc/olddata.cfg";
}

修复方案:

前端Nginx限制访问/WEB-INF。

location /WEB-INF {
deny all;
}

版权声明:转载请注明来源 salforis@乌云


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2014-09-28 13:02

厂商回复:

最新状态:

2014-10-08:已修复


漏洞评价:

评论