Descrizione
The Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'key' parameter in all versions up to, and including, 4.0.3 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the Link Clicks hook to be enabled and that the attacker, as a Subscriber-level user, can access any front-end page rendering the [mycred_link] shortcode, which localizes the nonce needed to reach the AJAX endpoint.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.4, EPSS 0.4% (percentile 31).
Versioni da aggiornare
Il record non riporta ancora i prodotti e le versioni corrette (analisi NVD in corso). Consultare l'advisory del vendor nei riferimenti.
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.
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/mycred/tags/4.0.3/includes/classes/class.mycred-rest-logs.php#L120
- Riferimentohttps://plugins.trac.wordpress.org/browser/mycred/tags/4.0.3/includes/hooks/mycred-hook-link-clicks.php#L203
- Riferimentohttps://plugins.trac.wordpress.org/browser/mycred/tags/4.0.3/includes/hooks/mycred-hook-link-clicks.php#L70
- Riferimentohttps://plugins.trac.wordpress.org/browser/mycred/tags/4.0.3/includes/mycred-protect.php#L158
- Riferimentohttps://plugins.trac.wordpress.org/browser/mycred/tags/4.0.3/src/pages/Logs/LogsTable.js#L243
- Riferimentohttps://plugins.trac.wordpress.org/browser/mycred/tags/4.0.4/src/pages/Logs/LogsTable.js
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/a21d69b4-7ba9-4f2b-8874-4bf309380c95?source=cve