Vulnerabilities > CVE-2015-0922 - Information Exposure vulnerability in Mcafee Epolicy Orchestrator

047910
CVSS 5.0 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
NONE
Availability impact
NONE
network
low complexity
mcafee
CWE-200
nessus
metasploit

Summary

McAfee ePolicy Orchestrator (ePO) before 4.6.9 and 5.x before 5.1.2 uses the same secret key across different customers' installations, which allows attackers to obtain the administrator password by leveraging knowledge of the encrypted password.

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Subverting Environment Variable Values
    The attacker directly or indirectly modifies environment variables used by or controlling the target software. The attacker's goal is to cause the target software to deviate from its expected operation in a manner that benefits the attacker.
  • Footprinting
    An attacker engages in probing and exploration activity to identify constituents and properties of the target. Footprinting is a general term to describe a variety of information gathering techniques, often used by attackers in preparation for some attack. It consists of using tools to learn as much as possible about the composition, configuration, and security mechanisms of the targeted application, system or network. Information that might be collected during a footprinting effort could include open ports, applications and their versions, network topology, and similar information. While footprinting is not intended to be damaging (although certain activities, such as network scans, can sometimes cause disruptions to vulnerable applications inadvertently) it may often pave the way for more damaging attacks.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Browser Fingerprinting
    An attacker carefully crafts small snippets of Java Script to efficiently detect the type of browser the potential victim is using. Many web-based attacks need prior knowledge of the web browser including the version of browser to ensure successful exploitation of a vulnerability. Having this knowledge allows an attacker to target the victim with attacks that specifically exploit known or zero day weaknesses in the type and version of the browser used by the victim. Automating this process via Java Script as a part of the same delivery system used to exploit the browser is considered more efficient as the attacker can supply a browser fingerprinting method and integrate it with exploit code, all contained in Java Script and in response to the same web page request by the browser.
  • Session Credential Falsification through Prediction
    This attack targets predictable session ID in order to gain privileges. The attacker can predict the session ID used during a transaction to perform spoofing and session hijacking.

Metasploit

descriptionThis module will exploit an authenticated XXE vulnerability to read the keystore.properties off of the filesystem. This properties file contains an encrypted password that is set during installation. What is interesting about this password is that it is set as the same password as the database 'sa' user and of the admin user created during installation. This password is encrypted with a static key, and is encrypted using a weak cipher (ECB). By default, if installed with a local SQL Server instance, the SQL Server is listening on all interfaces. Recovering this password allows an attacker to potentially authenticate as the 'sa' SQL Server user in order to achieve remote command execution with permissions of the database process. If the administrator has not changed the password for the initially created account since installation, the attacker will have the password for this account. By default, 'admin' is recommended. Any user account can be used to exploit this, all that is needed is a valid credential. The most data that can be successfully retrieved is 255 characters due to length restrictions on the field used to perform the XXE attack.
idMSF:AUXILIARY/GATHER/MCAFEE_EPO_XXE
last seen2020-06-02
modified2018-09-15
published2015-01-14
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/auxiliary/gather/mcafee_epo_xxe.rb
titleMcAfee ePolicy Orchestrator Authenticated XXE Credentials Exposure

Nessus

NASL familyWindows
NASL idMCAFEE_EPO_SB10095.NASL
descriptionThe version of McAfee ePolicy Orchestrator (ePO) installed on the remote Windows host is 4.x prior to 4.6.9 or 5.x prior to 5.1.2. It is, therefore, affected by multiple vulnerabilities : - An XXE (XML External Entity) injection vulnerability exists in the Server Task Log due to an incorrectly configured XML parser accepting XML external entities from an untrusted source. A remote, authenticated attacker, by sending specially crafted XML data via the
last seen2020-06-01
modified2020-06-02
plugin id81106
published2015-01-30
reporterThis script is Copyright (C) 2015-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/81106
titleMcAfee ePolicy Orchestrator 4.x < 4.6.9 / 5.x < 5.1.2 Multiple Vulnerabilities (SB10095)
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(81106);
  script_version("1.9");
  script_cvs_date("Date: 2018/11/15 20:50:27");

  script_cve_id("CVE-2015-0921", "CVE-2015-0922");
  script_bugtraq_id(71881, 72298);
  script_xref(name:"MCAFEE-SB", value:"SB10095");

  script_name(english:"McAfee ePolicy Orchestrator 4.x <  4.6.9 / 5.x < 5.1.2 Multiple Vulnerabilities (SB10095)");
  script_summary(english:"Checks the version of ePolicy Orchestrator.");

  script_set_attribute(attribute:"synopsis", value:
"A security management application installed on the remote host is
affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The version of McAfee ePolicy Orchestrator (ePO) installed on the
remote Windows host is 4.x prior to 4.6.9 or 5.x prior to 5.1.2. It
is, therefore, affected by multiple vulnerabilities :

  - An XXE (XML External Entity) injection vulnerability
    exists in the Server Task Log due to an incorrectly
    configured XML parser accepting XML external entities
    from an untrusted source. A remote, authenticated
    attacker, by sending specially crafted XML data via the
    'conditionXML' parameter, can gain access to arbitrary
    files. (CVE-2015-0921)

  - An information disclosure vulnerability exists due to
    the use of a shared secret key to encrypt password
    information. A remote attacker with knowledge of the key
    can decrypt the administrator password. (CVE-2015-0922)");
  script_set_attribute(attribute:"see_also", value:"https://kc.mcafee.com/corporate/index?page=content&id=SB10095");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2015/Jan/37");
  script_set_attribute(attribute:"solution", value:
"Upgrade to McAfee ePO version 4.6.9 / 5.1.2 or later, or apply the
vendor-supplied workaround.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2015/01/06");
  script_set_attribute(attribute:"patch_publication_date", value:"2015/01/09");
  script_set_attribute(attribute:"plugin_publication_date", value:"2015/01/30");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:mcafee:epolicy_orchestrator");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2015-2018 Tenable Network Security, Inc.");

  script_dependencies("mcafee_epo_installed.nasl");
  script_require_keys("SMB/mcafee_epo/Path", "SMB/mcafee_epo/ver");
  script_require_ports("SMB/transport", 139, 445);

  exit(0);
}

include("audit.inc");
include("misc_func.inc");
include("smb_func.inc");
include("smb_hotfixes.inc");
include("smb_hotfixes_fcheck.inc");
include("smb_reg_query.inc");

get_kb_item_or_exit("SMB/Registry/Enumerated");

app_name = "McAfee ePO";
version = get_kb_item_or_exit("SMB/mcafee_epo/ver");
path =  get_kb_item_or_exit("SMB/mcafee_epo/Path");
port = get_kb_item_or_exit("SMB/transport");
patch = FALSE;
vuln = FALSE;

registry_init();
hklm = registry_hive_connect(hive:HKEY_LOCAL_MACHINE, exit_on_fail:TRUE);
key = "SOFTWARE\Network Associates\ePolicy Orchestrator\InstallFolder";

path = get_registry_value(handle:hklm, item:key);
RegCloseKey(handle:hklm);
if (isnull(path))
{
  close_registry();
  audit(AUDIT_NOT_INST, app_name);
}

orig_path = path;

if ('PROGRA~' >< path)
{
  path = ereg_replace(string:path, pattern:"PROGRA~\d+", replace:"Program Files");
  path = ereg_replace(string:path, pattern:"EPOLIC~\d+", replace:"ePolicy Orchestrator");
}
properties = path + "Server\webapps\core\WEB-INF\mvcactions.xml";
workaround = hotfix_get_file_contents(properties);
err_res = hotfix_handle_error(error_code:workaround['error'], file:properties, exit_on_fail:FALSE);
if (!isnull(err_res))
{
  arch = get_kb_item_or_exit('SMB/ARCH');;
  if (arch == "x64")
  {
    path = orig_path;
    if ('PROGRA~' >< path)
    {
      path = ereg_replace(string:path, pattern:"PROGRA~\d+", replace:"Program Files (x86)");
      path = ereg_replace(string:path, pattern:"EPOLIC~\d+", replace:"ePolicy Orchestrator");
    }
    properties = path + "Server\webapps\core\WEB-INF\mvcactions.xml";
    workaround = hotfix_get_file_contents(properties);
    err_res = hotfix_handle_error(error_code:workaround['error'], file:properties, exit_on_fail:TRUE);
  }
}
hotfix_check_fversion_end();

#
# See Mitigation for ePO 4.6.x and 5.x.x servers:
# https://kc.mcafee.com/corporate/index?page=content&id=SB10095
# Check <ePO_installation_directory>\Server\webapps\core\WEB-INF directory for
# mvcactions.xml, then look for a line containing the following :
# -
# workaround no applied
# <action name="orionUpdateTableFilter.do" execute="updateFilter" checkSecurityToken="true"/>
# +
# workaround applied
# <!-- <action name="orionUpdateTableFilter.do" execute="updateFilter" checkSecurityToken="true"/> -->
#

data = workaround['data'];
pattern = '<!-- <action name=\"orionUpdateTableFilter.do\" execute=\"updateFilter\" checkSecurityToken=\"true\"/> -->';
item = eregmatch(pattern:pattern, string:data);
if (!isnull(item))
{
  patch = TRUE;
}

if (version == UNKNOWN_VER)
  audit(AUDIT_UNKNOWN_APP_VER, app_name);

if (version =~ "^4\.[56]\." && ver_compare(ver:version, fix:"4.6.9", strict:FALSE) == -1)
  vuln = TRUE;

if (version =~ "^5\.[01]\." && ver_compare(ver:version, fix:"5.1.2", strict:FALSE) == -1)
  vuln = TRUE;

if (patch == FALSE && vuln == TRUE)
{
  if (report_verbosity > 0)
  {
    report =
      '\n  Installation Path : ' + path +
      '\n  Installed version : ' + version +
      '\n  Fixed version     : See solution.\n';

    security_warning(port:port, extra:report);
  }
  else security_warning(port);
}
else audit(AUDIT_INST_PATH_NOT_VULN, app_name, version, path);