Descrizione
The Product Options and Price Calculation Formulas for WooCommerce – Uni CPO plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'price_disabled_msg' setting in versions up to, and including, 4.9.69 The uni_cpo_save_settings_data() AJAX handler applies html_entity_decode() to the output of uni_cpo_sanitize_text(), which itself already runs html_entity_decode() before wp_kses(); this double decode allows a double-entity-encoded tag to pass wp_kses as inert text and then be re-materialised as live HTML before being stored in the _cpo_price_disabled_msg post meta and later echoed via do_shortcode() on the single-product page without further escaping. This makes it possible for authenticated attackers, with Shop Manager-level access (edit_products) and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected product page.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 4.4.
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/uni-woo-custom-product-options/tags/4.9.69/includes/class-uni-cpo-ajax.php#L330
- Riferimentohttps://plugins.trac.wordpress.org/browser/uni-woo-custom-product-options/tags/4.9.69/includes/class-uni-cpo-product.php#L1080
- Riferimentohttps://plugins.trac.wordpress.org/browser/uni-woo-custom-product-options/tags/4.9.69/includes/class-uni-cpo-product.php#L239
- Riferimentohttps://plugins.trac.wordpress.org/browser/uni-woo-custom-product-options/tags/4.9.69/includes/uni-cpo-formatting-functions.php#L404
- Riferimentohttps://wordpress.org/plugins/uni-woo-custom-product-options/
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/f5f6d214-b716-4b2a-bf28-b9449d9c1129?source=cve