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

View File

@ -19,6 +19,7 @@ http:
path: path:
- "{{BaseURL}}/index.php?page=/etc/passwd" - "{{BaseURL}}/index.php?page=/etc/passwd"
matchers-condition: and
matchers: matchers:
- type: regex - type: regex
part: body 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 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}} Host: {{Hostname}}
matchers-condition: and
matchers: matchers:
- type: dsl - type: word
dsl: part: body
- 'status_code == 200' words:
- 'contains(content_type, "text/html")' - '<script>alert(document.location)</script>'
- 'contains(body, "<script>alert(document.location)</script>") && contains(body, "protected-forms-table")' - '<form id="protected-forms-table"'
condition: and condition: and
- type: word
part: header
words:
- "text/html"