Descrizione
The rtMedia for WordPress, BuddyPress and bbPress plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'media_title' parameter in all versions up to, and including, 4.7.18 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The vulnerability is only triggerable via the Backbone.js-rendered "Load More" pagination path; the server-side PHP gallery rendering correctly escapes media_title with esc_attr() and is not affected.
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://plugins.trac.wordpress.org/browser/buddypress-media/tags/4.7.18/app/assets/js/rtMedia.backbone.js#L463
- Riferimentohttps://plugins.trac.wordpress.org/browser/buddypress-media/tags/4.7.18/app/main/controllers/media/RTMediaMedia.php#L249
- Riferimentohttps://plugins.trac.wordpress.org/browser/buddypress-media/tags/4.7.18/app/main/controllers/template/RTMediaTemplate.php#L310
- Riferimentohttps://plugins.trac.wordpress.org/browser/buddypress-media/tags/4.7.18/app/main/controllers/template/RTMediaTemplate.php#L394
- Riferimentohttps://plugins.trac.wordpress.org/browser/buddypress-media/tags/4.7.18/templates/media/album-gallery.php#L161
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3813127/buddypress-media/trunk/templates/media/album-gallery.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/f86e25a4-adce-4e27-9575-97d577902080?source=cve