1. Archivio CVE
  2. 2020
  3. CVE-2020-15094

CVE-2020-15094

8.8 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 8.8 – Alta

Descrizione

In Symfony before versions 4.4.13 and 5.1.5, the CachingHttpClient class from the HttpClient Symfony component relies on the HttpCache class to handle requests. HttpCache uses internal headers like X-Body-Eval and X-Body-File to control the restoration of cached responses. The class was initially written with surrogate caching and ESI support in mind (all HTTP calls come from a trusted backend in that scenario). But when used by CachingHttpClient and if an attacker can control the response for a request being made by the CachingHttpClient, remote code execution is possible. This has been fixed in versions 4.4.13 and 5.1.5.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
fedoraproject fedora 32 –
fedoraproject fedora 33 –
sensiolabs httpclient >= 5.1.0 < 5.1.5 –
sensiolabs httpclient >= 4.4.0 < 4.4.13 –
sensiolabs symfony >= 4.4.0 < 4.4.13 –
sensiolabs symfony >= 5.1.0 < 5.1.5 –
Tutte le 108 vulnerabilità di Sensiolabs Symfony

Tipo di vulnerabilità

CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer

The product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere file o cartelle, Leggere i dati dell’applicazione

Come si previene

Requisiti Clearly specify which information should be regarded as private or sensitive, and require that the product offers functionality that allows the user to cleanse the sensitive information from the resource before it is published or exported to other parties.
Architettura e progettazione · Separazione dei privilegi Suddividi il sistema in compartimenti, con aree sicure i cui confini di fiducia siano tracciati senza ambiguità. Non lasciare uscire i dati sensibili da questi confini e presta sempre attenzione quando interagisci con un compartimento esterno all’area sicura. La suddivisione va prevista già in fase di progettazione e deve favorire la separazione dei privilegi; per decidere quando usare i privilegi e quando rinunciarvi, segui il principio del privilegio minimo.
Sviluppo · Esercizio · Riduzione della superficie di attacco Some tools can automatically analyze documents to redact, strip, or sanitize private information, although some human review might be necessary. Tools may vary in terms of which document formats can be processed. When calling an external program to automatically generate or convert documents, invoke the program with any available options that avoid generating sensitive metadata. Some formats have well-defined fields that could contain private data, such as Exchangeable image file format (Exif), which can contain potentially sensitive metadata such as geolocation, date, and time.
Sviluppo · Riduzione della superficie di attacco Use naming conventions and strong types to make it easier to spot when sensitive data is being used. When creating structures, objects, or other complex entities, separate the sensitive and non-sensitive data as much as possible.
Sviluppo Avoid errors related to improper resource shutdown or release (CWE-404), which may leave the sensitive data within the resource if it is in an incomplete state.

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

Tutte le 137 CVE di tipo CWE-212, con andamento e prevenzione

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