Descrizione
The W4 Post List plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'metavalue (for metakeyinput=<attacker-chosen key>)' parameter in all versions up to, and including, 3.1.0 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. Exploitation requires the attacker's post to be included in the W4 Post List query and the active list template to reference the attacker's chosen meta key via a [post_meta key="..."] tag; because WordPress core applies no kses filtering to custom field values on save, a raw XSS payload is preserved in the database unmodified and rendered verbatim on every page load.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.4, EPSS 0.3% (percentile 21).
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://github.com/w4devInc/w4-post-list/compare/3.1.0...3.1.1
- Riferimentohttps://plugins.trac.wordpress.org/browser/w4-post-list/tags/3.1.0/includes/abstracts/class-list.php#L504
- Riferimentohttps://plugins.trac.wordpress.org/browser/w4-post-list/tags/3.1.0/includes/template-tags/class-post-template-tags.php#L809
- Riferimentohttps://plugins.trac.wordpress.org/browser/w4-post-list/tags/3.1.0/includes/template-tags/class-post-template-tags.php#L813
- Riferimentohttps://plugins.trac.wordpress.org/browser/w4-post-list/tags/3.1.0/includes/template-tags/class-post-template-tags.php#L825
- Riferimentohttps://plugins.trac.wordpress.org/browser/w4-post-list/tags/3.1.0/includes/template-tags/class-post-template-tags.php#L836
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/f9205951-5e0b-4f91-8822-cf8cabd552e2?source=cve