Descrizione
Craft CMS is a content management system (CMS). From 4.0.0 to before 4.17.12 and 5.9.18, Craft CMS which contains an input-handling flaw in a Yii object creation path that let any authenticated user inject malicious configuration and execute arbitrary commands on the server. The request-controlled condition field layouts data is converted into a live FieldLayout object without a Component::cleanseConfig() boundary. Because Craft configures models before parent::__construct(), attacker-controlled special config keys can take effect during object creation, and FieldLayout initialization then triggers a same-request event. This vulnerability is fixed in 4.17.12 and 5.9.18.
Tipo di vulnerabilità
CWE-479
Signal Handler Use of a Non-reentrant Function
The product defines a signal handler that calls a non-reentrant function.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Riservatezza, Disponibilità |
Eseguire codice o comandi non autorizzati |
| Integrità |
Modificare la memoria, Modificare i dati dell’applicazione |
| Disponibilità |
Stato imprevisto, Interruzione del servizio: arresto o riavvio |
Come si previene
Requisiti
Require languages or libraries that provide reentrant functionality, or otherwise make it easier to avoid this weakness.
Architettura e progettazione
Design signal handlers to only set flags rather than perform complex functionality.
Sviluppo
Ensure that non-reentrant functions are not found in signal handlers.
Sviluppo
Use sanity checks to reduce the timing window for exploitation of race conditions. This is only a partial solution, since many attacks might fail, but other attacks still might work within the narrower window, even accidentally.
Tutte le 1 CVE di tipo CWE-479, con andamento e prevenzione