Information Exposure Affecting github.com/caddyserver/caddy/caddyhttp/httpserver package, versions <0.11.1


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.86% (58th percentile)

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 IDSNYK-GOLANG-GITHUBCOMCADDYSERVERCADDYCADDYHTTPHTTPSERVER-6673857
  • published25 Apr 2024
  • disclosed14 May 2022
  • creditMax Lielje, Deleted user

Introduced: 14 May 2022

CVE-2018-19148  (opens in a new tab)
CWE-200  (opens in a new tab)

How 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.

CVSS Base Scores

version 3.1