PT-2022-20519 · Guzzle · Guzzle
Grahamcampbell
·
Published
2022-06-21
·
Updated
2023-05-22
·
CVE-2022-31091
CVSS v3.1
7.7
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
Guzzle versions prior to 6.5.8
Guzzle versions prior to 7.4.5
Description
Guzzle, an extensible PHP HTTP client, has a issue where
Authorization and Cookie headers on requests are sensitive information. In affected versions, when making a request that responds with a redirect to a URI with a different port, if the redirect is followed, the Authorization and Cookie headers should be removed from the request before proceeding. Previously, only changes in host or scheme would trigger this removal.Recommendations
For Guzzle 7 users, upgrade to version 7.4.5 as soon as possible.
For users of any earlier series of Guzzle, upgrade to version 6.5.8 or 7.4.5.
As a temporary workaround, consider using your own redirect middleware instead of the default one if you are unable to upgrade.
If redirects are not required or expected, consider disabling redirects altogether.
Exploit
Fix
Information Disclosure
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Guzzle