Vulnerabilities · 2019 · Squid-cache
CVE-2019-12520
Squid-cache Squid vulnerability
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.
Affected products
Squid, Ubuntu Linux, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Squid-cache Squid runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.squid-cache.org/Versions/v4/ · Vendor Advisory
- www.squid-cache.org/Versions/v4/changesets/ · Vendor Advisory
- github.com/squid-cache/squid/commits/v4 · Patch
- gitlab.com/jeriko.one/security/-/blob/master/squid/CVEs/CVE-2019-12520.txt · Third Party Advisory
- lists.debian.org/debian-lts-announce/2020/07/msg00009.html · Third Party Advisory
- security.netapp.com/advisory/ntap-20210205-0006/ · Third Party Advisory
- usn.ubuntu.com/4446-1/ · Third Party Advisory
- www.debian.org/security/2020/dsa-4682 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2019-12520
- cve.org/CVERecord?id=CVE-2019-12520
More vulnerabilities in Squid-cache products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.