Descrizione
The Advanced Country Blocker plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'REQUEST_URI' parameter in all versions up to, and including, 2.3.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 injected script is stored via the advcb_live_activity transient on the init hook and executed when an administrator views the Live Monitor page, as the stored URI is unsafely concatenated into a double-quoted HTML title attribute and inserted into the DOM via jQuery .html().
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.2, EPSS 0.3% (percentile 23).
Versioni da aggiornare
- brstefanovic Advanced Country Blocker: vulnerabili le versioni fino alla
2.3.2inclusa → aggiornare a una release successiva alla2.3.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 |
|---|---|---|---|
| brstefanovic | Advanced Country Blocker | ≤ 2.3.2 | — |
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/advanced-country-blocker/tags/2.3.2/advanced-country-blocking.php#L1800
- Riferimentohttps://plugins.trac.wordpress.org/browser/advanced-country-blocker/tags/2.3.2/advanced-country-blocking.php#L1873
- Riferimentohttps://plugins.trac.wordpress.org/browser/advanced-country-blocker/tags/2.3.2/advanced-country-blocking.php#L2163
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/24314e63-df2e-4572-8979-10c6aba0b3d8?source=cve