Descrizione
The WPMR Google Feed Manager for WooCommerce – Sell on Google Merchant Center & Shopping plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'feed (title field inside the JSON-encoded feed array)' parameter in all versions up to, and including, 2.24.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with custom-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. sanitize_text_field() is applied on storage but strips only angle brackets and newlines, leaving single quotes and parentheses intact — the exact characters needed to break out of the onclick JavaScript string context constructed by wppfm_feedListTable() and installed via jQuery .append().
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/wp-product-feed-manager/tags/2.24.2/includes/data/class-wppfm-ajax-data.php#L266
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-product-feed-manager/tags/2.24.2/includes/data/class-wppfm-ajax-data.php#L65
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-product-feed-manager/tags/2.24.2/includes/user-interface/js/wppfm_feed-list.js#L135
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-product-feed-manager/tags/2.24.2/includes/user-interface/js/wppfm_feed-list.js#L148
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-product-feed-manager/tags/2.24.2/includes/user-interface/js/wppfm_feed-list.js#L155
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-product-feed-manager/tags/2.25.0/includes/user-interface/js/wppfm_feed-list.js
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3820184
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/5ef9369c-7b6c-492f-b1c1-6068abaab97f?source=cve