CVE-2018-19148

LOW

Caddy < 0.11.0 - Sensitive Information Exposure via Invalid Host Header

Title source: llm
STIX 2.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.

References (4)

Core 4
Core References
Exploit, Patch, Third Party Advisory
https://securitytrails.com/blog/caddy-web-server-ssl-bug
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/mholt/caddy/pull/2015
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/mholt/caddy/issues/1303
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/mholt/caddy/issues/2334

Scores

CVSS v3 3.7
EPSS 0.0086
EPSS Percentile 54.0%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Details

CWE
CWE-200
Status published
Products (2)
caddyserver/caddy < 0.11.0
caddyserver/caddy 0 - 0.11.1Go
Published Nov 10, 2018
Tracked Since Feb 18, 2026