Added drupal login template (#3471)

* Added drupal login template

* moved drupal detection to separate template

Co-authored-by: sandeep <sandeep@projectdiscovery.io>
patch-1
Pathtaga 2022-01-18 08:05:19 +01:00 committed by GitHub
parent 362c381732
commit a39245bf40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 11 deletions

View File

@ -0,0 +1,30 @@
id: drupal-login
info:
name: Drupal login
author: pathtaga
severity: info
tags: panel,drupal
requests:
- method: GET
path:
- "{{BaseURL}}"
- "{{BaseURL}}/user/login"
stop-at-first-match: true
matchers-condition: or
matchers:
- type: regex
part: body
regex:
- '<(?:link|style)[^>]+"/sites/(?:default|all)/(?:themes|modules)/'
- '<[^>]+(?:id="block[_-]commerce[_-]cart[_-]cart|class="commerce[_-]product[_-]field)'
condition: or
- type: regex
part: header
regex:
- '(?i)x-drupal'
- "(?i)x-generator: drupal"
condition: or

View File

@ -2095,17 +2095,6 @@ requests:
condition: or
part: body
- type: regex
name: drupal
part: all
regex:
- <(?:link|style)[^>]+"/sites/(?:default|all)/(?:themes|modules)/
- <[^>]+(?:id="block[_-]commerce[_-]cart[_-]cart|class="commerce[_-]product[_-]field)
- "X-Drupal"
- "x-drupal"
- "X-Generator: Drupal"
condition: or
- type: regex
name: webxpay
regex: