Dahua DVR Auth Bypass Scanner - Metasploit
This page contains detailed information about how to use the auxiliary/scanner/misc/dahua_dvr_auth_bypass metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Dahua DVR Auth Bypass Scanner
Module: auxiliary/scanner/misc/dahua_dvr_auth_bypass
Source code: modules/auxiliary/scanner/misc/dahua_dvr_auth_bypass.rb
Disclosure date: -
Last modification time: 2019-03-05 03:38:51 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 37777
List of CVEs: CVE-2013-6117
Scans for Dahua-based DVRs and then grabs settings. Optionally resets a user's password and clears the device logs
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
This module is a scanner module, and is capable of testing against multiple hosts.
msf > use auxiliary/scanner/misc/dahua_dvr_auth_bypass
msf auxiliary(dahua_dvr_auth_bypass) > show options
... show and set options ...
msf auxiliary(dahua_dvr_auth_bypass) > set RHOSTS ip-range
msf auxiliary(dahua_dvr_auth_bypass) > exploit
Other examples of setting the RHOSTS option:
Example 1:
msf auxiliary(dahua_dvr_auth_bypass) > set RHOSTS 192.168.1.3-192.168.1.200
Example 2:
msf auxiliary(dahua_dvr_auth_bypass) > set RHOSTS 192.168.1.1/24
Example 3:
msf auxiliary(dahua_dvr_auth_bypass) > set RHOSTS file:/tmp/ip_list.txt
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Go back to menu.
Msfconsole Usage
Here is how the scanner/misc/dahua_dvr_auth_bypass auxiliary module looks in the msfconsole:
msf6 > use auxiliary/scanner/misc/dahua_dvr_auth_bypass
msf6 auxiliary(scanner/misc/dahua_dvr_auth_bypass) > show info
Name: Dahua DVR Auth Bypass Scanner
Module: auxiliary/scanner/misc/dahua_dvr_auth_bypass
License: Metasploit Framework License (BSD)
Rank: Normal
Provided by:
Tyler Bennett - Talos Consulting
Jake Reynolds - Depth Security
Jon Hart <[email protected]>
Nathan McBride
Available actions:
Name Description
---- -----------
CHANNEL Obtain the channel/camera information from the DVR
DDNS Obtain the DDNS settings from the DVR
EMAIL Obtain the email settings from the DVR
GROUP Obtain the group information the DVR
NAS Obtain the NAS settings from the DVR
RESET Reset an existing user's password on the DVR
SERIAL Obtain the serial number from the DVR
USER Obtain the user information from the DVR
VERSION Obtain the version of the DVR
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
CLEAR_LOGS true yes Clear the DVR logs when we're done?
PASSWORD no A password to reset the user with, if not set a random pass will be generated.
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 37777 yes The target port (TCP)
THREADS 1 yes The number of concurrent threads (max one per host)
USERNAME 888888 no A username to reset
Description:
Scans for Dahua-based DVRs and then grabs settings. Optionally
resets a user's password and clears the device logs
References:
https://nvd.nist.gov/vuln/detail/CVE-2013-6117
https://depthsecurity.com/blog/dahua-dvr-authentication-bypass-cve-2013-6117
Module Options
This is a complete list of options available in the scanner/misc/dahua_dvr_auth_bypass auxiliary module:
msf6 auxiliary(scanner/misc/dahua_dvr_auth_bypass) > show options
Module options (auxiliary/scanner/misc/dahua_dvr_auth_bypass):
Name Current Setting Required Description
---- --------------- -------- -----------
CLEAR_LOGS true yes Clear the DVR logs when we're done?
PASSWORD no A password to reset the user with, if not set a random pass will be generated.
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 37777 yes The target port (TCP)
THREADS 1 yes The number of concurrent threads (max one per host)
USERNAME 888888 no A username to reset
Auxiliary action:
Name Description
---- -----------
VERSION Obtain the version of the DVR
Advanced Options
Here is a complete list of advanced options supported by the scanner/misc/dahua_dvr_auth_bypass auxiliary module:
msf6 auxiliary(scanner/misc/dahua_dvr_auth_bypass) > show advanced
Module advanced options (auxiliary/scanner/misc/dahua_dvr_auth_bypass):
Name Current Setting Required Description
---- --------------- -------- -----------
CHOST no The local client address
CPORT no The local client port
ConnectTimeout 10 yes Maximum number of seconds to establish a TCP connection
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
SSL false no Negotiate SSL/TLS for outgoing connections
SSLCipher no String for SSL cipher - "DHE-RSA-AES256-SHA" or "ADH"
SSLVerifyMode PEER no SSL verification method (Accepted: CLIENT_ONCE, FAIL_IF_NO_PEER_CERT, NONE, PEER)
SSLVersion Auto yes Specify the version of SSL/TLS to be used (Auto, TLS and SSL23 are auto-negotiate) (Accepted: Auto, TLS, SSL23, SSL3, TLS1, TLS1.1, TLS1.2)
ShowProgress true yes Display progress messages during a scan
ShowProgressPercent 10 yes The interval in percent that progress should be shown
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the scanner/misc/dahua_dvr_auth_bypass module can do:
msf6 auxiliary(scanner/misc/dahua_dvr_auth_bypass) > show actions
Auxiliary actions:
Name Description
---- -----------
CHANNEL Obtain the channel/camera information from the DVR
DDNS Obtain the DDNS settings from the DVR
EMAIL Obtain the email settings from the DVR
GROUP Obtain the group information the DVR
NAS Obtain the NAS settings from the DVR
RESET Reset an existing user's password on the DVR
SERIAL Obtain the serial number from the DVR
USER Obtain the user information from the DVR
VERSION Obtain the version of the DVR
Evasion Options
Here is the full list of possible evasion options supported by the scanner/misc/dahua_dvr_auth_bypass auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(scanner/misc/dahua_dvr_auth_bypass) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
TCP::max_send_size 0 no Maxiumum tcp segment size. (0 = disable)
TCP::send_delay 0 no Delays inserted before every send. (0 = disable)
Go back to menu.
Related Pull Requests
- #11523 Merged Pull Request: MSF5: Remove unneeded RHOST deregister in scanners
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #7200 Merged Pull Request: Rex::Ui::Text cleanup
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #6602 Merged Pull Request: corrected authors file and cleaned up debug statements on dahua-CVE-20130-6117
- #6241 Merged Pull Request: Dahua DVR auth bypass auxiliary scanner per CVE-2013-6117
References
See Also
Check also the following modules related to this module:
- auxiliary/scanner/misc/cctv_dvr_login
- auxiliary/scanner/misc/cisco_smart_install
- auxiliary/scanner/misc/clamav_control
- auxiliary/scanner/misc/dvr_config_disclosure
- auxiliary/scanner/misc/easycafe_server_fileaccess
- auxiliary/scanner/misc/freeswitch_event_socket_login
- auxiliary/scanner/misc/ibm_mq_channel_brute
- auxiliary/scanner/misc/ibm_mq_enum
- auxiliary/scanner/misc/ibm_mq_login
- auxiliary/scanner/misc/ib_service_mgr_info
- auxiliary/scanner/misc/java_jmx_server
- auxiliary/scanner/misc/java_rmi_server
- auxiliary/scanner/misc/oki_scanner
- auxiliary/scanner/misc/poisonivy_control_scanner
- auxiliary/scanner/misc/raysharp_dvr_passwords
- auxiliary/scanner/misc/rosewill_rxs3211_passwords
- auxiliary/scanner/misc/sercomm_backdoor_scanner
- auxiliary/scanner/misc/sunrpc_portmapper
- auxiliary/scanner/misc/zenworks_preboot_fileaccess
- auxiliary/admin/misc/sercomm_dump_config
- auxiliary/admin/misc/wol
- auxiliary/dos/misc/dopewars
- auxiliary/dos/misc/ibm_sametime_webplayer_dos
- auxiliary/dos/misc/ibm_tsm_dos
- auxiliary/dos/misc/memcached
- auxiliary/gather/avtech744_dvr_accounts
- auxiliary/gather/c2s_dvr_password_disclosure
- exploit/linux/http/mvpower_dvr_shell_exec
Authors
- Tyler Bennett - Talos Consulting
- Jake Reynolds - Depth Security
- Jon Hart <jon_hart[at]rapid7.com>
- Nathan McBride
Version
This page has been produced using Metasploit Framework version 6.2.7-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.