Bugzilla – Bug 1224474
VUL-0: CVE-2024-1968: python-Scrapy: HTTP redirects followed regardless of the URL protocol
Last modified: 2024-07-11 15:29:42 UTC
In scrapy/scrapy, an issue was identified where the Authorization header is not removed during redirects that only change the scheme (e.g., HTTPS to HTTP) but remain within the same domain. This behavior contravenes the Fetch standard, which mandates the removal of Authorization headers in cross-origin requests when the scheme, host, or port changes. Consequently, when a redirect downgrades from HTTPS to HTTP, the Authorization header may be inadvertently exposed in plaintext, leading to potential sensitive information disclosure to unauthorized actors. The flaw is located in the _build_redirect_request function of the redirect middleware. References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-1968 https://www.cve.org/CVERecord?id=CVE-2024-1968 https://github.com/scrapy/scrapy/commit/1d0502f25bbe55a22899af915623fda1aaeb9dd8 https://huntr.com/bounties/27f6a021-a891-446a-ada5-0226d619dd1a
openSUSE:Factory/python-Scrapy is currently affected by this issue. GitHub advisory: https://github.com/scrapy/scrapy/security/advisories/GHSA-23j4-mw76-5v7h
This is an autogenerated message for OBS integration: This bug (1224474) was mentioned in https://build.opensuse.org/request/show/1186841 Factory / python-Scrapy
submitted to factory.