Descrizione
The Ocean Extra plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'post_title' parameter in all versions up to, and including, 2.6.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. The shortcode-escape bracket syntax ([[...]]) additionally bypasses wptexturize's own quote conversion, providing an alternative payload path that preserves raw double-quote characters and breaks out of the title attribute on the anchor element rendered by the Recent Posts Thumbnails widget. Exploitation by unauthenticated attackers requires that a separate plugin providing a public guest-post form with a Featured Image field is installed and configured to accept anonymous submissions as published posts. On a default installation, where that is not configured, the vulnerability requires attackers with contributor-level access and above.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.2, EPSS 0.6% (percentile 40).
Versioni da aggiornare
- oceanwp Ocean Extra: vulnerabili le versioni fino alla
2.6.3inclusa → aggiornare a una release successiva alla2.6.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 |
|---|---|---|---|
| oceanwp | Ocean Extra | ≤ 2.6.3 | — |
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/ocean-extra/tags/2.6.3/includes/widgets/recent-posts.php#L120
- Riferimentohttps://plugins.trac.wordpress.org/browser/ocean-extra/tags/2.6.3/includes/widgets/recent-posts.php#L126
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3814025/ocean-extra/trunk/includes/widgets/recent-posts.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/4f4e3808-3a9c-48ec-9c11-954a65dd0a86?source=cve