Descrizione
The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'opentime (any custom field whose field_type has no geodir_custom_field_value_{type} filter — e.g. time, file, images)' 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 raw payload is returned unescaped by geodir_cf_time() only when the listing is rendered with the value-raw display mode (e.g., via the [gd_post_meta show="value-raw"] shortcode or block), which is required for script execution.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.4, EPSS 0.4% (percentile 27).
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.202/includes/class-geodir-ajax.php#L830
- Riferimentohttps://plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.202/includes/class-geodir-post-data.php#L1732
- Riferimentohttps://plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.202/includes/class-geodir-post-data.php#L492
- Riferimentohttps://plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.202/includes/custom-fields/output-functions.php#L585
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3820721/geodirectory/trunk/includes/custom-fields/output-functions.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/0afdcf98-a544-43eb-ba03-162cd6e5f12c?source=cve