How umair-aziz025/dahua-cve-research works
This repository is a set of authorized-testing PoC tools for discovering Dahua cameras and probing documented authentication-bypass and buffer-overflow CVEs. The main workflow is subnet/host discovery, device fingerprinting, vulnerability checks, and reporting; separate CLIs provide focused auth bypass with optional device-information dumping and HTTP/TCP overflow probes with post-probe reachability checks. The scripts are standalone rather than a shared application. Scanner internals are partial excerpts, so only visible call relationships are shown.
Main entry points: dahua_auth_bypass.py Auth bypass CLI · dahua_rce.py Overflow PoC CLI · dahua_scanner.py Network scanner · dahua_exploit.py Multi-CVE runner
Components 19
Discovery and assessment
- Network scanner
dahua_scanner.py - Device fingerprinting
dahua_scanner.py - Vulnerability checks
dahua_scanner.py - Scan summary
dahua_scanner.py - Multi-CVE runner
dahua_exploit.py
Authentication bypass
- Auth bypass CLI
dahua_auth_bypass.py - RPC2 challenge
dahua_auth_bypass.py - Login hash
dahua_auth_bypass.py - RPC2 login
dahua_auth_bypass.py - Default credential check
dahua_auth_bypass.py - Device information dump
dahua_auth_bypass.py
Overflow probes
- Overflow PoC CLI
dahua_rce.py - Reachability check
dahua_rce.py - HTTP overflow probe
dahua_rce.py - TCP overflow probe
dahua_rce.py - DVRIP frame builder
dahua_rce.py - Probe result
dahua_rce.py
Other components
- Authorized tester
- Dahua camera
Connections 24
- Authorized tester → Network scanner: runs scan
README.md - Network scanner → Device fingerprinting: fingerprints devices
dahua_scanner.py - Network scanner → Vulnerability checks: checks findings
dahua_scanner.py - Network scanner → Scan summary: prints summary
dahua_scanner.py - Vulnerability checks → Dahua camera: probes
dahua_scanner.py - Authorized tester → Multi-CVE runner: runs tests
README.md - Multi-CVE runner → Dahua camera: tests CVEs
dahua_exploit.py - Authorized tester → Auth bypass CLI: runs bypass
README.md - Auth bypass CLI → RPC2 challenge: requests challenge
dahua_auth_bypass.py - RPC2 challenge → Dahua camera: sends RPC2 request
dahua_auth_bypass.py - Auth bypass CLI → Login hash: computes hash
dahua_auth_bypass.py - Auth bypass CLI → RPC2 login: submits login
dahua_auth_bypass.py - RPC2 login → Dahua camera: sends RPC2 login
dahua_auth_bypass.py - Auth bypass CLI → Default credential check: falls back to
dahua_auth_bypass.py - Auth bypass CLI → Device information dump: optionally dumps
dahua_auth_bypass.py - Device information dump → Dahua camera: calls RPC2 methods
dahua_auth_bypass.py - Authorized tester → Overflow PoC CLI: runs probe
README.md - Overflow PoC CLI → Reachability check: checks before and after
dahua_rce.py - Overflow PoC CLI → HTTP overflow probe: dispatches HTTP probe
dahua_rce.py - Overflow PoC CLI → TCP overflow probe: dispatches TCP probe
dahua_rce.py - TCP overflow probe → DVRIP frame builder: builds frame
dahua_rce.py - HTTP overflow probe → Dahua camera: sends oversized JSON
dahua_rce.py - TCP overflow probe → Dahua camera: sends oversized frame
dahua_rce.py - Overflow PoC CLI → Probe result: summarizes probes
dahua_rce.py