Information Exposure Affecting github.com/caddyserver/caddy/caddyhttp/httpserver package, versions <0.11.1
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-GOLANG-GITHUBCOMCADDYSERVERCADDYCADDYHTTPHTTPSERVER-6673857
- published 25 Apr 2024
- disclosed 14 May 2022
- credit Max Lielje, Deleted user
Introduced: 14 May 2022
CVE-2018-19148 Open this link in a new tabHow to fix?
Upgrade github.com/caddyserver/caddy/caddyhttp/httpserver
to version 0.11.1 or higher.
Overview
github.com/caddyserver/caddy/caddyhttp/httpserver is an implementation of an HTTP server on top of Caddy.
Affected versions of this package are vulnerable to Information Exposure due to the server's handling of invalid requests. Specifically when it cannot match a Host header with a vhost in its configuration, it serves the X.509 certificate for a randomly selected vhost. Repeated requests with a nonexistent hostname in the Host header allow for the full enumeration of all certificates on the server, thereby enabling an attacker to easily and accurately discover the existence of and relationships among hostnames that were not intended to be public.