Descrizione
Scrapy is a high-level web crawling and scraping framework for Python. Prior to 2.17.0, in scrapy/core/downloader/handlers/s3.py, Scrapy's S3DownloadHandler converts an S3-scheme bucket and key request into a plaintext HTTP request to the corresponding S3 endpoint unless request.meta["is_secure"] is explicitly enabled, then signs and sends the plaintext request with configured AWS credentials. A network attacker who can observe traffic between Scrapy and S3 can read the bucket and key path, AWS Authorization header, X-Amz-Security-Token when temporary credentials are used, S3 object contents, and S3 response headers. An active man-in-the-middle attacker can also modify the plaintext S3 response body, status code, and headers before Scrapy processes them, causing scraped-data poisoning, poisoned exports, HTTP cache poisoning when caching is enabled, or influence over later crawl targets through forged redirects or attacker-controlled links. Users making S3-scheme requests with AWS credentials are affected. This issue is fixed in version 2.17.0.
Tipo di vulnerabilità
CWE-319
Trasmissione in chiaro di informazioni sensibili
Il prodotto trasmette dati sensibili o critici per la sicurezza senza cifrarli, su un canale che può essere intercettato.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Riservatezza |
Leggere i dati dell’applicazione, Modificare file o cartelle |
| Integrità, Riservatezza |
Leggere i dati dell’applicazione, Modificare file o cartelle, Altro |
Come si previene
Architettura e progettazione
Before transmitting, encrypt the data using reliable, confidentiality-protecting cryptographic protocols.
Sviluppo
When using web applications with SSL, use SSL for the entire session from login to logout, not just for the initial login page.
Sviluppo
When designing hardware platforms, ensure that approved encryption algorithms (such as those recommended by NIST) protect paths from security critical data to trusted user applications.
Test
Usa strumenti e tecniche che richiedono un’analisi manuale, come i penetration test, la modellazione delle minacce e strumenti interattivi che permettono a chi testa di registrare e modificare una sessione attiva. Possono essere più efficaci delle tecniche solo automatiche, soprattutto per gli errori legati alla progettazione e alle regole di business.
Esercizio
Configure servers to use encrypted channels for communication, which may include SSL or other secure protocols.
Tutte le 934 CVE di tipo CWE-319, con andamento e prevenzione