CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-84366

CVE-2026-84366: Plaintext AWS Credential Exposure in Scrapy S3DownloadHandler

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 2, 2026·5 min read·19 visits

Executive Summary (TL;DR)

Scrapy's S3 downloader prior to 2.17.0 transmitted signed AWS S3 requests over unencrypted HTTP by default, exposing AWS credentials and payloads to eavesdroppers.

A security vulnerability in Scrapy's Amazon S3 download handler allows unencrypted transmission of sensitive AWS credentials and session tokens over plaintext HTTP. Prior to version 2.17.0, the handler defaulted to HTTP instead of HTTPS when translating s3:// URIs into standard S3 API requests, unless explicitly configured otherwise. This allows network eavesdroppers to intercept credentials and perform active Man-in-the-Middle (MITM) attacks.

Vulnerability Overview

Scrapy is an open-source web crawling and scraping framework for Python widely used to extract structured data from websites. Among its capabilities, Scrapy supports downloading objects directly from Amazon Simple Storage Service (S3) using custom s3:// URIs. This functionality is implemented in the Scrapy core downloader via the S3DownloadHandler class.\n\nPrior to Scrapy version 2.17.0, a vulnerability existed in this handler where S3 API requests were routed over plaintext HTTP rather than secure HTTPS. The root of this behavior was a default configuration logic that initialized target connections with the unencrypted HTTP scheme unless explicitly configured otherwise.\n\nBecause S3 requests typically require authentication headers when accessing private buckets, the S3DownloadHandler signed these requests prior to dispatch. Consequently, AWS Signature Version 4 parameters, access keys, and session tokens were transmitted over the network in cleartext, presenting an exposure risk.

Root Cause Analysis

The core issue resides in the scheme selection logic of the S3DownloadHandler.download_request method in scrapy/core/downloader/handlers/s3.py. When a scraper processes an s3:// URL, the handler must translate it into an HTTP or HTTPS API endpoint URL that can be requested via Scrapy's underlying download machinery.\n\nTo determine which protocol to use, the handler evaluated the boolean expression request.meta.get("is_secure"). In Python, retrieving a non-existent key from a dictionary using .get(key) returns None by default. Because the is_secure key was not present in the request meta dictionary during standard crawling operations, this expression evaluated to None.\n\nIn Python's conditional evaluation, None is falsy. Therefore, the ternary operation defaulted to selecting the 'http' scheme. This resulted in all subsequent outbound API calls, including those carrying signature headers, being constructed as http://<bucket>.s3.amazonaws.com connections, exposing sensitive cryptographic material.

Code Analysis

To understand the vulnerability and its remediation, we examine the codebase of the S3 download handler before and after the fix.\n\nIn the vulnerable version, the scheme was assigned using a falsy check on the optional metadata parameter:\n\npython\n# Vulnerable Implementation\ndef download_request(self, request: Request) -> Response:\n p = urlparse_cached(request)\n # request.meta.get("is_secure") returns None, which evaluates to False\n scheme = "https" if request.meta.get("is_secure") else "http"\n bucket = p.hostname\n path = p.path + "?" + p.query if p.query else p.path\n url = f"{scheme}://{bucket}.s3.amazonaws.com{path}"\n\n\nThe patch implemented in version 2.17.0 corrects this logical path by explicitly checking for a boolean False value, thereby making HTTPS the default choice for all requests unless an explicit opt-out is supplied:\n\npython\n# Patched Implementation\ndef download_request(self, request: Request) -> Response:\n p = urlparse_cached(request)\n # Explicit check for False ensures None defaults to "https"\n scheme = "http" if request.meta.get("is_secure") is False else "https"\n bucket = p.hostname\n path = p.path + "?" + p.query if p.query else p.path\n url = f"{scheme}://{bucket}.s3.amazonaws.com{path}"\n\n\nThis adjustment guarantees that standard requests without the is_secure metadata key default to secure HTTPS connections while maintaining compatibility for local testing frameworks (like LocalStack) that operate over HTTP.

Exploitation Scenario & Attack Vectors

An attacker positioned on the network path between the crawler host and the AWS S3 endpoint can intercept the plaintext HTTP communications. This position can be achieved through ARP spoofing, DNS hijacking, or by operating on compromised intermediate routing infrastructure.\n\nOnce positioned, the attacker can sniff port 80 traffic for requests targeting *.s3.amazonaws.com. These requests contain standard AWS headers such as Authorization (containing credential scope and AWS Access Key ID) and X-Amz-Security-Token (containing temporary session tokens when running under IAM roles).\n\nAdditionally, because the connection is unencrypted, an active adversary can perform a Man-in-the-Middle (MITM) attack. They can modify the S3 payload in transit, inject redirect responses (such as HTTP 301/302), or alter the scraped content to feed poisoned data to downstream processing engines.\n\nmermaid\ngraph LR\n A["Scrapy Crawler"] -->|"Plaintext HTTP request\nwith AWS Signature"| B["Adversary / MITM Sniffer"]\n B -->|"Captured Credentials"| C["Unauthorized AWS Access"]\n B -->|"Forwarded/Modified Payload"| D["Target S3 Bucket"]\n

Impact Assessment

The exposure of AWS credentials and session tokens represents a high-severity threat to cloud infrastructure. An attacker who successfully extracts these credentials can gain unauthorized access to the underlying S3 buckets, allowing them to read, write, or delete sensitive data depending on the permissions associated with the compromised credentials.\n\nIf the crawler runs with a high-privilege IAM role or standard long-lived AWS Access Keys, the blast radius extends beyond the targeted bucket. This could lead to broader cloud environment compromise, data exfiltration, or resource hijacking for cryptocurrency mining.\n\nFurthermore, the lack of integrity protection over HTTP enables active data tampering. The results of the web scraping operations cannot be trusted, as an intermediate router could inject false data, presenting significant integrity issues for applications relying on the crawled dataset.

Remediation & Mitigation

The primary remediation is upgrading to Scrapy 2.17.0 or later, which shifts the default protocol to HTTPS.\n\nFor environments where upgrading is not immediately feasible, developers must secure their S3 requests manually. This can be accomplished by explicitly defining the is_secure parameter in the request metadata:\n\npython\n# Workaround for Scrapy < 2.17.0\nyield scrapy.Request(\n url="s3://my-bucket/target-file.json",\n meta={"is_secure": True}\n)\n\n\nAdditionally, security teams should implement SCP (Service Control Policies) or IAM policies that enforce secure transport (HTTPS) for all S3 API interactions, causing any unencrypted S3 requests to be rejected at the AWS API gateway level.

Fix Analysis (1)

Technical Appendix

CVSS Score
7.4/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS Probability
0.16%
Top 95% most exploited

Affected Systems

Scrapy framework (Python)

Affected Versions Detail

Product
Affected Versions
Fixed Version
Scrapy
Scrapy Project
< 2.17.02.17.0
AttributeDetail
CWE IDCWE-319
Attack VectorNetwork (AV:N)
CVSS Score7.4 (High)
EPSS Score0.00160
Exploit Statusnone
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1040Network Sniffing
Credential Access
T1557Adversary-in-the-Middle
Credential Access
CWE-319
Cleartext Transmission of Sensitive Information

The application transmits sensitive data over an unencrypted channel, allowing unauthorized actors to capture or modify the data in transit.

References & Sources

  • [1]Official CVE Record
  • [2]NVD Directory Details
  • [3]GitHub Security Advisory
  • [4]Official Fix Commit
  • [5]Scrapy 2.17.0 Release Page

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•2 minutes ago•CVE-2026-109619
9.2

CVE-2026-109619: Remote Code Execution in PHP Core via Stale Global State Memory Corruption (PHP2Shell)

CVE-2026-109619 (PHP2Shell) is a critical Use-After-Free vulnerability in the core PHP engine caused by improper global state cleanup during out-of-memory exception handling across persistent worker requests.

Alon Barad
Alon Barad
1 views•6 min read
•5 minutes ago•CVE-2026-113721
4.5

CVE-2026-113721: Unsafe Link Resolution in virtualenv File Generation

In Python virtualenv prior to version 21.14.9, activation script generators and configuration writers use Path.exists() before writing files. Because Path.exists() resolves symbolic links, it returns False for dangling symlinks. Consequently, virtualenv skips unlinking pre-planted symbolic links or hard links, writing data directly to target locations outside the intended virtual environment directory.

Amit Schendel
Amit Schendel
1 views•5 min read
•9 days ago•CVE-2026-87697
8.8

CVE-2026-87697: Untrusted Deserialization in .NET PresentationCore Clipboard Handling

A remote code execution vulnerability exists in Microsoft .NET due to untrusted data deserialization within the PresentationCore component. The flaw stems from implicit auto-conversion flags during clipboard data retrieval operations.

Alon Barad
Alon Barad
31 views•5 min read
•9 days ago•CVE-2026-70007
8.8

CVE-2026-70007: Out-of-Bounds Write Vulnerability in .NET Framework and WPF Subsystem

An out-of-bounds write vulnerability in Microsoft .NET Framework, .NET runtime, and Visual Studio allows unauthenticated remote attackers to execute arbitrary code via crafted pixel-shader bytecode or auto-converted clipboard payloads.

Amit Schendel
Amit Schendel
19 views•6 min read
•10 days ago•CVE-2026-70186
7.5

CVE-2026-70186: ASP.NET Core Denial of Service Vulnerability via Framework Deadlock

ASP.NET Core contains a thread deadlock vulnerability (CWE-833) that allows an unauthenticated remote attacker to cause a denial of service over the network by exhausting server thread pool resources.

Amit Schendel
Amit Schendel
18 views•5 min read
•10 days ago•CVE-2026-70035
8.8

CVE-2026-70035: Insecure Deserialization Remote Code Execution in Microsoft .NET Framework and .NET Runtime

CVE-2026-70035 is a high-severity Remote Code Execution (RCE) vulnerability in Microsoft .NET Framework, .NET runtime, and Visual Studio caused by improper handling during the deserialization of untrusted data (CWE-502). An unauthenticated attacker can execute arbitrary code within the context of the affected process by delivering a crafted serialized payload.

Amit Schendel
Amit Schendel
24 views•6 min read