Internet Explorer Iframe Sandbox File Name Disclosure Vulnerability - Metasploit
This page contains detailed information about how to use the auxiliary/gather/ie_sandbox_findfiles metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Internet Explorer Iframe Sandbox File Name Disclosure Vulnerability
Module: auxiliary/gather/ie_sandbox_findfiles
Source code: modules/auxiliary/gather/ie_sandbox_findfiles.rb
Disclosure date: 2016-08-09
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): Windows
Target service / protocol: -
Target network port(s): -
List of CVEs: CVE-2016-3321
It was found that Internet Explorer allows the disclosure of local file names. This issue exists due to the fact that Internet Explorer behaves different for file:// URLs pointing to existing and non-existent files. When used in combination with HTML5 sandbox iframes it is possible to use this behavior to find out if a local file exists. This technique only works on Internet Explorer 10 & 11 since these support the HTML5 sandbox. Also it is not possible to do this from a regular website as file:// URLs are blocked all together. The attack must be performed locally (works with Internet zone Mark of the Web) or from a share.
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
msf > use auxiliary/gather/ie_sandbox_findfiles
msf auxiliary(ie_sandbox_findfiles) > exploit
Go back to menu.
Msfconsole Usage
Here is how the gather/ie_sandbox_findfiles auxiliary module looks in the msfconsole:
msf6 > use auxiliary/gather/ie_sandbox_findfiles
msf6 auxiliary(gather/ie_sandbox_findfiles) > show info
Name: Internet Explorer Iframe Sandbox File Name Disclosure Vulnerability
Module: auxiliary/gather/ie_sandbox_findfiles
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2016-08-09
Provided by:
Yorick Koster
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
PATHS Testing/Not/Found/Check.txt, Windows/System32/calc.exe, Program Files (x86)/Mozilla F yes The list of files to check (comma separated).
irefox/firefox.exe, Program Files/VMware/VMware Tools/TPAutoConnSvc.exe
SHARENAME falcon yes The name of the top-level share.
SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
Description:
It was found that Internet Explorer allows the disclosure of local
file names. This issue exists due to the fact that Internet Explorer
behaves different for file:// URLs pointing to existing and
non-existent files. When used in combination with HTML5 sandbox
iframes it is possible to use this behavior to find out if a local
file exists. This technique only works on Internet Explorer 10 & 11
since these support the HTML5 sandbox. Also it is not possible to do
this from a regular website as file:// URLs are blocked all
together. The attack must be performed locally (works with Internet
zone Mark of the Web) or from a share.
References:
https://nvd.nist.gov/vuln/detail/CVE-2016-3321
https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2016/MS16-095
https://securify.nl/advisory/SFY20160301/internet_explorer_iframe_sandbox_local_file_name_disclosure_vulnerability.html
Module Options
This is a complete list of options available in the gather/ie_sandbox_findfiles auxiliary module:
msf6 auxiliary(gather/ie_sandbox_findfiles) > show options
Module options (auxiliary/gather/ie_sandbox_findfiles):
Name Current Setting Required Description
---- --------------- -------- -----------
PATHS Testing/Not/Found/Check.txt, Windows/System32/calc.exe, Program Files (x86)/Mozilla yes The list of files to check (comma separated).
Firefox/firefox.exe, Program Files/VMware/VMware Tools/TPAutoConnSvc.exe
SHARENAME falcon yes The name of the top-level share.
SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
Advanced Options
Here is a complete list of advanced options supported by the gather/ie_sandbox_findfiles auxiliary module:
msf6 auxiliary(gather/ie_sandbox_findfiles) > show advanced
Module advanced options (auxiliary/gather/ie_sandbox_findfiles):
Name Current Setting Required Description
---- --------------- -------- -----------
ListenerComm no The specific communication channel to use for this service
SSLCipher no String for SSL cipher spec - "DHE-RSA-AES256-SHA" or "ADH"
SSLCompression false no Enable SSL/TLS-level compression
SendRobots false no Return a robots.txt file if asked for one
URIHOST no Host to use in URI (useful for tunnels)
URIPORT no Port to use in URI (useful for tunnels)
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 gather/ie_sandbox_findfiles module can do:
msf6 auxiliary(gather/ie_sandbox_findfiles) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the gather/ie_sandbox_findfiles auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(gather/ie_sandbox_findfiles) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
HTML::base64 none no Enable HTML obfuscation via an embeded base64 html object (IE not supported) (Accepted: none, plain, single_pad, double_pad, random_space_injection)
HTML::javascript::escape 0 no Enable HTML obfuscation via HTML escaping (number of iterations)
HTML::unicode none no Enable HTTP obfuscation via unicode (Accepted: none, utf-16le, utf-16be, utf-16be-marker, utf-32le, utf-32be)
HTTP::chunked false no Enable chunking of HTTP responses via "Transfer-Encoding: chunked"
HTTP::compression none no Enable compression of HTTP responses via content encoding (Accepted: none, gzip, deflate)
HTTP::header_folding false no Enable folding of HTTP headers
HTTP::junk_headers false no Enable insertion of random junk HTTP headers
HTTP::no_cache false no Disallow the browser to cache HTTP content
HTTP::server_name Apache yes Configures the Server header of all outgoing replies
TCP::max_send_size 0 no Maximum 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.
does not exist
Here is a relevant code snippet related to the "does not exist" error message:
133: report_note(host: cli.peerhost, type: 'ie.filenames', data: f)
134: print_good("Found file " + f)
135: send_response(cli, '')
136: when /^\/notfound\/\?f=/
137: f = URI.unescape(request.uri.gsub('/notfound/?f=', ''))
138: print_error("The file " + f + " does not exist")
139: send_response(cli, '')
140: when "/"
141: resp = create_response(200, "OK")
142: resp.body = %Q|<html>
143: <head>
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #12354 Merged Pull Request: Remove targets from aux and post modules
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #7194 Merged Pull Request: Add auxiliary module for MS16-095 Internet Explorer Iframe Sandbox File Name Disclosure Vulnerability
References
- CVE-2016-3321
- MS16-095
- https://securify.nl/advisory/SFY20160301/internet_explorer_iframe_sandbox_local_file_name_disclosure_vulnerability.html
See Also
Check also the following modules related to this module:
- auxiliary/gather/ie_uxss_injection
- exploit/windows/browser/ie_cbutton_uaf
- exploit/windows/browser/ie_cgenericelement_uaf
- exploit/windows/browser/ie_createobject
- exploit/windows/browser/ie_execcommand_uaf
- exploit/windows/browser/ie_iscomponentinstalled
- exploit/windows/browser/ie_setmousecapture_uaf
- exploit/windows/browser/ie_unsafe_scripting
- post/windows/manage/ie_proxypac
- auxiliary/gather/alienvault_iso27001_sqli
- auxiliary/gather/alienvault_newpolicyform_sqli
- auxiliary/gather/android_browser_new_tab_cookie_theft
- auxiliary/gather/android_object_tag_webview_uxss
- auxiliary/gather/apple_safari_ftp_url_cookie_theft
- auxiliary/gather/f5_bigip_cookie_disclosure
- exploit/linux/redis/redis_debian_sandbox_escape
- exploit/windows/local/adobe_sandbox_adobecollabsync
Authors
Yorick Koster
Version
This page has been produced using Metasploit Framework version 6.1.41-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.