Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
dahua-cve-research — Dahua IP camera CVE research toolkit (CVE-2021-33044/33045, CVE-2025-31700/31701) | Kitploit
Tools/GitHubGitHub/umair-aziz025/dahua-cve-research
IoT SecurityNetwork MappingVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingAuthenticationLearning & Education
GitHubumair-aziz025/dahua-cve-research

dahua-cve-research

Dahua IP camera CVE research toolkit (CVE-2021-33044/33045, CVE-2025-31700/31701)

View Repository
2164 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Dahua IP Camera CVE Exploit Tools

⚠️ UNDER DEVELOPMENT — These scripts are based on published CVE details and require further testing against vulnerable devices to confirm full functionality.

Research and proof-of-concept scripts for four critical Dahua IP camera vulnerabilities.


⚠️ LEGAL DISCLAIMER

root@kitploit:~
THIS SOFTWARE IS PROVIDED FOR EDUCATIONAL AND AUTHORIZED SECURITY TESTING PURPOSES ONLY.

By using these tools, you agree that:
  1. You have EXPLICIT WRITTEN AUTHORIZATION to test the target systems
  2. You will NOT use these tools for illegal activities
  3. You accept full responsibility for your actions
  4. The authors are NOT liable for any misuse or damage

Unauthorized access to computer systems is a CRIMINAL OFFENSE in most jurisdictions.

CVEs Covered

CVECVSSTypeStatus
CVE-2021-330449.8 CRITICALAuth BypassCISA KEV (actively exploited)
CVE-2021-330459.8 CRITICALAuth BypassCISA KEV (actively exploited)
CVE-2025-317008.1 HIGHBuffer Overflow DoSRecent (2025)
CVE-2025-317018.1 HIGHBuffer Overflow DoSRecent (2025)

CVE-2021-33044 & CVE-2021-33045 — Authentication Bypass

  • CVSS: 9.8 CRITICAL
  • CWE: CWE-287 (Improper Authentication)
  • Mechanism: RPC2 login accepts empty-password hash, granting admin access
  • Affected: IPC-HUM7xxx, IPC-HX3xxx/HX5xxx, TPC-, VTO-, VTH-, NVR-, XVR-*
  • Fixed in: Firmware 2.820.x+ (IPC) / 4.001.x+ (NVR/XVR)
  • References:
    • NVD CVE-2021-33044
    • NVD CVE-2021-33045
    • CISA KEV Catalog

CVE-2025-31700 & CVE-2025-31701 — Buffer Overflow (DoS/RCE)

  • CVSS: 8.1 HIGH
  • CWE: CWE-120 (Buffer Copy Without Checking Size of Input)
  • Mechanism: Oversized packets cause buffer overflow → crash or potential RCE
  • References:
    • NVD CVE-2025-31700
    • Dahua Security Advisory

How the Auth Bypass Works

Dahua cameras use challenge-response authentication over /RPC2_Login:

root@kitploit:~
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")

Vulnerable firmware accepts the empty-password hash and returns a valid session token.


Scripts


Installation

root@kitploit:~
# 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

Usage

Network Scanner

root@kitploit:~
# 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

Common Dahua ports: 80, 8000, 8080, 8081, 8888, 9000, 443, 37777

Multi-CVE Exploit (Recommended)

root@kitploit:~
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

Auth Bypass

root@kitploit:~
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

Buffer Overflow DoS

root@kitploit:~
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

⚠️ WARNING: The DoS script may crash the target device.


Dependencies

root@kitploit:~
requests

All other imports are from Python standard library: socket, struct, hashlib, threading, ipaddress, argparse, json


Development Status

🚧 UNDER ACTIVE DEVELOPMENT

These scripts have been developed based on:

  • Published CVE details from NVD
  • Dahua Security Advisories
  • Public PoC references (seclists.org, packetstormsecurity)

Testing Status:

  • ✅ Auth bypass logic implemented per CVE specifications
  • ✅ Buffer overflow payloads constructed per advisories
  • ⚠️ Limited testing against live vulnerable devices
  • ⚠️ Additional validation needed against diverse firmware versions

If you have access to vulnerable devices for testing, contributions and feedback are welcome.


Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Test your changes
  4. Submit a pull request

Please report any issues or false positives.


References

  • NVD - CVE-2021-33044
  • NVD - CVE-2021-33045
  • NVD - CVE-2025-31700
  • NVD - CVE-2025-31701
  • CISA Known Exploited Vulnerabilities
  • Dahua Security Center
  • Bashis PoC - Seclists

License

MIT License - See LICENSE file.


Author

Umair Aziz
GitHub: @umair-aziz025


For educational and authorized security research only.

Download Tool
FilePurposeCVEs
dahua_scanner.pyNetwork discovery — find Dahua cameras on subnetDetection
dahua_exploit.pyMulti-CVE scanner — test all vulnerabilitiesAll
dahua_auth_bypass.pyDedicated auth bypass with --dump optionCVE-2021-33044/45
dahua_rce.pyBuffer overflow DoS probeCVE-2025-31700/01