.. / CVE-2022-21661

Exploit for WordPress <5.8.3 - SQL Injection (CVE-2022-21661)

Description:

WordPress before 5.8.3 is susceptible to SQL injection through multiple plugins or themes due to improper sanitization in WP_Query, An attacker can potentially obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.

Nuclei Template

View the template here CVE-2022-21661.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2022/CVE-2022-21661.yaml
Copy

References:

https://nvd.nist.gov/vuln/detail/cve-2022-21661
https://wpscan.com/vulnerability/7f768bcf-ed33-4b22-b432-d1e7f95c1317
http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html
https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84
https://www.zerodayinitiative.com/blog/2022/1/18/cve-2021-21661-exposing-database-info-via-wordpress-sql-injection