GeoDirectory <= 2.8.186 - Unauthenticated SQL Injection via 'latitude' Parameter via Stored Pending Listing
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
The GeoDirectory plugin for WordPress is vulnerable to SQL Injection via the stored latitude/longitude coordinates of a listing in versions up to, and including, 2.8.186. This is due to insufficient escaping and the absence of numeric validation on coordinate values when a listing is saved, combined with the direct string interpolation of those values into a distance sub-expression in geodir_gps_query_part() that is later executed by the public wp_ajax_nopriv_geodir_widget_listings handler when a caller supplies set_post=<pending-listing-id> and sort_by=distance_asc. This makes it possible for authenticated attackers, with Subscriber-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- paoltaia GeoDirectory – WP Business Directory Plugin and Classified Listings Directory
through 2.8.186
References 7
plugins.trac.wordpress.org
- browser/geodirectory/tags/2.8.185/includes/general-functions.php#L1312
- browser/geodirectory/tags/2.8.185/includes/general-functions.php#L1394
- browser/geodirectory/tags/2.8.185/includes/widgets/class-geodir-widget-listings.php#L862
- browser/geodirectory/tags/2.8.185/includes/class-geodir-ajax.php#L1464
- browser/geodirectory/tags/2.8.185/includes/class-geodir-post-data.php#L660
- changeset?reponame=&old=3723536%40geodirectory&new=3723536%40geodirectory