CVE-2018-19148
Caddyserver Caddy vulnerability
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.
Affected products
Caddy. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Caddyserver Caddy runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/mholt/caddy/issues/1303 · Patch
- github.com/mholt/caddy/issues/2334 · Patch
- github.com/mholt/caddy/pull/2015 · Patch
- securitytrails.com/blog/caddy-web-server-ssl-bug · Exploit
- nvd.nist.gov/vuln/detail/CVE-2018-19148
- github.com/caddyserver/caddy/commit/986d4ffe3de32dcb81d334d603a2f0f1d460eb2f
- github.com/caddyserver/caddy/commit/f6e50890b3d81cb04146bd7b2c2b59e99830849a
- github.com/advisories/GHSA-jf2w-mq6r-56v8
- nvd.nist.gov/vuln/detail/CVE-2018-19148
- cve.org/CVERecord?id=CVE-2018-19148
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.