Descrizione
Highcharts JS is a JavaScript charting library based on SVG. From 1.0.0 until 4.2.2, Highcharts Dashboards stores DataCursor listener and state maps in plain objects keyed by DataTable ID. A __proto__ table ID supplied through dataPool connector configuration resolves to Object.prototype, and sync registration creates an enumerable property there whose suffix can be influenced through the sync group option. The property is visible on every object, and lasting sync states can throw and stop features such as extremes synchronization. Exploitation requires untrusted dashboard configuration and an enabled component sync, but no user interaction beyond loading the board. This issue is fixed in 4.2.2.
Tipo di vulnerabilità
CWE-1321
Prototype pollution: modifica non controllata del prototipo di un oggetto
Il prodotto riceve dall’esterno gli attributi da impostare in un oggetto, ma non impedisce che vengano modificati anche quelli del suo prototipo, alterando il comportamento di tutta l’applicazione (tipico di JavaScript).
Impatto sui sistemi
| Ambito | Impatto |
| Riservatezza, Integrità, Disponibilità |
Leggere i dati dell’applicazione, Modificare i dati dell’applicazione |
| Disponibilità |
Interruzione del servizio: arresto o riavvio |
Come si previene
Sviluppo
By freezing the object prototype first (for example, Object.freeze(Object.prototype)), modification of the prototype becomes impossible.
Architettura e progettazione
By blocking modifications of attributes that resolve to object prototype, such as proto or prototype, this weakness can be mitigated.
Sviluppo · Validazione dell’input
When handling untrusted objects, validating using a schema can be used.
Sviluppo
By using an object without prototypes (via Object.create(null) ), adding object prototype attributes by accessing the prototype via the special attributes becomes impossible, mitigating this weakness.
Sviluppo
Map can be used instead of objects in most cases. If Map methods are used instead of object attributes, it is not possible to access the object prototype or modify it.
Tutte le 591 CVE di tipo CWE-1321, con andamento e prevenzione