PT-2022-16122 · Treq+1 · Treq+1
Published
2022-02-01
·
Updated
2025-05-17
·
CVE-2022-23607
CVSS v4.0
7.1
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
treq versions prior to 2021.1.0
Description
The treq library's request methods (
treq.get, treq.post, etc.) and treq.client.HTTPClient constructor accept cookies as a dictionary. These cookies are not bound to a single domain and are sent to every domain, potentially causing sensitive information to leak upon an HTTP redirect to a different domain. For example, if https://example.com redirects to http://cloudstorageprovider.com, the latter will receive the session cookie.Recommendations
For versions prior to 2021.1.0, instead of passing a dictionary as the
cookies argument, pass a http.cookiejar.CookieJar instance with properly domain- and scheme-scoped cookies in it.
Upgrade to treq version 2021.1.0 or later, which binds cookies given to request methods to the origin of the url parameter.Exploit
Fix
Information Disclosure
Open Redirect
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Debian
Treq