Descrizione
The Smart Cookie Kit plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 2.3.2 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 payload is specifically crafted to survive wp_kses on save by storing hostile characters inside allowed HTML elements, with the attribute-breaking double-quote smuggled inside a permitted <code> body and reconstructed into a <abbr title> attribute only at render time by the plugin's own output buffer; exploitation requires an administrator to approve the comment and subsequently view the affected public post.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.4, EPSS 0.3% (percentile 26).
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-cookie-kit/tags/2.3.2/plugin.php#L62
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-cookie-kit/tags/2.3.2/plugin_frontend.php#L1335
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-cookie-kit/tags/2.3.2/plugin_frontend.php#L1453
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-cookie-kit/tags/2.3.2/plugin_frontend.php#L1463
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-cookie-kit/tags/2.3.2/simple_html_dom.php#L2498
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-cookie-kit/tags/2.3.2/simple_html_dom.php#L2653
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-cookie-kit/tags/2.3.2/simple_html_dom.php#L2680
- Riferimentohttps://plugins.trac.wordpress.org/browser/smart-cookie-kit/tags/2.3.2/simple_html_dom.php#L707
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/dcd65429-4fe3-41a7-a622-cbbecf4b7dd2?source=cve