Descrizione
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 4.5.5 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. Exploitation requires the plugin's "What must the lightbox be applied to?" setting (thumbEffectContext) to be configured as "Try to apply to all images" or "Try to apply to all images that link to image files," which is not the shipping default, and also requires the attacker's comment to reach a publicly rendered state.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.2, EPSS 0.4% (percentile 28).
Versioni da aggiornare
- smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery: vulnerabili le versioni fino alla
4.5.5inclusa → aggiornare a una release successiva alla4.5.5.
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.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| smub | Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery | ≤ 4.5.5 | — |
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.4/static/Lightbox/lightbox_context.js#L7
- Riferimentohttps://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.4/static/Lightbox/simplelightbox/nextgen_simple_lightbox_init.js#L301
- Riferimentohttps://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.4/static/Lightbox/simplelightbox/simple-lightbox.js#L1693
- Riferimentohttps://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.4/static/Lightbox/simplelightbox/simple-lightbox.js#L900
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3793263/nextgen-gallery/trunk/static/Lightbox/simplelightbox/simple-lightbox.js
- Riferimentohttps://plugins.trac.wordpress.org/changeset?reponame=&new=3793265%40nextgen-gallery&old=3773861%40nextgen-gallery
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/e75bee39-3c8a-47cc-9045-3eb25ef0d517?source=cve