Description
Caddy through 0.11.0 sends incorrect certificates for certain invalid requests, making it easier for attackers to enumerate hostnames. Specifically, when unable to match a Host header with a vhost in its configuration, it serves the X.509 certificate for a randomly selected vhost in its configuration. Repeated requests (with a nonexistent hostname in the Host header) permit full enumeration of all certificates on the server. This generally permits an attacker to easily and accurately discover the existence of and relationships among hostnames that weren't meant to be public, though this information could likely have been discovered via other methods with additional effort.
Remediation
References
Related Vulnerabilities
WordPress Cleartext Storage of Sensitive Information Vulnerability (CVE-2017-14990)
WordPress Plugin Snazzy Archives Cross-Site Scripting (1.7.1)
Plone CMS Exposure of Sensitive Information to an Unauthorized Actor Vulnerability (CVE-2012-5505)
Jboss EAP Server-Side Request Forgery (SSRF) Vulnerability (CVE-2018-14721)