Descrizione
Vue I18n is the internationalization plugin for Vue.js. From 7.0.0 until 11.4.14 and from 12.0.0-alpha.1 until 12.0.0-alpha.5, locale-indexed merge and setter APIs use attacker-controlled locale names without requiring own properties or rejecting names inherited from Object.prototype. In modern releases, mergeLocaleMessage() can write into Object.prototype through the special double-underscore proto accessor. The related setters can replace the prototype of shared message or format containers through the double-underscore proto accessor, allowing cross-instance or cross-request resource injection. Applications that pass untrusted locale values or locale-keyed resource objects can experience prototype pollution, built-in modification, denial of service, bypassed checks, or stronger gadget-dependent effects. This issue is fixed in versions 11.4.14 and 12.0.0-alpha.5.
Tipo di vulnerabilità
CWE-915
Improperly Controlled Modification of Dynamically-Determined Object Attributes
The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità |
Modificare i dati dell’applicazione |
| Integrità |
Eseguire codice o comandi non autorizzati |
| Altro, Integrità |
Dipende dal contesto, Alterare la logica di esecuzione |
Come si previene
Sviluppo
If available, use features of the language or framework that allow specification of allowlists of attributes or fields that are allowed to be modified. If possible, prefer allowlists over denylists. For applications written with Ruby on Rails, use the attr_accessible (allowlist) or attr_protected (denylist) macros in each class that may be used in mass assignment.
Architettura e progettazione · Sviluppo
If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
Sviluppo · Validazione dell’input
For any externally-influenced input, check the input against an allowlist of internal object attributes or fields that are allowed to be modified.
Sviluppo · Architettura e progettazione · Refactoring
Refactor the code so that object attributes or fields do not need to be dynamically identified, and only expose getter/setter functionality for the intended attributes.
Tutte le 145 CVE di tipo CWE-915, con andamento e prevenzione