2023-10-07 18:38:29 +00:00
|
|
|
id: wildcard-tls
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Wildcard TLS Certificate
|
|
|
|
author: lucky0x0d
|
|
|
|
severity: info
|
|
|
|
description: |
|
|
|
|
Checks a sites certificate to see if there are wildcard CN or SAN entries.
|
|
|
|
reference:
|
|
|
|
- https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html#carefully-consider-the-use-of-wildcard-certificates
|
|
|
|
metadata:
|
|
|
|
max-request: 1
|
|
|
|
tags: ssl,wildcard,tls
|
|
|
|
ssl:
|
|
|
|
- address: "{{Host}}:{{Port}}"
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- wildcard_certificate == true
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- '"CN: " + subject_cn'
|
|
|
|
- '" SAN: " + subject_an'
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 490a0046304402206ca68d7763a01871143205448a2bf89ab1bdcb106f602a8e09666996bf1c32620220089e8ff9a3605e8b6e7e984d49ad79159da2335e031ce4ce1377f050a6db9d54:922c64590222798bb761d5b6d8e72950
|