Descrizione
PrestaShop before 8.2.9 and 9.0.0 before 9.2.1 contains a path traversal vulnerability in back-office theme and module archive import that allows authenticated employees to write files outside intended directories. Attackers can craft a theme name in config/theme.yml or upload a module archive extracted before validation to place PHP files in web-accessible locations and execute code.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.2, EPSS 0.8% (percentile 57).
Versioni da aggiornare
- PrestaShop PrestaShop: vulnerabili le versioni precedenti alla
8.2.9→ aggiornare alla8.2.9o successiva. - PrestaShop PrestaShop: vulnerabili le versioni dalla
9.0.0precedenti alla9.2.1→ aggiornare alla9.2.1o successiva.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Filtrare le sequenze di path traversal sul reverse proxy/WAF ed eseguire il servizio con permessi minimi sul filesystem.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| PrestaShop | PrestaShop | < 8.2.9 | 8.2.9 |
| PrestaShop | PrestaShop | ≥ 9.0.0 < 9.2.1 | 9.2.1 |
Riferimenti
- Riferimentohttps://github.com/PrestaShop/PrestaShop/blob/9.1.5/src/Core/Addon/Theme/ThemeManager.php#L404-L470
- Riferimentohttps://github.com/PrestaShop/PrestaShop/blob/9.1.5/src/Core/Module/SourceHandler/ZipSourceHandler.php#L68-L78
- Riferimentohttps://github.com/PrestaShop/PrestaShop/commit/446da0c02b8ad9bcbdd61f5791d8e551dfab1150
- Riferimentohttps://github.com/PrestaShop/PrestaShop/commit/63ffaf0a1c48638970e12a4d1c23d7272db6b84f
- Riferimentohttps://github.com/PrestaShop/PrestaShop/commit/c1087264a329cdafb34b1ddbb368972043fd696e
- Riferimentohttps://github.com/PrestaShop/PrestaShop/commit/ff100164be70b573c9beb059fc828189e934479c
- Riferimentohttps://github.com/PrestaShop/PrestaShop/releases/tag/8.2.9
- Riferimentohttps://github.com/PrestaShop/PrestaShop/releases/tag/9.2.1
- Riferimentohttps://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-7q68-ch46-pxmc
- Riferimentohttps://www.vulncheck.com/advisories/prestashop-before-8.2.9-and-9.2.1-path-traversal-rce-via-theme-module-import