2023-12-17 07:28:50 +00:00
|
|
|
id: mixed-active-content
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Mixed Active Content
|
|
|
|
author: Liwermor
|
|
|
|
severity: info
|
|
|
|
description: |
|
|
|
|
This check detects if there are any active content 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
|
2024-01-14 13:49:27 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-12-17 07:28:50 +00:00
|
|
|
tags: misconfig
|
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}"
|
|
|
|
|
|
|
|
host-redirects: true
|
|
|
|
max-redirects: 3
|
2024-01-19 10:03:28 +00:00
|
|
|
matchers-condition: and
|
2023-12-17 07:28:50 +00:00
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
regex:
|
|
|
|
- "<script[^>]*src=['\"]http://[^'\">]+['\"]"
|
|
|
|
- "<iframe[^>]*src=['\"]http://[^'\">]+['\"]"
|
|
|
|
- "<object[^>]*data=['\"]http://[^'\">]+['\"]"
|
2024-01-24 06:29:58 +00:00
|
|
|
|
2024-01-19 10:03:28 +00:00
|
|
|
- type: dsl
|
2024-01-19 10:09:09 +00:00
|
|
|
dsl:
|
2024-01-19 10:03:28 +00:00
|
|
|
- 'startswith(tostring(BaseURL), "https://")'
|
2023-12-17 07:28:50 +00:00
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
group: 1
|
|
|
|
part: body
|
|
|
|
regex:
|
|
|
|
- "<script[^>]*src=['\"](http[^s'\">][^'\">]*)['\"]"
|
|
|
|
- "<iframe[^>]*src=['\"](http[^s'\">][^'\">]*)['\"]"
|
|
|
|
- "<object[^>]*data=['\"](http[^s'\">][^'\">]*)['\"]"
|
2024-01-24 07:16:05 +00:00
|
|
|
# digest: 490a0046304402206da84b39f7171acdcb806ade774850286919e63b2628ec34cc1e808c55a50bc4022018d956b267ea58eac95a3c718ccb8706453332cb853e89eb235cd7775c4cdfa5:922c64590222798bb761d5b6d8e72950
|