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

CVE-2024-39698

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

Descrizione

electron-updater allows for automatic updates for Electron apps. The file `packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts` implements the signature validation routine for Electron applications on Windows. Because of the surrounding shell, a first pass by `cmd.exe` expands any environment variable found in command-line above. This creates a situation where `verifySignature()` can be tricked into validating the certificate of a different file than the one that was just downloaded. If the step is successful, the malicious update will be executed even if its signature is invalid. This attack assumes a compromised update manifest (server compromise, Man-in-the-Middle attack if fetched over HTTP, Cross-Site Scripting to point the application to a malicious updater server, etc.). The patch is available starting from 6.3.0-alpha.6.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
electron electron-builder < 6.3.0 node.js
electron electron-builder 6.3.0 alpha0 node.js
electron electron-builder 6.3.0 alpha1 node.js
electron electron-builder 6.3.0 alpha2 node.js
electron electron-builder 6.3.0 alpha3 node.js
electron electron-builder 6.3.0 alpha4 node.js
electron electron-builder 6.3.0 alpha5 node.js

Tipo di vulnerabilità

CWE-295 Validazione impropria del certificato

Il prodotto non verifica, o verifica in modo errato, un certificato digitale, esponendo le comunicazioni a intercettazioni.

Impatto sui sistemi

AmbitoImpatto
Integrità, Autenticazione Aggirare i meccanismi di protezione, Ottenere privilegi o assumere un’altra identità

Come si previene

Architettura e progettazione · Sviluppo Certificates should be carefully managed and checked to assure that data are encrypted with the intended owner's public key.
Sviluppo If certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname.

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

Tutte le 1.804 CVE di tipo CWE-295, con andamento e prevenzione

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