Bug 1224474 (CVE-2024-1968) - VUL-0: CVE-2024-1968: python-Scrapy: HTTP redirects followed regardless of the URL protocol
Summary: VUL-0: CVE-2024-1968: python-Scrapy: HTTP redirects followed regardless of th...
Status: RESOLVED FIXED
Alias: CVE-2024-1968
Product: openSUSE Distribution
Classification: openSUSE
Component: Security (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Dirk Mueller
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/406671/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-1968:6.5:(AV:N...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-20 10:49 UTC by SMASH SMASH
Modified: 2024-07-11 15:29 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-05-20 10:49:37 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
Comment 1 Camila Camargo de Matos 2024-05-20 10:51:17 UTC
openSUSE:Factory/python-Scrapy is currently affected by this issue.

GitHub advisory: https://github.com/scrapy/scrapy/security/advisories/GHSA-23j4-mw76-5v7h
Comment 3 OBSbugzilla Bot 2024-07-11 11:45:02 UTC
This is an autogenerated message for OBS integration:
This bug (1224474) was mentioned in
https://build.opensuse.org/request/show/1186841 Factory / python-Scrapy
Comment 4 Dirk Mueller 2024-07-11 15:29:42 UTC
submitted to factory.