Descrizione
The Product Import Export for WooCommerce – CSV Product Importer & Exporter plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'author (initial store via wp-comments-post.php) / CSV cell on import' parameter in all versions up to, and including, 2.6.9 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The exploit requires an administrator to approve the attacker's review, then export and re-import it using the plugin's default column mapping, with the import taking the INSERT branch — which occurs automatically on any site whose database table prefix is not the literal 'wp_', when the CSV has no comment_ID mapping, or when the original review has been trashed. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 4.7, EPSS 0.3% (percentile 18).
Versioni da aggiornare
Il record non riporta ancora i prodotti e le versioni corrette (analisi NVD in corso). Consultare l'advisory del vendor nei riferimenti.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare una Content-Security-Policy restrittiva e regole WAF contro XSS; invitare gli utenti a non aprire link sospetti verso l'applicazione.
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.
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/product-import-export-for-woo/tags/2.6.9/admin/modules/import/import.php#L1385
- Riferimentohttps://plugins.trac.wordpress.org/browser/product-import-export-for-woo/tags/2.6.9/admin/modules/import/import.php#L1519
- Riferimentohttps://plugins.trac.wordpress.org/browser/product-import-export-for-woo/tags/2.6.9/admin/modules/product_review/export/export.php#L225
- Riferimentohttps://plugins.trac.wordpress.org/browser/product-import-export-for-woo/tags/2.6.9/admin/modules/product_review/import/import.php#L444
- Riferimentohttps://plugins.trac.wordpress.org/browser/product-import-export-for-woo/tags/2.6.9/admin/modules/product_review/import/import.php#L530
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3811759/product-import-export-for-woo/trunk/admin/modules/product_review/import/import.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/cbe470eb-cebe-4c36-8281-044f8e3dc49c?source=cve