slurpcode / slurp

One repo to rule them all !!?!?!! šŸ¤“ šŸ˜Ž
https://slurp.rtfd.io/
GNU General Public License v3.0
54 stars 75 forks source link

CVE-2024-1968 (Medium) detected in Scrapy-2.9.0-py2.py3-none-any.whl #2674

Open mend-bolt-for-github[bot] opened 2 weeks ago

mend-bolt-for-github[bot] commented 2 weeks ago

CVE-2024-1968 - Medium Severity Vulnerability

Vulnerable Library - Scrapy-2.9.0-py2.py3-none-any.whl

A high-level Web Crawling and Web Scraping framework

Library home page: https://files.pythonhosted.org/packages/29/87/4129a19d4d56092ed0f63e0739832d145690981631d32f3ac6e438ec0d25/Scrapy-2.9.0-py2.py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **Scrapy-2.9.0-py2.py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: d8437e12def00e625dcf4356f5582a139fb4d08b

Found in base branch: main

Vulnerability Details

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.

Publish Date: 2024-05-20

URL: CVE-2024-1968

CVSS 3 Score Details (6.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2024-1968

Release Date: 2024-05-20

Fix Resolution: scrapy - 2.11.2


Step up your Open Source Security Game with Mend here