WordPress Plugin Vulnerabilities

Contact Form by WD <= 1.13.23 - Admin+ SQLi

Description

The plugin does not properly sanitise and escape a parameter before using it in a SQL statement, leading to a SQL injection exploitable by high privilege users such as admin

Proof of Concept

1. When editing a form, go to "Settings > MySQL Mapping".
2. Click "Add a Query" 
3. When mapping the form to the database in the next screen, intercept the request and replace either the `id` or `form_id` parameter with the payload `1%20AND%20(SELECT%205065%20FROM%20(SELECT(SLEEP(5)))zYK1)`
4. The request will run the SQL.

Affects Plugins

References

YouTube Video

Classification

Type
SQLI
OWASP top 10
CWE

Miscellaneous

Original Researcher
killr00t
Submitter
killr00t
Submitter website
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2023-06-15 (about 10 months ago)
Added
2023-06-15 (about 10 months ago)
Last Updated
2023-06-15 (about 10 months ago)

Other