1. Archivio CVE
  2. 2024
  3. CVE-2024-47884

CVE-2024-47884

2.4 Gravità bassa CVSS v4.0 · fonte NVD CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X 2.4 – Bassa

Descrizione

foxmarks is a CLI read-only interface for Firefox's bookmarks and history. A temporary file was created under the /tmp directory with read permissions for all users containing a copy of Firefox's database of bookmarks, history, input history, visits counter, use counter, view counter and more confidential information about the history of using Firefox. Permissions default to 0o600 for NamedTempFile. However, after copying the database, its permissions were copied with it resulting in an insecure file with 0x644 permissions. A malicious user is able to read the database when the targeted user executes foxmarks bookmarks or foxmarks history. This vulnerability is patched in v2.1.0.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
zefr0x foxmarks < 2.1.0 –

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 31 CVE di tipo CWE-378, con andamento e prevenzione

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