GitHub Advisoryadvisory · Go

GHSA-jf2w-mq6r-56v8 Caddy allows enumeration of Certificates and Hostnames

LOW Published 2022-05-14 Modified 2024-04-24 Official page ↗
Aliases
CVE-2018-19148
Ecosystem
Go
Packages
github.com/caddyserver/caddy
Severity
Low
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Weaknesses
CWE-200
Reviewed
2024-04-24

Affected packages

• Go github.com/caddyserver/caddy: < 0.11.1 → fixed in 0.11.1

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.

Related

Alias · CVE (1)

  • CVE-2018-19148 Caddy through 0.11.0 sends incorrect certificates for certain invalid requests, making it easier for attackers to enumerate hostnames. vulnerability

Weakness · CWE (1)

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness

References