Descrizione
The Easy SwipeBox plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'title attribute of <a> inside an approved comment' parameter in all versions up to, and including, 1.1.2 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 plugin's default-enabled image autodetection applies the Swipebox handler to all front-end anchor elements whose href matches an image extension — including those inside approved comments — meaning no non-default configuration is required to expose the attack surface. A first-time commenter's submission is held for moderator approval, but once approved the stored payload executes for any user who clicks the image link.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.2, EPSS 0.5% (percentile 36).
Versioni da aggiornare
- leopeo Easy SwipeBox: vulnerabili le versioni fino alla
1.1.2inclusa → aggiornare a una release successiva alla1.1.2.
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 |
|---|---|---|---|
| leopeo | Easy SwipeBox | ≤ 1.1.2 | — |
Riferimenti
- Riferimentohttps://github.com/leopuleo/easy-swipebox/pull/16
- Riferimentohttps://plugins.trac.wordpress.org/browser/easy-swipebox/tags/1.1.2/includes/class-easy-swipebox.php#L115
- Riferimentohttps://plugins.trac.wordpress.org/browser/easy-swipebox/tags/1.1.2/public/class-easy-swipebox-public.php#L150
- Riferimentohttps://plugins.trac.wordpress.org/browser/easy-swipebox/tags/1.1.2/public/js/jquery.init.js#L43
- Riferimentohttps://plugins.trac.wordpress.org/browser/easy-swipebox/tags/1.1.2/public/js/jquery.init.js#L7
- Riferimentohttps://plugins.trac.wordpress.org/browser/easy-swipebox/tags/1.1.2/public/js/jquery.swipebox.js#L123
- Riferimentohttps://plugins.trac.wordpress.org/browser/easy-swipebox/tags/1.1.2/public/js/jquery.swipebox.js#L747
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3822309/easy-swipebox/trunk/public/js/jquery.swipebox.js
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/18bef931-3c11-49a2-9355-05c99778ff6f?source=cve