Vulnerability identifier: #VU63677
Vulnerability risk: Medium
CVSSv3.1: 4.2 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N/E:U/RL:O/RC:C]
CVE-ID:
CWE-ID:
CWE-200
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
guzzle
Web applications /
Other 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.
Mitigation
Install updates from vendor's website.
Vulnerable software versions
guzzle: 7.4.0 - 7.4.2, 7.3.0, 7.2.0, 7.1.0 - 7.1.1, 7.0.0 - 7.0.1, 6.5.0 - 6.5.5, 6.4.0 - 6.4.1, 6.3.0 - 6.3.3, 6.2.0 - 6.2.3, 6.1.0 - 6.1.1, 6.0.0 - 6.0.2, 5.3.0 - 5.3.4, 5.2.0, 5.1.0, 5.0.0 - 5.0.3, 4.2.0 - 4.2.4, 4.1.0 - 4.1.8, 4.0.0 - 4.0.2, 3.8.0 - 3.8.1, 3.7.0 - 3.7.4, 3.6.0, 3.5.0, 3.4.0 - 3.4.3, 3.3.0 - 3.3.1, 3.2.0, 3.1.0 - 3.1.2, 3.0.0 - 3.0.7, 2.8.0 - 2.8.8, 2.7.0 - 2.7.2, 2.6.0 - 2.6.6, 2.5.0, 2.4.0 - 2.4.1, 2.3.0 - 2.3.2, 2.2.0 - 2.2.4, 2.1.0 - 2.1.4, 2.0.0 - 2.0.5, 1.0.0 - 1.0.4
External links
http://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.