Descrizione
The All-in-One Video Gallery – Video Player & Galleries for YouTube, Vimeo & Self-Hosted Videos plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'embedcode' parameter in all versions up to, and including, 5.2.0 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 plugin grants the Subscriber role the edit_aiovg_videos and edit_published_aiovg_videos capabilities on activation, and save_meta_data() accepts the 'embedcode' type without checking current_user_can('unfiltered_html'), meaning any Subscriber can store a malicious shortcode containing a data: URI in the hls attribute that hls.js later processes and Plyr writes into the DOM via innerHTML.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.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/all-in-one-video-gallery/tags/5.2.0/admin/videos.php#L491
- Riferimentohttps://plugins.trac.wordpress.org/browser/all-in-one-video-gallery/tags/5.2.0/includes/helpers/functions.php#L3311
- Riferimentohttps://plugins.trac.wordpress.org/browser/all-in-one-video-gallery/tags/5.2.0/includes/player/base.php#L1047
- Riferimentohttps://plugins.trac.wordpress.org/browser/all-in-one-video-gallery/tags/5.2.0/includes/player/vidstack.php#L410
- Riferimentohttps://plugins.trac.wordpress.org/browser/all-in-one-video-gallery/tags/5.2.0/includes/roles.php#L69
- Riferimentohttps://plugins.trac.wordpress.org/browser/all-in-one-video-gallery/tags/5.2.0/public/video.php#L151
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3826337/all-in-one-video-gallery/trunk/public/video.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/cda18383-695e-42a0-b538-1498bae3b3fe?source=cve