Descrizione
The MoreConvert Wishlist for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'empty_icon' parameter in all versions up to, and including, 2.0.4 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This vulnerability is exploitable even in version 2.0.4 where a patch was attempted, because the sanitizer's single html_entity_decode pass combined with esc_attr()'s double_encode=false behavior leaves entity-encoded inner markup intact, which the counter JavaScript then decodes and assigns to innerHTML, turning inert encoded text back into executable DOM elements.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.4, EPSS 0.5% (percentile 32).
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/smart-wishlist-for-more-convert/tags/2.0.4/assets/frontend/js/modern/modern-free-bundle.js#L7955
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-wishlist-for-more-convert/tags/2.0.4/includes/class-wlfmc-shortcode.php#L944
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-wishlist-for-more-convert/tags/2.0.4/includes/functions.php#L1774
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-wishlist-for-more-convert/tags/2.0.4/includes/functions.php#L2555
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-wishlist-for-more-convert/tags/2.0.4/templates/mc-wishlist-counter.php#L64
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-wishlist-for-more-convert/tags/2.0.4/templates/mc-wishlist-counter.php#L75
- Riferimentohttps://plugins.trac.wordpress.org/changeset?old_path=%2Fsmart-wishlist-for-more-convert%2Ftags%2F2.0.4&new_path=%2Fsmart-wishlist-for-more-convert%2Ftags%2F2.0.5
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/65f8684f-4ca7-4852-a572-9b1946097fcf?source=cve