CVE-2022-27779
mediumlibcurl wrongly allows cookies to be set for Top Level Domains (TLDs) if thehost name is provided with a trailing dot.curl can be told to receive and send cook…
Vendor / product: Haxx — curl
libcurl wrongly allows cookies to be set for Top Level Domains (TLDs) if thehost name is provided with a trailing dot.curl can be told to receive and send cookies. curl's "cookie engine" can bebuilt with or without [Public Suffix List](https://publicsuffix.org/)awareness. If PSL support not provided, a more rudimentary check exists to atleast prevent cookies from being set on TLDs. This check was broken if thehost name in the URL uses a trailing dot.This can allow arbitrary sites to set cookies that then would get sent to adifferent and unrelated site or domain.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N Affected products
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://hackerone.com/reports/1553301 support@hackerone.com
- https://security.gentoo.org/glsa/202212-01 support@hackerone.com
- https://security.netapp.com/advisory/ntap-20220609-0009/ support@hackerone.com
- https://hackerone.com/reports/1553301 af854a3a-2127-422b-91ae-364da2661108
- https://security.gentoo.org/glsa/202212-01 af854a3a-2127-422b-91ae-364da2661108
- https://security.netapp.com/advisory/ntap-20220609-0009/ af854a3a-2127-422b-91ae-364da2661108
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

