Descrizione
The EZ SQL Reports Shortcode Widget and DB Backup plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'HTTP_USER_AGENT (demonstrated); more generally, any attacker-controllable DB column the saved report selects' parameter in all versions up to, and including, 5.25.25 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. This requires an administrator to have saved a SQL report that selects an attacker-controllable database column, such as wp_comments.comment_agent, which WordPress stores verbatim from unauthenticated visitors even when comments are pending moderation.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.2, EPSS 0.4% (percentile 34).
Versioni da aggiornare
- scheeeli EZ SQL Reports Shortcode Widget and DB Backup: vulnerabili le versioni fino alla
5.25.25inclusa → aggiornare a una release successiva alla5.25.25.
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 |
|---|---|---|---|
| scheeeli | EZ SQL Reports Shortcode Widget and DB Backup | ≤ 5.25.25 | — |
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/elisqlreports/tags/5.25.25/index.php#L385
- Riferimentohttps://plugins.trac.wordpress.org/browser/elisqlreports/tags/5.25.25/index.php#L419
- Riferimentohttps://plugins.trac.wordpress.org/browser/elisqlreports/tags/5.25.25/index.php#L517
- Riferimentohttps://plugins.trac.wordpress.org/browser/elisqlreports/trunk
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3791213/elisqlreports/trunk/index.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/376eec5d-a629-4765-8ace-09e21bf3c2e8?source=cve