CVE-2019-12520

HIGH

Squid < 4.7 - Cache Poisoning via Decoded UserInfo in Absolute URL

Title source: llm
STIX 2.1

Description

An issue was discovered in Squid through 4.7 and 5. When receiving a request, Squid checks its cache to see if it can serve up a response. It does this by making a MD5 hash of the absolute URL of the request. If found, it servers the request. The absolute URL can include the decoded UserInfo (username and password) for certain protocols. This decoded info is prepended to the domain. This allows an attacker to provide a username that has special characters to delimit the domain, and treat the rest of the URL as a path or query string. An attacker could first make a request to their domain using an encoded username, then when a request for the target domain comes in that decodes to the exact URL, it will serve the attacker's HTML instead of the real HTML. On Squid servers that also act as reverse proxies, this allows an attacker to gain access to features that only reverse proxies can use, such as ESI.

References (8)

Core 8
Core References
Release Notes, Vendor Advisory x_refsource_misc
http://www.squid-cache.org/Versions/v4/
Release Notes, Vendor Advisory x_refsource_misc
http://www.squid-cache.org/Versions/v4/changesets/
Patch, Third Party Advisory x_refsource_misc
https://github.com/squid-cache/squid/commits/v4
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2020/dsa-4682
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2020/07/msg00009.html
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/4446-1/
Third Party Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20210205-0006/

Scores

CVSS v3 7.5
EPSS 0.0618
EPSS Percentile 91.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Details

CWE
CWE-20
Status published
Products (5)
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 18.04
debian/debian_linux 9.0
debian/debian_linux 10.0
squid-cache/squid < 4.7
Published Apr 15, 2020
Tracked Since Feb 18, 2026