1. Archivio CVE
  2. 2022
  3. CVE-2022-23607

CVE-2022-23607

6.5 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N 6.5 – Media

Descrizione

treq is an HTTP library inspired by requests but written on top of Twisted's Agents. Treq's request methods (`treq.get`, `treq.post`, etc.) and `treq.client.HTTPClient` constructor accept cookies as a dictionary. Such cookies are not bound to a single domain, and are therefore sent to *every* domain ("supercookies"). This can potentially cause sensitive information to leak upon an HTTP redirect to a different domain., e.g. should `https://example.com` redirect to `http://cloudstorageprovider.com` the latter will receive the cookie `session`. Treq 2021.1.0 and later bind cookies given to request methods (`treq.request`, `treq.get`, `HTTPClient.request`, `HTTPClient.get`, etc.) to the origin of the *url* parameter. Users are advised to upgrade. For users unable to upgrade Instead of passing a dictionary as the *cookies* argument, pass a `http.cookiejar.CookieJar` instance with properly domain- and scheme-scoped cookies in it.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 9.0 –
twistedmatrix treq >= 21.1.0 < 22.1.0 –

Tipo di vulnerabilità

CWE-425 Direct Request

The web application does not adequately enforce appropriate authorization on all restricted URLs, scripts, or files.

Impatto sui sistemi

AmbitoImpatto
Riservatezza, Integrità, Disponibilità, Controllo degli accessi Leggere i dati dell’applicazione, Modificare i dati dell’applicazione, Eseguire codice o comandi non autorizzati, Ottenere privilegi o assumere un’altra identità

Come si previene

Architettura e progettazione · Esercizio Apply appropriate access control authorizations for each access to all restricted URLs, scripts or files.
Architettura e progettazione Consider using MVC based frameworks such as Struts.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 242 CVE di tipo CWE-425, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org