#VU63677 Information disclosure in guzzle - CVE-2022-29248
Published: May 25, 2022
guzzle
Guzzle
Description
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to way cookies are handled in cookie middleware within Guzzle. If the cookie domain equals the domain of the server which sets the cookie via the Set-Cookie header, a malicious server can set cookies for unrelated domains.
For example an attacker at www.example.com might set a session cookie for api.example.net, logging the Guzzle client into their account and retrieving private API requests from the security log of their account.
Note that cookie middleware is disabled by default, so most library
consumers will not be affected by this issue. Only those who manually
add the cookie middleware to the handler stack or construct the client
with ['cookies' => true] are affected. Moreover, those
who do not use the same Guzzle client to call multiple domains and have
disabled redirect forwarding are not affected by this vulnerability.