Sploitus

Exploit for CVE-2024-25641

kitploit · 2026-08-27

Exploit Code

MARKDOWN37 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-D3EXT-CVE-2024-25641
# CVE-2024-25641

root@kitploit:~
    
    
    # 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
    

## Spiegazione

Questo repository contiene un POC (Proof of Concept) della vulnerabilità CVE-2024-25641, che colpisce la versione 1.2.26 di Cacti. Questa vulnerabilità è sfruttabile tramite la funzionalità "Package Import" e consente agli utenti autenticati con il permesso "Import Templates" di eseguire codice PHP arbitrario sul server web. La vulnerabilità si trova all'interno della funzione `import_package()` definita nello script `/lib/import.php`. Questo exploit utilizza una reverse shell PHP che viene attivata una volta caricato il plugin dannoso.

## Utilizzo

root@kitploit:~
    
    
    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