GitHub Advisoryadvisory · Go
GHSA-jf2w-mq6r-56v8 Caddy allows enumeration of Certificates and Hostnames
LOW
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
- https://nvd.nist.gov/vuln/detail/CVE-2018-19148 advisory
- https://github.com/mholt/caddy/issues/1303 web
- https://github.com/mholt/caddy/issues/2334 web
- https://github.com/mholt/caddy/pull/2015 web
- https://github.com/caddyserver/caddy/commit/986d4ffe3de32dcb81d334d603a2f0f1d460eb2f web
- https://github.com/caddyserver/caddy/commit/f6e50890b3d81cb04146bd7b2c2b59e99830849a web
- https://github.com/caddyserver/caddy package
- https://securitytrails.com/blog/caddy-web-server-ssl-bug web