1. Archivio CVE
  2. 2023
  3. CVE-2023-0482

CVE-2023-0482

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

Descrizione

In RESTEasy the insecure File.createTempFile() is used in the DataSourceProvider, FileProvider and Mime4JWorkaround classes which creates temp files with insecure permissions that could be read by a local user.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
netapp active iq unified manager tutte linux
netapp active iq unified manager tutte vsphere
netapp active iq unified manager tutte windows
netapp oncommand workflow automation tutte –
redhat resteasy 3.15.4 –
redhat resteasy 4.7.7 –
redhat resteasy 5.0.5 –
redhat resteasy 6.2.2 –
Tutte le 18 vulnerabilità di Redhat Resteasy

Tipo di vulnerabilità

CWE-378 Creation of Temporary File With Insecure Permissions

Opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere i dati dell’applicazione
Autorizzazione, Altro Altro
Integrità, Altro Altro

Come si previene

Requisiti Many contemporary languages have functions which properly handle this condition. Older C temp file functions are especially susceptible.
Sviluppo Ensure that you use proper file permissions. This can be achieved by using a safe temp file function. Temporary files should be writable and readable only by the process that owns the file.
Sviluppo Randomize temporary file names. This can also be achieved by using a safe temp-file function. This will ensure that temporary files will not be created in predictable places.

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

Tutte le 30 CVE di tipo CWE-378, con andamento e prevenzione

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