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

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

缺陷编号:wooyun-2014-066935

漏洞标题:乐视旗下网酒网一个小失误一步一步控制到某服务器(可内网渗透)

相关厂商:乐视网

漏洞作者: 乐乐、

提交时间:2014-07-02 09:22

修复时间:2014-08-16 09:24

公开时间:2014-08-16 09:24

漏洞类型:命令执行

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-07-02: 细节已通知厂商并且等待厂商处理中
2014-07-02: 厂商已经确认,细节仅向厂商公开
2014-07-12: 细节向核心白帽子及相关领域专家公开
2014-07-22: 细节向普通白帽子公开
2014-08-01: 细节向实习白帽子公开
2014-08-16: 细节向公众公开

简要描述:

早上上班 吃完饭逛逛乌云 看看昨天的漏洞还没有确认 距离周五还有2天了 48小时 2880分钟 172800秒 .......

详细说明:

有问题的站点:
http://css.wangjiu.com/ 打开后乱七八糟的 有种遗弃的赶脚!
三个问题:
0x01:信息泄露
http://css.wangjiu.com//WEB-INF/web.xml

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="WebApp_9" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Struts Blank</display-name>
<session-config>
<session-timeout>120</session-timeout>
</session-config>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
<!--

<init-param>
<param-name>actionPackages</param-name>
<param-value>com.mycompany.myapp.actions</param-value>
</init-param>

-->
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter>
<filter-name>static</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
<init-param>
<!-- 配置Struts 2的配置文件 -->
<param-name>config</param-name>
<param-value>struts-freemarker.xml</param-value>
</init-param>
</filter>
<filter>
<filter-name>creatHtml</filter-name>
<filter-class>
com.qdevelop.freemark.web.filter.FreemarkerStaticFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>creatHtml</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>static</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
<!-- <filter-mapping> -->
<!-- <filter-name>api-encoding</filter-name> -->
<!-- <url-pattern>*.json</url-pattern> -->
<!-- </filter-mapping> -->
<!-- <filter-mapping> -->
<!-- <filter-name>api-encoding</filter-name> -->
<!-- <url-pattern>*.xml</url-pattern> -->
<!-- </filter-mapping> -->
<welcome-file-list>
<welcome-file>system/public/index.jsp</welcome-file>
</welcome-file-list>
<!-- Quartz 配置信息 -->
<servlet>
<servlet-name>QuartzInitializer</servlet-name>
<servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet</servlet-class>
<init-param>
<param-name>config-file</param-name>
<param-value>quartz.properties</param-value>
</init-param>
<init-param>
<param-name>shutdown-on-unload</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>start-scheduler-on-load</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet>
<servlet-name>memCacheControl</servlet-name>
<servlet-class>com.qdevelop.cache.servlet.CacheManageServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>memCacheControl</servlet-name>
<url-pattern>/cacheManage/*</url-pattern>
</servlet-mapping>
<!-- webInit 配置信息 -->
<servlet>
<servlet-name>webInit</servlet-name>
<servlet-class>com.wangjiu.oa.init.WebInit</servlet-class>
<load-on-startup>100</load-on-startup>
</servlet>
<!--

<servlet>
<servlet-name>API_Select</servlet-name>
<servlet-class>com.wangjiu.api.servlet.APISelectServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>API_Select</servlet-name>
<url-pattern>/api/*</url-pattern>
</servlet-mapping>

-->
<!-- 初始化spring 配置文件 -->
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:freemarker-methods.xml</param-value>
</context-param>
<error-page>
<error-code>404</error-code>
<location>/error.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>
</web-app>


0x02:不知道是任意文件下载还是怎么样
http://css.wangjiu.com/login.jsp

wa.png


既然下下来了就看一看吧。

aa.png


然后直接百度了

aaaa.png


直接就出来登陆地址了

http://online.wangjiu.com/login.action


没登陆进去 只是提示到期了之类的

111.png


root权限 这就好玩了

uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)


漏洞证明:

这下又能提交好多了乐视的漏洞了

1.png

修复方案:

求高RANK ~ 求礼物 ~ 求同志 ~

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2014-07-02 09:37

厂商回复:

辛苦了 :) 昨天的漏洞还没有确认应该不是乐视的吧~~

最新状态:

暂无