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

CVE-2020-8908

3.3 Gravità bassa CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N 3.3 – Bassa

Descrizione

A temp directory creation vulnerability exists in all versions of Guava, allowing an attacker with access to the machine to potentially access data in a temporary directory created by the Guava API com.google.common.io.Files.createTempDir(). By default, on unix-like systems, the created directory is world-readable (readable by an attacker with access to the system). The method in question has been marked @Deprecated in versions 30.0 and later and should not be used. For Android developers, we recommend choosing a temporary directory API provided by Android, such as context.getCacheDir(). For other Java developers, we recommend migrating to the Java 7 API java.nio.file.Files.createTempDirectory() which explicitly configures permissions of 700, or configuring the Java runtime's java.io.tmpdir system property to point to a location whose permissions are appropriately configured.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
google guava < 32.0.0 –
netapp active iq unified manager tutte linux
netapp active iq unified manager tutte vmware_vsphere
netapp active iq unified manager tutte windows
oracle commerce guided search 11.3.2 –
oracle communications cloud native core network repository function 1.14.0 –
oracle communications cloud native core network slice selection function 1.2.1 –
oracle communications pricing design center 12.0.0.4.0 –
oracle communications pricing design center 12.0.0.5.0 –
oracle data integrator 12.2.1.3.0 –
oracle data integrator 12.2.1.4.0 –
oracle nosql database < 20.3 –
oracle peoplesoft enterprise peopletools 8.57 –
oracle peoplesoft enterprise peopletools 8.58 –
oracle peoplesoft enterprise peopletools 8.59 –
oracle primavera unifier >= 17.7 <= 17.12 –
oracle primavera unifier 18.8 –
oracle primavera unifier 19.12 –
oracle primavera unifier 20.12 –
oracle primavera unifier 21.12 –
oracle retail customer management and segmentation foundation >= 16.0 <= 19.0 –
oracle weblogic server 14.1.1.0.0 –
quarkus quarkus < 1.11.4 –

Tipo di vulnerabilità

CWE-732 Permessi errati su una risorsa critica

Il prodotto assegna a una risorsa critica per la sicurezza permessi che ne consentono la lettura o la modifica a soggetti non previsti.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere i dati dell’applicazione, Leggere file o cartelle
Controllo degli accessi Ottenere privilegi o assumere un’altra identità
Integrità, Altro Modificare i dati dell’applicazione, Altro

Come si previene

Sviluppo When using a critical resource such as a configuration file, check to see if the resource has insecure permissions (such as being modifiable by any regular user), and generate an error or even exit the software if there is a possibility that the resource could have been modified by an unauthorized party.
Architettura e progettazione Divide the software into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully defining distinct user groups, privileges, and/or roles. Map these against data, functionality, and the related resources. Then set the permissions accordingly. This will allow you to maintain more fine-grained control over your resources.
Architettura e progettazione · Esercizio · Sandbox o jail Esegui il codice in una «jail» o in una sandbox simile, che imponga confini rigidi tra il processo e il sistema operativo. Così si può limitare a quali file in una cartella si può accedere o quali comandi il software può eseguire (per esempio con chroot su Unix, AppArmor o SELinux). Il codice gestito può offrire una certa protezione: in Java, per esempio, java.io.FilePermission del SecurityManager permette di limitare le operazioni sui file. Non sempre è una soluzione praticabile e limita l’impatto solo sul sistema operativo: il resto dell’applicazione può comunque essere compromesso. Attenzione a CWE-243 e agli altri errori legati alle jail.
Sviluppo · Installazione During program startup, explicitly set the default permissions or umask to the most restrictive setting possible. Also set the appropriate permissions during program installation. This will prevent you from inheriting insecure permissions from any user who installs or runs the program.
Configurazione del sistema For all configuration files, executables, and libraries, make sure that they are only readable and writable by the software's administrator.
Documentazione Do not suggest insecure configuration changes in documentation, especially if those configurations can extend to resources and other programs that are outside the scope of the application.
Installazione Do not assume that a system administrator will manually change the configuration to the settings that are recommended in the software's manual.
Esercizio · Configurazione del sistema · Hardening dell’ambiente Ensure that the software runs properly under the United States Government Configuration Baseline (USGCB) or an equivalent hardening configuration guide, which many organizations use to limit the attack surface and potential risk of deployed software.

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

Tutte le 1.764 CVE di tipo CWE-732, con andamento e prevenzione

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