nuclei-templates/http/misconfiguration/https-to-http-redirect.yaml

26 lines
590 B
YAML
Raw Normal View History

2024-03-18 09:32:48 +00:00
id: https-to-http-redirect
info:
2024-03-27 17:41:38 +00:00
name: HTTPS to HTTP redirect Misconfiguration
2024-03-18 09:32:48 +00:00
author: kazet
severity: info
description: |
2024-03-28 06:09:15 +00:00
Detects whether there is a redirect from https:// to http://
2024-03-18 09:32:48 +00:00
metadata:
max-request: 1
2024-03-28 06:09:15 +00:00
verified: true
tags: misconfig,http,https
2024-03-18 09:32:48 +00:00
http:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: dsl
dsl:
2024-03-27 17:41:38 +00:00
- 'startswith(tolower(location), "http://")'
- 'startswith(tostring(BaseURL), "https://")'
- '(status_code == 301 || status_code == 302 || status_code == 307)'
condition: and