]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 5241: Block all non-localhost requests by default (#1164)
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 17 Oct 2022 13:22:34 +0000 (13:22 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 17 Oct 2022 13:34:47 +0000 (13:34 +0000)
commitf13e556e4ce743369dee4782b78c87d65580ab00
treed385b9c867a4db91034d33a56abc445570288a72
parent959f72e0c1844f68ecfe9e74fab5dc965a11b4c5
Bug 5241: Block all non-localhost requests by default (#1164)

This change goes one step further than commit 6d2f8ed in satisfying the
same "by default, introduce no new attack vectors" principle.

Commit 6d2f8ed blocked access to localhost and to-link-local services
but still allowed access to potentially vulnerable popular cloud
instance metadata services running on site-local IPv6 addresses. It also
still allowed external access to localnet services that could be
completely unprepared for such dangers! This change closes those holes.

This default configuration has two extra deny rules. These rules become
necessary only when the admin adds an "http_access allow" rule below
them. We enabled these rules despite their overheads, including more DNS
queries in some environments, so that the admin does not have to
remember to enable them when following our "INSERT...HERE" instructions.
src/cf.data.pre