Descrizione

The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to generic SQL Injection via the 'stype' parameter in all versions up to, and including, 2.8.208 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. This is possible because the plugin's mu-plugin companion (copied automatically on install when the default 'Enable Fast AJAX' option is on) defines DOING_AJAX on any front-end request carrying gd-ajax=1, and an unconditional branch in geodir_get_current_posttype() restores the attacker-controlled stype value after the allow-list check clears it, allowing the tainted value to reach the SQL sink without any preparation.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5, EPSS 0.9% (percentile 57).

Versioni da aggiornare

  • paoltaia GeoDirectory – WP Business Directory Plugin and Classified Listings Directory: vulnerabili le versioni fino alla 2.8.208 inclusa → aggiornare a una release successiva alla 2.8.208.

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Attivare regole WAF anti SQL injection, ridurre i privilegi dell'utente del database e monitorare query anomale.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
paoltaia GeoDirectory – WP Business Directory Plugin and Classified Listings Directory ≤ 2.8.208 —

Riferimenti