CVE-2024-1968

EUVD-2024-1419
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
@huntr_aiCNA
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 40%
Affected Products (NVD)
VendorProductVersion
scrapyscrapy
𝑥
≤ 1.8.4
scrapyscrapy
2.0.0 ≤
𝑥
< 2.11.2
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
python-scrapy
bookworm
no-dsa
bullseye
no-dsa
buster
postponed
forky
2.13.4-2
fixed
sid
2.13.4-2
fixed
trixie
2.12.0-2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
python-scrapy
bionic
Fixed 1.5.0-1ubuntu0.1~esm1
released
focal
Fixed 1.7.3-1ubuntu0.1~esm1
released
jammy
Fixed 2.5.1-2ubuntu0.1~esm1
released
mantic
ignored
noble
Fixed 2.11.1-1ubuntu0.1~esm2
released
oracular
not-affected
plucky
not-affected
questing
not-affected
xenial
ignored