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

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

缺陷编号:wooyun-2016-0170808

漏洞标题:263某站配置不当可读取系统代码

相关厂商:263通信

漏洞作者: 路人甲

提交时间:2016-01-18 14:59

修复时间:2016-01-18 16:58

公开时间:2016-01-18 16:58

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

危害等级:中

自评Rank:8

漏洞状态:厂商已经修复

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-01-18: 细节已通知厂商并且等待厂商处理中
2016-01-18: 厂商已经确认,细节仅向厂商公开
2016-01-18: 厂商已经修复漏洞并主动公开,细节向公众公开

简要描述:

详细说明:

WooYun: 263企业邮箱某站命令执行ROOT权限
http://211.150.74.101/

Snap314.jpg


http://211.150.74.101/WEB-INF/classes/log4j.properties

Snap317.jpg


查看web.xml
http://211.150.74.101/WEB-INF/web.xml

Snap315.jpg


applicationContext.xml
http://211.150.74.101/WEB-INF/classes/applicationContext.xml

Snap316.jpg


http://211.150.74.101/WEB-INF/classes//conf/spring/loginSpring.xml

Snap318.jpg


然后就能得到被编译过的java文件

<bean id="loginAction" class="com.xmail.wm.login.action.LoginAction" scope="prototype">
<property name="loginService" ref="loginService"/>
<property name="mailOperateService" ref="mailOperateService"/>
<property name="userParamService" ref="userParamService"/>
<property name="domainLocationService" ref="domainLocationService"/>
</bean>


访问
http://211.150.74.101/WEB-INF/classes//com/xmail/wm/login/action/LoginAction.class
则直接将代码下载
查看代码

Snap319.jpg


import com.xmail.wm.addressBook.service.PersonAddressBookService;
import com.xmail.wm.base.struts2.base.action.BasicAction;
import com.xmail.wm.common.converCode.CodeUtil;
import com.xmail.wm.common.file.FileUtil;
import com.xmail.wm.common.lanage.LanageUtil;
import com.xmail.wm.common.servlet.ServletUtil;
import com.xmail.wm.common.session.SessionUtil;
import com.xmail.wm.common.session.vo.SessionVO;
import com.xmail.wm.common.userinfo.UserInfoUtils;
import com.xmail.wm.domainLocation.service.DomainLocationService;
import com.xmail.wm.loadconfig.LoadConfigGroupInfo;
import com.xmail.wm.loadconfig.LoadConfigWmLimits;
import com.xmail.wm.loadconfig.LoadConfigWmMain;
import com.xmail.wm.loadconfig.vo.GroupInfoConfigVO;
import com.xmail.wm.loadconfig.vo.WmIspConfigVO;
import com.xmail.wm.loadconfig.vo.WmLimitsConfigVO;
import com.xmail.wm.loadconfig.vo.WmMainConfigVO;
import com.xmail.wm.login.service.LoginService;
import com.xmail.wm.login.vo.LoginRolesVO;
import com.xmail.wm.login.vo.LoginVO;
import com.xmail.wm.mailIndex.service.MailOperateService;
import com.xmail.wm.mailSetting.service.UserParamService;
import com.xmail.wm.mailSetting.service.impl.UserParamServiceImpl;
import com.xmail.wm.mailSetting.vo.UserParamVO;


也可以根据导入的包来下载文件
这里就不继续了

漏洞证明:

WooYun: 263企业邮箱某站命令执行ROOT权限
http://211.150.74.101/

Snap314.jpg


http://211.150.74.101/WEB-INF/classes/log4j.properties

Snap317.jpg


查看web.xml
http://211.150.74.101/WEB-INF/web.xml

Snap315.jpg


applicationContext.xml
http://211.150.74.101/WEB-INF/classes/applicationContext.xml

Snap316.jpg


http://211.150.74.101/WEB-INF/classes//conf/spring/loginSpring.xml

Snap318.jpg


然后就能得到被编译过的java文件

<bean id="loginAction" class="com.xmail.wm.login.action.LoginAction" scope="prototype">
<property name="loginService" ref="loginService"/>
<property name="mailOperateService" ref="mailOperateService"/>
<property name="userParamService" ref="userParamService"/>
<property name="domainLocationService" ref="domainLocationService"/>
</bean>


访问
http://211.150.74.101/WEB-INF/classes//com/xmail/wm/login/action/LoginAction.class
则直接将代码下载
查看代码

Snap319.jpg


import com.xmail.wm.addressBook.service.PersonAddressBookService;
import com.xmail.wm.base.struts2.base.action.BasicAction;
import com.xmail.wm.common.converCode.CodeUtil;
import com.xmail.wm.common.file.FileUtil;
import com.xmail.wm.common.lanage.LanageUtil;
import com.xmail.wm.common.servlet.ServletUtil;
import com.xmail.wm.common.session.SessionUtil;
import com.xmail.wm.common.session.vo.SessionVO;
import com.xmail.wm.common.userinfo.UserInfoUtils;
import com.xmail.wm.domainLocation.service.DomainLocationService;
import com.xmail.wm.loadconfig.LoadConfigGroupInfo;
import com.xmail.wm.loadconfig.LoadConfigWmLimits;
import com.xmail.wm.loadconfig.LoadConfigWmMain;
import com.xmail.wm.loadconfig.vo.GroupInfoConfigVO;
import com.xmail.wm.loadconfig.vo.WmIspConfigVO;
import com.xmail.wm.loadconfig.vo.WmLimitsConfigVO;
import com.xmail.wm.loadconfig.vo.WmMainConfigVO;
import com.xmail.wm.login.service.LoginService;
import com.xmail.wm.login.vo.LoginRolesVO;
import com.xmail.wm.login.vo.LoginVO;
import com.xmail.wm.mailIndex.service.MailOperateService;
import com.xmail.wm.mailSetting.service.UserParamService;
import com.xmail.wm.mailSetting.service.impl.UserParamServiceImpl;
import com.xmail.wm.mailSetting.vo.UserParamVO;


也可以根据导入的包来下载文件
这里就不继续了

修复方案:

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


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:5

确认时间:2016-01-18 16:57

厂商回复:

下线设备,但遗留生产文件。感谢。

最新状态:

2016-01-18:已经关闭服务。谢谢。