#VU63677 Information disclosure in guzzle - CVE-2022-29248

 

#VU63677 Information disclosure in guzzle - CVE-2022-29248

Published: May 25, 2022


Vulnerability identifier: #VU63677
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2022-29248
CWE-ID: CWE-200
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
guzzle
Software vendor:
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.


Remediation

Install updates from vendor's website.

External links