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:
|
2024-04-08 11:30:07 +00:00
|
|
|
max-request: 1
|
2024-04-08 11:34:33 +00:00
|
|
|
verified: true
|
2024-03-28 06:09:15 +00:00
|
|
|
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
|
2024-03-28 06:21:40 +00:00
|
|
|
# digest: 4a0a0047304502206212deffff885bc2abd110b7921124764815e61844a28cf278f271f6d9753151022100861fee57cff6e033d3b77a48aa8a88595f5d7ea267d502b1aadf739e417f6608:922c64590222798bb761d5b6d8e72950
|