McAfee Security-as-a-Service (SaaS) mcCIOScn.dll ShowReport Method Remote Command Execution - Nessus

High   Plugin ID: 57713

This page contains detailed information about the McAfee Security-as-a-Service (SaaS) mcCIOScn.dll ShowReport Method Remote Command Execution Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 57713
Name: McAfee Security-as-a-Service (SaaS) mcCIOScn.dll ShowReport Method Remote Command Execution
Filename: mcafee_mycioscn_activex_rce.nasl
Vulnerability Published: 2012-01-12
This Plugin Published: 2012-01-27
Last Modification Time: 2018-11-15
Plugin Version: 1.7
Plugin Type: local
Plugin Family: Windows
Dependencies: smb_hotfixes.nasl
Required KB Items [?]: SMB/Registry/Enumerated

Vulnerability Information


Severity: High
Vulnerability Published: 2012-01-12
Patch Published: 2012-01-12
CVE [?]: N/A
CPE [?]: cpe:/a:mcafee:saas_endpoint_protection

Synopsis

The remote Windows host has an ActiveX control that could be abused to execute arbitrary code remotely.

Description

The myCIOScn.dll ActiveX control, installed on the remote Windows host as part of McAfee Security-as-a-Service (SaaS) / Total Protection Service, reportedly does not require authentication before executing arbitrary commands passed to its 'ShowReport' method.

If an attacker can trick a user on the affected host into visiting a specially crafted web page, this issue could be leveraged to execute arbitrary code on the host subject to the user's privileges.

Solution

Set the kill bit for the affected control.

Note that McAfee reportedly removed the 'Safe for Scripting' designation for the control in SaaS Endpoint Protection 5.2.2 in August 2011 as part of a fix for a related issue and which should significantly migitate exploitation of this issue. In addition, McAfee plans to address the issue completely at some point in the future by removing the affected code entirely as part of its automatic patching.

Public Exploits


Target Network Port(s): 139, 445
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the McAfee Security-as-a-Service (SaaS) mcCIOScn.dll ShowReport Method Remote Command Execution vulnerability:

  1. Metasploit: exploit/windows/fileformat/mcafee_showreport_exec
    [McAfee SaaS MyCioScan ShowReport Remote Command Execution]
  2. Exploit-DB: exploits/windows/remote/18376.rb
    [EDB-18376: McAfee SaaS MyCioScan ShowReport - Remote Command Execution (Metasploit)]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:M/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:ND
CVSS Base Score:9.3 (High)
Impact Subscore:10.0
Exploitability Subscore:8.6
CVSS Temporal Score:7.7 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.7 (High)

Go back to menu.

Plugin Source


This is the mcafee_mycioscn_activex_rce.nasl nessus plugin source code. This script is Copyright (C) 2012-2018 Tenable Network Security, Inc.

#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


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

  script_bugtraq_id(51397);
  script_xref(name:"EDB-ID", value:"18376");

  script_name(english:"McAfee Security-as-a-Service (SaaS) mcCIOScn.dll ShowReport Method Remote Command Execution");
  script_summary(english:"Checks for the MyCioScan control");
 
  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote Windows host has an ActiveX control that could be abused
to execute arbitrary code remotely."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"The myCIOScn.dll ActiveX control, installed on the remote Windows host
as part of McAfee Security-as-a-Service (SaaS) / Total Protection
Service, reportedly does not require authentication before executing
arbitrary commands passed to its 'ShowReport' method. 

If an attacker can trick a user on the affected host into visiting a
specially crafted web page, this issue could be leveraged to execute 
arbitrary code on the host subject to the user's privileges."
  );
  script_set_attribute(
    attribute:"see_also", 
    value:"https://www.zerodayinitiative.com/advisories/ZDI-12-012/"
  );
  script_set_attribute(
    attribute:"see_also", 
    value:"https://www.securityfocus.com/archive/1/521245/30/0/threaded"
  );
  script_set_attribute(
    attribute:"solution", 
    value:
"Set the kill bit for the affected control.

Note that McAfee reportedly removed the 'Safe for Scripting'
designation for the control in SaaS Endpoint Protection 5.2.2 in
August 2011 as part of a fix for a related issue and which should
significantly migitate exploitation of this issue.  In addition,
McAfee plans to address the issue completely at some point in the
future by removing the affected code entirely as part of its automatic
patching."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:ND");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'McAfee SaaS MyCioScan ShowReport Remote Command Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"vuln_publication_date", value:"2012/01/12");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/01/27");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/01/12");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:mcafee:saas_endpoint_protection");
  script_end_attributes();
 
  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

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

  script_dependencies("smb_hotfixes.nasl");
  script_require_keys("SMB/Registry/Enumerated");
  script_require_ports(139, 445);

  exit(0);
}


include("global_settings.inc");
include("misc_func.inc");
include("smb_func.inc");
include("smb_activex_func.inc");


get_kb_item_or_exit("SMB/Registry/Enumerated");
if (activex_init() != ACX_OK) exit(1, "activex_init() failed.");


clsid = '{209EBDEE-065C-11D4-A6B8-00C04F0D38B7}';


# Locate the file used by the control.
file = activex_get_filename(clsid:clsid);
if (isnull(file))
{
  activex_end();
  exit(1, "activex_get_filename() returned NULL.");
}
if (!file)
{
  activex_end();
  exit(0, "The control is not installed as the class id '"+clsid+"' does not exist on the remote host.");
}


# Get its version.
version = activex_get_fileversion(clsid:clsid);
if (!version) version = "unknown";


# And check it.
info = '';

if (report_paranoia > 1 || activex_get_killbit(clsid:clsid) == 0)
{
  info += '\n  Class identifier  : ' + clsid +
          '\n  Filename          : ' + file + 
          '\n  Installed version : ' + version + '\n';
}
activex_end();


# Report findings.
if (info)
{
  if (report_paranoia > 1)
  {
    report = info +
      '\n' +
      'Note, though, that Nessus did not check whether the kill bit was\n' +
      "set for the control's CLSID because of the Report Paranoia setting" + '\n' +
      'in effect when this scan was run.\n';
  }
  else
  {
    report = info +
      '\n' +
      'Moreover, its kill bit is not set so it is accessible via Internet\n' +
      'Explorer.\n';
  }

  if (report_verbosity > 0) security_hole(port:kb_smb_transport(), extra:report);
  else security_hole(kb_smb_transport());

  exit(0);
}
else exit(0, "Version "+version+" of the control is installed, but its kill bit is set.");

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/mcafee_mycioscn_activex_rce.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\mcafee_mycioscn_activex_rce.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/mcafee_mycioscn_activex_rce.nasl

Go back to menu.

How to Run


Here is how to run the McAfee Security-as-a-Service (SaaS) mcCIOScn.dll ShowReport Method Remote Command Execution as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Windows plugin family.
  6. On the right side table select McAfee Security-as-a-Service (SaaS) mcCIOScn.dll ShowReport Method Remote Command Execution plugin ID 57713.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl mcafee_mycioscn_activex_rce.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a mcafee_mycioscn_activex_rce.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - mcafee_mycioscn_activex_rce.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state mcafee_mycioscn_activex_rce.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 81247 - McAfee DLPe Agent Privilege Escalation Vulnerability on Windows XP (SB10097)
  • 135972 - McAfee Endpoint Security for Windows 10.5.x < 10.5.5 Security Hotfix 129256 / 10.6.x < 10.6.1 April 2020 Update / 10.7.x < 10.7.0 April 2020 Update Multiple Vulnerabilities (SB10309)
  • 67120 - McAfee ePO Extension for McAfee Agent Multiple Blind SQL Injection (SB10043)
  • 88624 - McAfee ePolicy Orchestrator Java Object Deserialization RCE
  • 141833 - McAfee ePolicy Orchestrator (SB10332)
  • 95469 - McAfee Host Intrusion Prevention Services < 8.0.0.3828 Authentication Bypass (SB10173)
  • 103529 - McAfee Security Scan Plus < 3.11.599.3 LiveSafe Non-certificate-based Authentication HTTP Backend-response Handling MitM Registry Value Manipulation (TS102723)
  • 102355 - McAfee Security Scan Plus < 3.11.587.1 Protection Level UI Element Download MitM Command Execution (TS102714)
  • 65942 - McAfee Virtual Technician McHealthCheck.dll ActiveX Control Save() Method Arbitrary File Overwrite (SB10040)
  • 61719 - McAfee Virtual Technician ActiveX Control GetObject() Method Remote Command Execution (SB10028)
  • 89940 - McAfee VirusScan Enterprise < 8.8 Patch 7 Protected Resource Access Bypass (SB10151)
  • 91310 - McAfee VirusScan Enterprise < 8.8 Patch 6/7 Hotfix 1123565 Protection Bypass Vulnerability (SB10158)
  • 24012 - Acer LunchApp.APlunch ActiveX Arbitrary Command Execution
  • 34393 - CA BrightStor ARCserve Backup RPC Interface (asdbapi.dll) Traversal Arbitrary Command Execution
  • 62392 - Flexera AdminStudio LaunchProcess Function ActiveX Control Remote Command Execution
  • 80306 - Git for Windows .git/config Command Execution
  • 102494 - Git for Windows 2.7.x < 2.7.6 / 2.8.x < 2.8.6 / 2.9.x < 2.9.5 / 2.10.x < 2.10.4 / 2.11.x < 2.11.13 / 2.12.x < 2.12.4 / 2.13.x < 2.13.5 / 2.14.x < 2.14.1 Malicious SSH URL Command Execution
  • 80202 - GitHub for Windows < 2.6.5 .git/config Command Execution
  • 35689 - Google Chrome < 1.0.154.48 Cross-browser Command Execution
  • 38664 - Intel Common Base Agent CreateProcessA() Function Remote Command Execution
  • 66840 - Siemens Solid Edge WPHelper ActiveX Control OpenInEditor Method Arbitrary Command Execution
  • 80333 - Microsoft Visual Studio .gitconfig Command Execution

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file mcafee_mycioscn_activex_rce.nasl version 1.7. For more plugins, visit the Nessus Plugin Library.

Go back to menu.