nuclei-templates/ssl/wildcard-tls.yaml

28 lines
843 B
YAML

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'
# digest: 490a0046304402206ca68d7763a01871143205448a2bf89ab1bdcb106f602a8e09666996bf1c32620220089e8ff9a3605e8b6e7e984d49ad79159da2335e031ce4ce1377f050a6db9d54:922c64590222798bb761d5b6d8e72950