WordPress Plugin Vulnerabilities

WPML String Translation < 3.2.6 - Admin+ SQLi

Description

The context parameter on the String Translation admin page is passed directly into SQL queries without being properly sanitized, allowing SQL injection.

Proof of Concept

Visit:

.../wp-admin/admin.php?page=wpml-string-translation%2Fmenu%2Fstring-translation.php&context=Test%26%23039%3Bing

to see a database error generated due to the unescaped apostrophe. This is present in the Debug Log.

`AND s.context = 'Test'ing' AND TRIM(s.value) ...`

Affects Plugins

Classification

Type
SQLI
OWASP top 10
CWE

Miscellaneous

Original Researcher
Stephen
Submitter
Stephen
Verified
Yes

Timeline

Publicly Published
2023-07-24 (about 4 months ago)
Added
2023-07-24 (about 4 months ago)
Last Updated
2023-08-01 (about 4 months ago)

Other