Advisory

GHSA-jf2w-mq6r-56v8

Also known as: CVE-2018-19148

Summary

Caddy allows enumeration of Certificates and Hostnames

Details

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.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2022-05-14 01:37 UTC
Modified
2024-04-24 20:28 UTC

Affected packages and fixes

github.com/caddyserver/caddy

Go · All systems

Affected

  • introduced 0, fixed 0.11.1 (semver)

Fixed versions

0.11.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences