CyberRota Analysis
AI-Generatedlibcurl with libpsl support enabled is vulnerable due to improper handling of `Set-Cookie` headers when the `Domain` attribute matches a public suffix, allowing cookies to be saved with wildcard domain scope. This misconfiguration can lead to unauthorized access to cookies by malicious subdomains, facilitating potential session hijacking or data leakage. Organizations using libcurl in environments where cookie security is critical should prioritize addressing this vulnerability to mitigate risks associated with cross-domain attacks.
Original NVD Description
When libpsl support is enabled, libcurl fails to enforce the Public Suffix List boundary check when processing a `Set-Cookie` header where the `Domain` attribute explicitly matches an origin host that is itself a public suffix (e.g., `Domain=co.uk` set by `co.uk`). Instead of coercing it into a strict host-only cookie, libcurl saves the cookie with wildcard domain scope (`.co.uk`). Consequently, the cookie is inappropriately included in subsequent outbound requests or HTTP redirects to arbitrary sibling subdomains under the same public suffix (e.g., `attacker.co.uk`).
Related CVEs
Other vulnerabilities affecting the same vendor(s)