Descrizione
PrestaShop before 8.2.9 and 9.2.1 contains an authorization flaw in the Webservice API that allows an attacker holding a key restricted to one shop to act on data of every shop by submitting requests with id_shop=all or id_shop_group=N, which expand the shop context without validating the key's actual shop associations and cause shopHasRight() to evaluate the expanded set as a disjunction. Attackers can exploit this flaw via classes/webservice/WebserviceRequest.php to read, modify, or delete data belonging to shops they are not authorized for, including full customer records such as email addresses, secure_key, and password hashes across the installation.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.1, EPSS 0.5% (percentile 41).
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:
- Restringere l'accesso al componente, applicare il principio del minimo privilegio e controllare i log per operazioni non autorizzate.
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://codeant.ai/security-research/cve-2026-71531-prestashop-webservice-id-shop-authorization-bypass
- 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-3f36-4qv4-vfgh
- Riferimentohttps://www.vulncheck.com/advisories/prestashop-webservice-api-authorization-bypass-via-id-shop-parameter