Skip to content

SQUID-2020:13 Denial of Service in gopher gateway

High
yadij published GHSA-jm7h-w5q5-jpq9 Sep 6, 2023

Package

squid

Affected versions

<6.0.1

Patched versions

6.0.1

Description

Problem Description:

Due to a buffer overflow bug Squid is vulnerable to a Denial of Service
attack against Squid's gopher gateway.


Severity:

This problem allows a remote gopher: server to trigger a buffer
overflow by delivering large gopher protocol responses.
On most operating systems with memory protection this will
halt Squid service immediately, causing a denial of service to
all Squid clients.

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.


Workaround:

  • Reject all gopher URL requests

acl gopher proto gopher
http_access deny gopher

Note: removing the gopher port 70 from the Safe_ports ACL
is not sufficient to avoid this vulnerability.


Contact details for the Squid project:

For installation / upgrade support on binary packaged versions
of Squid: Your first point of contact should be your binary
package vendor.

If you install and build Squid from the original Squid sources
then the [email protected] mailing list is your
primary support point. For subscription details see
http://www.squid-cache.org/Support/mailing-lists.html.

For reporting of non-security bugs in the latest STABLE release
the squid bugzilla database should be used
https://bugs.squid-cache.org/.

For reporting of security sensitive bugs send an email to the
[email protected] mailing list. It's a closed
list (though anyone can post) and security related bug reports
are treated in confidence until the impact has been established.


Credits:

This vulnerability was discovered by Marco Grassi.


Revision history:

2019-06-15 13:32:50 UTC Initial Report


END

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVE ID

No known CVE

Weaknesses

Improper Restriction of Operations within the Bounds of a Memory Buffer

The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. Learn more on MITRE.