Descrizione
vm2 versions from 3.9.6 before 3.11.7 fail to properly restrict access to accessor properties on frozen objects, allowing sandboxed scripts to bypass vm.freeze() and vm.readonly() protections. Attackers can use Object.getOwnPropertyDescriptor() or __lookupSetter__() to extract and invoke host object setters directly, mutating properties the embedder explicitly marked read-only.
Tipo di vulnerabilità
CWE-471
Modification of Assumed-Immutable Data (MAID)
The product does not properly protect an assumed-immutable element from being modified by an attacker.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità |
Modificare i dati dell’applicazione |
| Integrità |
Stato imprevisto |
Come si previene
Architettura e progettazione · Esercizio · Sviluppo
When the data is stored or transmitted through untrusted sources that could modify the data, implement integrity checks to detect unauthorized modification, or store/transmit the data in a trusted location that is free from external influence.
Tutte le 31 CVE di tipo CWE-471, con andamento e prevenzione