Bugzilla – Bug 1195432
VUL-1: CVE-2022-23607: python-treq: treq's request methods and `treq.client.HTTPClient` constructor do not bind cookies to a domain
Last modified: 2022-08-24 07:17:46 UTC
CVE-2022-23607 treq is an HTTP library inspired by requests but written on top of Twisted's Agents. Treq's request methods (`treq.get`, `treq.post`, etc.) and `treq.client.HTTPClient` constructor accept cookies as a dictionary. Such cookies are not bound to a single domain, and are therefore sent to *every* domain ("supercookies"). This can potentially cause sensitive information to leak upon an HTTP redirect to a different domain., e.g. should `https://example.com` redirect to `http://cloudstorageprovider.com` the latter will receive the cookie `session`. Treq 2021.1.0 and later bind cookies given to request methods (`treq.request`, `treq.get`, `HTTPClient.request`, `HTTPClient.get`, etc.) to the origin of the *url* parameter. Users are advised to upgrade. For users unable to upgrade Instead of passing a dictionary as the *cookies* argument, pass a `http.cookiejar.CookieJar` instance with properly domain- and scheme-scoped cookies in it. References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-23607 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23607 https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc
Affected: - openSUSE:Backports:SLE-15-SP3 - openSUSE:Backports:SLE-15-SP4 - openSUSE:Factory The fix [0] was introduced with version 22.1.0 [0] https://github.com/twisted/treq/commit/1da6022cc880bbcff59321abe02bf8498b89efb2
This is an autogenerated message for OBS integration: This bug (1195432) was mentioned in https://build.opensuse.org/request/show/951348 Factory / python-treq
(In reply to Carlos López from comment #1) > - openSUSE:Backports:SLE-15-SP4 It is not in this channel at all?
(In reply to Matej Cepl from comment #3) > (In reply to Carlos López from comment #1) > > - openSUSE:Backports:SLE-15-SP4 > > It is not in this channel at all? It used to be there, I even have a local copy of the repo. But yes, only openSUSE:Backports:SLE-15-SP3 would need submission now.
This is an autogenerated message for OBS integration: This bug (1195432) was mentioned in https://build.opensuse.org/request/show/998294 Backports:SLE-15-SP3 / python-treq
openSUSE-SU-2022:10098-1: An update that fixes one vulnerability is now available. Category: security (moderate) Bug References: 1195432 CVE References: CVE-2022-23607 JIRA References: Sources used: openSUSE Backports SLE-15-SP3 (src): python-treq-20.3.0-bp153.2.3.1