GeoDirectory <= 2.8.187 - Unauthenticated Local File Inclusion via 'design_type' Parameter
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 2.8.187 via the 'design_type' parameter parameter. This makes it possible for unauthenticated attackers to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included. The required nonce is trivially obtainable by any anonymous visitor, as the geodir_basic_nonce value is localized to every public frontend page via the geodir_params script object, meaning no authentication, user interaction, or specific site content is required to exploit this vulnerability.
Text from CVE List
Affected versions 1
- GeoDirectory – WP Business Directory Plugin and Classified Listings Directoryaffected: all versions through 2.8.187CVE List
References 7
- github.com/AyeCode/geodirectory/commit/2357d640dad7973988742a6706b3a857b6b05d52Fixvia CVE List
- wordfence.com/threat-intel/vulnerabilities/id/ac817587-1403-46e2-84bf-be5fcadc5425?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.187/includes/widgets/class-geodir-widget-tags.php#L1064Referencevia CVE List
- plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.187/includes/class-geodir-ajax.php#L709Referencevia CVE List
- plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.187/includes/template-functions.php#L143Referencevia CVE List
- plugins.trac.wordpress.org/browser/geodirectory/tags/2.8.187/includes/template-functions.php#L199Referencevia CVE List
- plugins.trac.wordpress.org/changeset/3725126/geodirectory/trunk/includes/widgets/class-geodir-widget-tags.phpReferencevia CVE List