Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2022-21661-Demo — Demonstration of the SQL injection vulnerability in wordpress 5.8.2 | Kitploit
Tools/GitHubGitHub/daniel616/cve-2022-21661-demo
Vulnerability AnalysisWeb Application ExploitationWeb SecurityLearning & EducationDatabase SecurityLabs & Practice
GitHubdaniel616/cve-2022-21661-demo

CVE-2022-21661-Demo

Demonstration of the SQL injection vulnerability in wordpress 5.8.2

View Repository
2123 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

This repository demonstrates a vulnerability in WordPress 5.8.2, in which missing sanitization in class-wp-tax-query.php can, in very specific situations, allow attackers to perform SQL injection. Note that successful exploitation requires developers to add vulnerable code to the WordPress instance, in which unsanitized user input is passed to a $terms variable that is used to construct a SQL function. See evil.php in the included "evil" plugin, and the lack of sanitization of the $terms variable in get_sql_for_clause in class-wp-tax-query.php.

The vulnerable/malicious plugin is located at src/wp-content/plugins/evil/evil.php.

Demonstration steps sudo docker-compose up follow the installation instructions at localhost active the wordpress plugin in the admin panel (it's titled evil plugin) Send the request in newexploit_req.txt to the newly created server. You should get a time delay. Note that the vulnerability demonstrated by the plugin is a blind sql injection, so if you want to try data retrieval you'll need to retreive data either via time delays or errors.

Debugging notes sudo service docker restart if name resolution failure occurs adjust xdebug.client_host=172.19.0.1 in xdebug.ini as needed

Download Tool