{"id":"CVE-2019-12520","published":"2020-04-15T19:14:25Z","modified":"2024-08-04T23:24:38Z","title":"An issue was discovered in Squid through 4.7 and 5","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03924,"percentile":0.90601,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.squid-cache.org/Versions/v4/","tags":["x_refsource_MISC"]},{"url":"http://www.squid-cache.org/Versions/v4/changesets/","tags":["x_refsource_MISC"]},{"url":"https://github.com/squid-cache/squid/commits/v4","tags":["x_refsource_MISC"]},{"url":"https://gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12520.txt","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2020/dsa-4682","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00009.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://usn.ubuntu.com/4446-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://security.netapp.com/advisory/ntap-20210205-0006/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":18.12}]},"summary":{"text":"An issue in Squid through 4.7 and 5 lets the cache key for a request be built from a decoded UserInfo (username and password) prepended to the domain, so an attacker can craft a username containing delimiter characters that makes the rest of the URL look like a path or query string. An attacker who can send requests through the proxy can first cache their own HTML under a crafted URL, then get that content served in place of the real response when a request for the target URL comes in, and on Squid instances acting as reverse proxies this can expose features such as ESI.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:23:39Z"},"euvd":{"id":"EUVD-2019-4115","exploited":false,"provenance":"source"}}