Descrizione
Silverstripe Framework is a PHP framework which powers the Silverstripe CMS. From 6.0.0 until 6.2.13, the writer option of i18nTextCollectorTask is passed to the dependency injector without validating that it names an allowed writer implementation. A crafted dev task URL can therefore instantiate arbitrary objects with attacker-controlled constructor arguments and execute code on the server. An administrator can be induced to run the task by following a link because the nested task did not require confirmation, and a site in dev mode exposes the path without authentication. CMS 5 is not affected. This issue is fixed in version 6.2.13.
Tipo di vulnerabilità
CWE-470
Use of Externally-Controlled Input to Select Classes or Code
The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Riservatezza, Disponibilità, Altro |
Eseguire codice o comandi non autorizzati, Alterare la logica di esecuzione |
| Disponibilità, Altro |
Interruzione del servizio: arresto o riavvio, Altro |
| Riservatezza |
Leggere i dati dell’applicazione |
Come si previene
Architettura e progettazione
Refactor your code to avoid using reflection.
Architettura e progettazione
Do not use user-controlled inputs to select and load classes or code.
Sviluppo
Apply strict input validation by using allowlists or indirect selection to ensure that the user is only selecting allowable classes or code.
Tutte le 152 CVE di tipo CWE-470, con andamento e prevenzione