Bug 2060003 (CVE-2022-0577) - CVE-2022-0577 python-scrapy: User-set cookies are kept on redirect requests regardless of the target domain
Summary: CVE-2022-0577 python-scrapy: User-set cookies are kept on redirect requests r...
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2022-0577
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2060004
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-02 14:03 UTC by Mauro Matteo Cascella
Modified: 2022-03-03 06:20 UTC (History)
1 user (show)

Fixed In Version: python-scrapy 1.8.2, python-scrapy 2.6.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-03 06:20:16 UTC


Attachments (Terms of Use)

Description Mauro Matteo Cascella 2022-03-02 14:03:39 UTC
A flaw was found in python-scrapy. If you manually define cookies on a Request object, and that Request object gets a redirect response, the new Request object scheduled to follow the redirect keeps those user-defined cookies, regardless of the target domain.

References:
https://github.com/scrapy/scrapy/security/advisories/GHSA-cjvr-mfj7-j4j8
https://github.com/scrapy/scrapy/commit/8ce01b3b76d4634f55067d6cfdf632ec70ba304a

Comment 1 Mauro Matteo Cascella 2022-03-02 14:03:55 UTC
Created python-scrapy tracking bugs for this issue:

Affects: fedora-all [bug 2060004]

Comment 2 Product Security DevOps Team 2022-03-03 06:20:14 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.