Descrizione
The Groundhogg plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'post_title' merge-tag of the [ghr] shortcode in versions up to, and including, 4.10 The post_title replacement is registered with 'nested' => true, so the nested branch of Replacements::do_replacement() returns the merge value through tackle_replacements() without passing it through escape_merge_tags()/escape_shortcodes(); the callback single_post() calls html_entity_decode(get_the_title(), ENT_QUOTES), converting the entity-encoded text that wp_filter_kses leaves intact on a Contributor's post title back into raw HTML, which is then emitted into the rendered post. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.2, EPSS 0.4% (percentile 32).
Versioni da aggiornare
- trainingbusinesspros Groundhogg — AI CRM, Newsletters, and Marketing Automation: vulnerabili le versioni fino alla
4.10inclusa → aggiornare a una release successiva alla4.10.
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 |
|---|---|---|---|
| trainingbusinesspros | Groundhogg — AI CRM, Newsletters, and Marketing Automation | ≤ 4.10 | — |
Riferimenti
- Riferimentohttps://github.com/groundhoggwp/groundhogg/commit/c324b315d2fad97484f85be61b547bf5d160a1f4
- Riferimentohttps://plugins.trac.wordpress.org/browser/groundhogg/tags/4.10/includes/replacements.php#L1377
- Riferimentohttps://plugins.trac.wordpress.org/browser/groundhogg/tags/4.10/includes/replacements.php#L2598
- Riferimentohttps://plugins.trac.wordpress.org/browser/groundhogg/tags/4.10/includes/replacements.php#L507
- Riferimentohttps://plugins.trac.wordpress.org/browser/groundhogg/tags/4.10/includes/shortcodes.php#L170
- Riferimentohttps://plugins.trac.wordpress.org/browser/groundhogg/tags/4.10/includes/shortcodes.php#L33
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3806204/groundhogg/trunk/includes/replacements.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/2763afc5-0c1c-4557-8638-4d0f61717a7a?source=cve