Descrizione
The Asset CleanUp: Page Speed Booster plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 1.4.0.6 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 succeeds even though wp_kses is applied on save, because the XSS is manufactured post-sanitization by the plugin's regex pass: kses-permitted tags such as <a title> and <code> carry the attacker's marker and terminator strings intact into the rendered HTML buffer, where the plugin's own replacement then corrupts the document structure.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.4, EPSS 0.4% (percentile 30).
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-asset-clean-up/tags/1.4.0.6/classes/OptimiseAssets/OptimizeCommon.php#L666
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-asset-clean-up/tags/1.4.0.6/classes/OptimiseAssets/OptimizeCommon.php#L767
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-asset-clean-up/tags/1.4.0.6/classes/OptimiseAssets/OptimizeJs.php#L1063
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-asset-clean-up/tags/1.4.0.6/classes/OptimiseAssets/OptimizeJs.php#L1064
- Riferimentohttps://plugins.trac.wordpress.org/changeset?reponame=&old=3802308%40wp-asset-clean-up&new=3802308%40wp-asset-clean-up
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/06bc0988-5a70-4e1e-b66d-ca161138cfc2?source=cve