Bugzilla – Bug 1216497
VUL-0: squid: Denial of Service in Gopher gateway
Last modified: 2024-01-29 14:20:03 UTC
https://github.com/squid-cache/squid/security/advisories/GHSA-cg5h-v6vc-w33f Package: Squid (Squid) Affected versions: <6.0.1 Patched versions: 6.0.1 Description: Due to a NULL pointer dereference bug Squid is vulnerable to a Denial of Service attack against Squid's Gopher gateway. Severity: The gopher protocol is always available and enabled in Squid prior to Squid 6.0.1 Responses triggering this bug are possible to be received from any gopher server, even those without malicious intent. CVSS Score of 7.5 https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H&version=3.1 Updated Packages: The gopher support has been removed in Squid version 6.0.1 If you are using a prepackaged version of Squid then please refer to the package vendor for availability information on updated packages. Determining if your version is vulnerable: All Squid-2.x up to and including 2.7.STABLE9 are vulnerable. All Squid-3.x up to and including 3.5.28 are vulnerable. All Squid-4.x up to and including 4.16 are vulnerable. All Squid-5.x up to and including 5.9 are vulnerable.
All codestreams are vulnerable, no fix available, but there could be an easy workaround by rejecting gopher URL request, by adding the following to the squid.conf file: ``` acl gopher proto gopher http_access deny gopher ```
I've double checked the gopher functionality inside my test setup. Additionally to the 2 lines above it was necessary to disable the gopher port 70 entry by removing the following line: acl Safe_ports port 70 # gopher To clarify this, I've opened a bug report with squid up-stream: https://bugs.squid-cache.org/show_bug.cgi?id=5310
Workaround: Please make sure that the following lines are placed before all "http_access allow" rules, otherwise the restriction will not work: ``` acl gopher proto gopher http_access deny gopher ```
Duplicate *** This bug has been marked as a duplicate of bug 1216926 ***