This repository hosts a set of scripts related to CVE-2024-4040, a vulnerability affecting CrushFTP VFS (Virtual File System), which allows unauthorized access to files outside the server's intended directory structure. thanks to the original writer of the original code : https://github.com/simsor
Modified by Trhacknon
This script, a modification by Trhacknon, enhances the functionality of the original exploit scanner. The following enhancements have been made:
-
Mass Scan: It now supports scanning multiple targets simultaneously, allowing for a broader assessment of potential vulnerabilities.
-
Multithreading: Utilizing multiple threads, the scanner boosts efficiency by concurrently scanning multiple targets.
-
Output: Upon completion of a scan, the script prints "Vulnerable" to standard output if it successfully exploits the vulnerability, accompanied by an exit code of 1. Conversely, if the vulnerability exploitation fails, it prints "Not vulnerable" and exits with a status code of 0.
Usage:
python main.py
Dependencies: The script relies on the
requests
library.
This script is designed to search for signs of compromise within a CrushFTP server installation directory. Essentially, it performs the equivalent of the following command:
$ grep -F -r '<INCLUDE>' /path/to/CrushFTP/logs/
For each match found, it attempts to extract the IP address from which the exploit originated.
pip install requests questionary termcolor colorama
-
Clone the repository:
git clone https://github.com/tucommenceapousser/CVE-2024-4040-Scanner
-
Navigate to the directory containing
main.py
. -
Execute the script:
python main.py
-
Clone the repository:
git clone https://github.com/tucommenceapousser/CVE-2024-4040-Scanner
-
Navigate to the directory containing
scan_logs.py
. -
Execute the script:
python scan_logs.py
- Python 3: The scripts are written in Python 3.
- Requests Library: Used for making HTTP requests, required by
main.py
.
Contributions are welcome! Feel free to submit pull requests or open issues if you encounter any problems or have suggestions for improvements.
This project is licensed under the MIT License.