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:	

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.


References


See Also


Check also the following modules related to this module:

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.