
Exploit for CyberPanel Pre-Auth RCE via Command Injection
Exploit for CyberPanel Pre-Auth RCE (Remote Code Execution) via Command Injection
Author: Luka Petrovic (refr4g)
Date Disclosed: October 2024
Proof-of-concept (PoC) exploit for a command injection vulnerability (CVE-2024-51378) in CyberPanel. This vulnerability enables unauthenticated attackers to inject and execute arbitrary commands on vulnerable servers by sending crafted OPTIONS HTTP requests to /dns/getresetstatus and /ftp/getresetstatus endpoints, potentially leading to full system compromise.
An attacker with network access to the CyberPanel interface can use this vulnerability to gain full control over the affected system.
git clone https://github.com/refr4g/CVE-2024-51378.git
cd CVE-2024-51378
python3 CVE-2024-51378.py <target_url> <endpoint>
target_url: The URL of the CyberPanel instance (e.g., http://target.com:8090).endpoint: The vulnerable endpoint (/ftp/getresetstatus or /dns/getresetstatus).python3 CVE-2024-51378.py http://target.com:8090 /ftp/getresetstatus
This code is for educational purposes only and should only be used on systems for which you have explicit permission to test.