Descrizione
Maho is a free and open source ecommerce platform. In Maho prior to 25.9.0, an authenticated staff user with access to the `Dashboard` and `Catalog\Manage Products` permissions can create a custom option on a listing with a file input field. By allowing file uploads with a `.php` extension, the user can use the filed to upload malicious PHP files, gaining remote code execution. Version 25.9.0 fixes the issue.
Tipo di vulnerabilità
CWE-646
Reliance on File Name or Extension of Externally-Supplied File
The product allows a file to be uploaded, but it relies on the file name or extension of the file to determine the appropriate behaviors.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità |
Eseguire codice o comandi non autorizzati |
| Riservatezza |
Leggere i dati dell’applicazione |
| Disponibilità |
Interruzione del servizio: arresto o riavvio, Interruzione del servizio: esaurimento della CPU, Interruzione del servizio: esaurimento della memoria, Interruzione del servizio: esaurimento di risorse |
| Controllo degli accessi |
Ottenere privilegi o assumere un’altra identità |
Come si previene
Architettura e progettazione
Make decisions on the server side based on file content and not on file name or extension.
Tutte le 7 CVE di tipo CWE-646, con andamento e prevenzione