id: mixed-passive-content
info:
name: Mixed Passive Content
author: Liwermor
severity: info
description: |
This check detects if there are any passive content being loaded over HTTP instead of HTTPS.
reference:
- https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content
- https://portswigger.net/kb/issues/01000400_mixed-content
- https://resources.infosecinstitute.com/topics/vulnerabilities/https-mixed-content-vulnerability/
- https://docs.gitlab.com/ee/user/application_security/dast/checks/319.1.html
metadata:
max-request: 1
tags: misconfig
http:
- method: GET
path:
- "{{BaseURL}}"
host-redirects: true
max-redirects: 3
matchers-condition: or
matchers:
- type: regex
part: body
name: img
regex:
- "]*src=['\"]http://[^'\">]+['\"]"
- type: regex
part: body
name: audio
regex:
- "