Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added template to detect wildcard CN or SAN in TLS certificate #8023

Merged
merged 3 commits into from
Oct 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions ssl/wildcard-tls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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'