Descrizione
The Translate WordPress with Weglot 2.0 – Multilingual AI Translation plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 6.4.3 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. Successful exploitation requires the target site to permit anonymous comment posting (comment_registration disabled) and have at least one Weglot destination language active; on sites with comment moderation enabled, an administrator must approve the carrier and trigger comments before the injected script executes for subsequent visitors.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.2.
Versioni da aggiornare
- remyb92 Translate WordPress with Weglot 2.0 – Multilingual AI Translation: vulnerabili le versioni fino alla
6.4.3inclusa → aggiornare a una release successiva alla6.4.3.
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 |
|---|---|---|---|
| remyb92 | Translate WordPress with Weglot 2.0 – Multilingual AI Translation | ≤ 6.4.3 | — |
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/weglot/tags/6.4.3/src/services/class-translate-service-weglot.php#L167
- Riferimentohttps://plugins.trac.wordpress.org/browser/weglot/tags/6.4.3/src/services/class-translate-service-weglot.php#L81
- Riferimentohttps://plugins.trac.wordpress.org/browser/weglot/tags/6.4.3/vendor/weglot/simplehtmldom/src/simple_html_dom.php#L1657
- Riferimentohttps://plugins.trac.wordpress.org/browser/weglot/tags/6.4.3/vendor/weglot/simplehtmldom/src/simple_html_dom.php#L1792
- Riferimentohttps://plugins.trac.wordpress.org/browser/weglot/tags/6.4.3/vendor/weglot/simplehtmldom/src/simple_html_dom.php#L488
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3817725/weglot
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/0c088273-33e1-4802-8fa6-11f39bf2d408?source=cve