Descrizione
The CodePeople Post Map for Google Maps plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'cpm_map[api_key]' parameter in all versions up to, and including, 1.3.0 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. The settings form nonce is itself rendered on the Subscriber-accessible page (reachable via a trailing-slash bypass of the slug guard), making nonce verification no real barrier to the unauthorized save.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.4, EPSS 0.4% (percentile 23).
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/codepeople-post-map/tags
- Riferimentohttps://plugins.trac.wordpress.org/browser/codepeople-post-map/tags/1.3.0/codepeople-post-map.php#L155
- Riferimentohttps://plugins.trac.wordpress.org/browser/codepeople-post-map/tags/1.3.0/include/functions.php#L1020
- Riferimentohttps://plugins.trac.wordpress.org/browser/codepeople-post-map/tags/1.3.0/include/functions.php#L942
- Riferimentohttps://plugins.trac.wordpress.org/browser/codepeople-post-map/tags/1.3.0/js/cpm.admin.js#L248
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3812534/codepeople-post-map/trunk/include/functions.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/427b6ed2-f481-45b0-aad4-fc2b2e3dd088?source=cve