
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-23607 affects Treq, a Python-based HTTP library built on top of Twisted's Agents. The vulnerability was discovered and disclosed in January 2022, impacting versions prior to 22.1.0. The issue involves improper handling of cookies in the library's request methods (treq.get, treq.post, etc.), where cookies were not properly scoped to specific domains (GitHub Advisory).
The vulnerability stems from Treq's request methods accepting cookies as a dictionary without properly binding them to specific domains. When cookies are passed as a dictionary parameter (e.g., treq.get('https://example.com/', cookies={'session': '1234'})), they become "supercookies" that are sent to every domain encountered during request processing, including redirects (GitHub Advisory). The vulnerability is classified as CWE-200 (Information Exposure) (GitHub Advisory).
The vulnerability can lead to sensitive information disclosure when HTTP redirects occur across different domains. For example, if a request to https://example.com redirects to http://cloudstorageprovider.com, the cookies intended for the original domain would be sent to the redirect target, potentially exposing sensitive session information (GitHub Advisory).
The issue has been fixed in Treq version 22.1.0 and later, where cookies given to request methods are properly bound to the origin of the URL parameter. As a workaround for affected versions, users can pass a http.cookiejar.CookieJar instance with properly domain- and scheme-scoped cookies instead of using a dictionary for cookies (GitHub Advisory, Debian Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."