PT-2022-19495 · Guzzle · Guzzle
Dezső Biczó
+1
·
Published
2022-05-25
·
Updated
2024-03-06
·
CVE-2022-29248
CVSS v3.1
8.1
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Guzzle versions prior to 6.5.6 and 7.4.3
Description
The issue is related to the cookie middleware in Guzzle, a PHP HTTP client. It does not check if the cookie domain equals the domain of the server that sets the cookie via the Set-Cookie header, allowing a malicious server to set cookies for unrelated domains. This affects users who manually add the cookie middleware to the handler stack or construct the client with
['cookies' => true]. Users who do not use the same Guzzle client to call multiple domains and have disabled redirect forwarding are not affected.Recommendations
For versions prior to 6.5.6, upgrade to version 6.5.6.
For versions prior to 7.4.3, upgrade to version 7.4.3.
As a temporary workaround, consider turning off the cookie middleware.
Exploit
Fix
Information Disclosure
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Guzzle