WordPress Store Locator 3.33.1 - SQL Injection

Sign up to our free email alerts service for instant vulnerability notifications!

Description
Using a combination of GET fields, it is possible to perform a SQL Injection attack using the ‘sl-xml.php’ script. This injection is performed on the LIMIT of the SQL query, however retrieving data via this vulnerability is very easy, due to the outputting of the resulting SQL error by the script, should the query fail.

The vulnerable section of code can be found in the file ‘sl-xml.php’. The $_POST scope is being passed through the ‘extract’ function, after which certain variables are used when building the query, without being filtered. As the PoC shows, a couple of other fields are required to successfully exploit this vulnerability.

Affects

Plugin store-locator
fixed in version 3.34

References

URL https://research.g0blin.co.uk/g0blin-00031/

Classification

Type SQLI
OWASP Top 10 A1: Injection
CWE CWE-89

Miscellaneous

Submitter James Hooker
Submitter Website https://research.g0blin.co.uk
Submitter Twitter g0blinResearch
Views 166
Verified No
WPVDB ID 7797

Timeline

Publicly Published 2015-02-19 (almost 2 years ago)
Added 2015-02-19 (almost 2 years ago)
Last Updated 2015-05-15 (over 1 year ago)

Copyright & License

Copyright All data and resources contained within this page and this web site is Copyright © The WPScan Team.
License Some of this data may be used for non-commercial purposes, however, any potential commercial usage of this data will require a license. If you would like to inquire about a commercial license please contact us.