Descrizione
The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'post_content' parameter in all versions up to, and including, 2.8.207 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 payload survives storage because wp_kses('post') permits data-* attributes and entity-encoded content, while the dangerous HTML-parsing step occurs entirely within the plugin's own frontend JavaScript handler at render time.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.4, EPSS 0.4% (percentile 21).
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://github.com/AyeCode/geodirectory/archive/refs/heads/master.zip
- Riferimentohttps://plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.203/assets/aui/js/geodirectory.js#L658
- Riferimentohttps://plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.203/includes/class-geodir-post-data.php#L1732
- Riferimentohttps://plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.203/includes/formatting-functions.php#L429
- Riferimentohttps://plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.203/includes/post-functions.php#L2185
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3820721/geodirectory/trunk/assets/aui/js/geodirectory.js
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/fe741122-6768-4532-a385-15dbf0f8f4a1?source=cve