Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Fix wildcard SAN parsing

bcoles3eaa18471849
diff --git a/modules/sfp_sslcert.py b/modules/sfp_sslcert.py
index bc2566fa..1607e002 100644
--- a/modules/sfp_sslcert.py
+++ b/modules/sfp_sslcert.py
@@ -129,10 +129,7 @@ class sfp_sslcert(SpiderFootPlugin):
self.notifyListeners(evt)
for san in set(cert.get('altnames', list())):
- if "*." in san:
- dom = san.replace("*.", ".")
- else:
- dom =san
+ dom = san.replace("*.", "")
if self.getTarget().matches(dom, includeChildren=True):
evt_type = 'INTERNET_NAME'