Skip to content

SQUID-2021:6 Improper Certificate Validation of TLS server certificates

High
yadij published GHSA-47m4-g3mv-9q5r Oct 4, 2021

Package

squid (Squid)

Affected versions

5.0.6-5.1

Patched versions

5.2

Description

When validating an origin server or peer certificate, Squid may
incorrectly classify certain certificates as trusted.


Severity:

This problem allows a remote server to obtain security trust
when the trust is not valid. This indication of trust may be
passed along to clients allowing access to unsafe or hijacked
services.

This problem is guaranteed to occur when multiple CA have
signed the TLS server certificate. It may also occur in cases
of broken server certificate chains.

CVSS Score of 8.4
https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N/E:H/RL:O/RC:C/CR:H/IR:H/AR:X/MAV:X/MAC:X/MPR:X/MUI:R/MS:X/MC:H/MI:H/MA:X&version=3.1


Updated Packages:

This bug is fixed by Squid version 5.2.

In addition, patches addressing this problem for the stable
releases can be found in our patch archives:

Squid 5:

http://www.squid-cache.org/Versions/v5/SQUID-2021_6.patch

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-4 and older are not vulnerable.

All Squid-5.0.1 up to and including 5.0.5 are not vulnerable.

All Squid-5.0.6 up to and including 5.1 are vulnerable.


Workaround:

The only workaround is complete denial to TLS and HTTPS servers
publishing affected certificate chains. The set of affected
servers varies over time and is left out of this document.

acl vulnerableDomains dstdomain .example.net
http_access deny vulnerableDomains


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 Jean-Paul Larocque of
RodeoTV, LLC.

Fixed by The Measurement Factory.


Revision history:

2021-09-07 02:54:48 UTC Initial Report
2021-09-24 20:10:37 UTC Patches Released
2021-10-03 00:00:00 UTC Packages Released


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
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

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:R/S:U/C:H/I:H/A:N

CVE ID

CVE-2021-41611

Weaknesses

Improper Certificate Validation

The product does not validate, or incorrectly validates, a certificate. Learn more on MITRE.