ePolicy Orchestrator HTTP /spipe/pkg/ Source Header Remote Overflow - Nessus

Critical   Plugin ID: 22494

This page contains detailed information about the ePolicy Orchestrator HTTP /spipe/pkg/ Source Header Remote Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 22494
Name: ePolicy Orchestrator HTTP /spipe/pkg/ Source Header Remote Overflow
Filename: epolicy_orchestrator_overflow.nasl
Vulnerability Published: 2006-10-02
This Plugin Published: 2006-10-03
Last Modification Time: 2018-07-10
Plugin Version: 1.18
Plugin Type: local
Plugin Family: Web Servers
Dependencies: smb_hotfixes.nasl
Required KB Items [?]: SMB/Registry/Enumerated

Vulnerability Information


Severity: Critical
Vulnerability Published: 2006-10-02
Patch Published: N/A
CVE [?]: CVE-2006-5156
CPE [?]: cpe:/a:mcafee:epolicy_orchestrator

Synopsis

Arbitrary code can be executed on the remote host due to a flaw in the web service.

Description

The remote host is running McAfee ePolicy Orchestrator web service.

The remote version of this software contains a stack overflow vulnerability.

An unauthenticated attacker can exploit this flaw by sending a specialy crafted packet to the remote host. A successful exploitation of this vulnerability would result in remote code execution with SYSTEM privileges.

Solution

Install ePO 3.5.0 Patch 6.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the ePolicy Orchestrator HTTP /spipe/pkg/ Source Header Remote Overflow vulnerability:

  1. Metasploit: exploit/windows/http/mcafee_epolicy_source
    [McAfee ePolicy Orchestrator / ProtectionPilot Overflow]
  2. Exploit-DB: exploits/windows_x86/remote/16783.rb
    [EDB-16783: McAfee ePolicy Orchestrator / ProtectionPilot - Remote Overflow (Metasploit)]
  3. GitHub: https://github.com/trend-anz/Deep-Security-CVE-to-IPS-Mapper
    [CVE-2006-5156]

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:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.3 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.3 (High)

Go back to menu.

Plugin Source


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

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

include("compat.inc");

if (description)
{
 script_id(22494);
 script_version("1.18");
 script_cvs_date("Date: 2018/07/10 14:27:33");

 script_cve_id("CVE-2006-5156");
 script_bugtraq_id(20288);

 script_name(english:"ePolicy Orchestrator HTTP /spipe/pkg/ Source Header Remote Overflow");
 script_summary(english:"Determines the version of ePO");

 script_set_attribute(attribute:"synopsis", value:
"Arbitrary code can be executed on the remote host due to a flaw in the
web service.");
 script_set_attribute(attribute:"description", value:
"The remote host is running McAfee ePolicy Orchestrator web service.

The remote version of this software contains a stack overflow
vulnerability.

An unauthenticated attacker can exploit this flaw by sending a
specialy crafted packet to the remote host. A successful exploitation
of this vulnerability would result in remote code execution with
SYSTEM privileges.");
 # http://web.archive.org/web/20061013072500/http://www.remote-exploit.org/advisories/mcafee-epo.pdf
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?74be4c95");
 script_set_attribute(attribute:"solution", value:"Install ePO 3.5.0 Patch 6.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
 script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"true");
 script_set_attribute(attribute:"exploit_framework_core", value:"true");
 script_set_attribute(attribute:"metasploit_name", value:'McAfee ePolicy Orchestrator / ProtectionPilot Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

 script_set_attribute(attribute:"vuln_publication_date", value:"2006/10/02");
 script_set_attribute(attribute:"plugin_publication_date", value:"2006/10/03");

 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_copyright(english:"This script is Copyright (C) 2006-2018 Tenable Network Security, Inc.");
 script_family(english:"Web Servers");
 script_dependencies("smb_hotfixes.nasl");
 script_require_keys("SMB/Registry/Enumerated");
 script_require_ports(139, 445);
 exit(0);
}


include("smb_func.inc");
include("audit.inc");

if ( ! get_kb_item("SMB/Registry/Enumerated") ) exit(0);


name 	=  kb_smb_name();
login	=  kb_smb_login();
pass  	=  kb_smb_password();
domain 	=  kb_smb_domain();
port    =  kb_smb_transport();
#if(!get_port_state(port))exit(0);

#soc = open_sock_tcp(port);

#if ( ! soc ) exit(0);

#session_init(socket:soc, hostname:name);
if(!smb_session_init()) audit(AUDIT_FN_FAIL, 'smb_session_init');

r = NetUseAdd(login:login, password:pass, domain:domain, share:"IPC$");
if ( r != 1 ) exit(1);

hklm = RegConnectRegistry(hkey:HKEY_LOCAL_MACHINE);
if ( isnull(hklm) )
{
 NetUseDel();
 exit(1);
}


key_h = RegOpenKey(handle:hklm, key:"SOFTWARE\Network Associates\ePolicy Orchestrator", mode:MAXIMUM_ALLOWED);
if ( isnull(key_h) )
{
 RegCloseKey(handle:hklm);
 NetUseDel();
 exit(0);
}

item = RegQueryValue(handle:key_h, item:"InstallFolder");
RegCloseKey(handle:key_h);
RegCloseKey(handle:hklm);
NetUseDel(close:FALSE);
if ( isnull(item) ) {
 NetUseDel();
 exit(0);
}

rootfile = item[1];
share = ereg_replace(pattern:"^([A-Za-z]):.*", replace:"\1$", string:rootfile);
exe =  ereg_replace(pattern:"^[A-Za-z]:(.*)", replace:"\1", string:rootfile) + "\NaiMServ.Exe";

r = NetUseAdd(login:login, password:pass, domain:domain, share:share);
if ( r != 1 )
{
 NetUseDel();
 exit(1);
}

handle = CreateFile (file:exe, desired_access:GENERIC_READ, file_attributes:FILE_ATTRIBUTE_NORMAL,
                     share_mode:FILE_SHARE_READ, create_disposition:OPEN_EXISTING);
if( ! isnull(handle) )
{
 version = GetFileVersion(handle:handle);
 CloseFile(handle:handle);
 if ( ! isnull(version) )
 {
  if ( (version[0] < 3) ||
       (version[0] == 3 && version[1] <= 5) ||
       (version[0] == 3 && version[1] == 5 && version[2] == 0 && version[3] <  715) )
 	security_hole(port);
 }
}
NetUseDel();

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

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

Go back to menu.

How to Run


Here is how to run the ePolicy Orchestrator HTTP /spipe/pkg/ Source Header Remote Overflow 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 Web Servers plugin family.
  6. On the right side table select ePolicy Orchestrator HTTP /spipe/pkg/ Source Header Remote Overflow plugin ID 22494.
  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 epolicy_orchestrator_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - epolicy_orchestrator_overflow.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 epolicy_orchestrator_overflow.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 68933 - McAfee ePolicy Orchestrator < 4.6.7 Multiple XSS
  • 66319 - McAfee ePolicy Orchestrator 4.6.x Multiple Vulnerabilities (SB10042)
  • 73833 - McAfee ePolicy Orchestrator OpenSSL Information Disclosure (SB10071) (Heartbleed)
  • 76145 - McAfee ePolicy Orchestrator Multiple OpenSSL Vulnerabilities (SB10075)
  • 88624 - McAfee ePolicy Orchestrator Java Object Deserialization RCE
  • 141833 - McAfee ePolicy Orchestrator (SB10332)

Version


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

Go back to menu.