Lucene search
K

McAfee ePolicy Orchestrator Agent Remote Log Detection

🗓️ 16 Feb 2017 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 343 Views

McAfee ePolicy Orchestrator Agent Remote Log Detection. Allows remote access to ePO Agent logs

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

include("compat.inc");

if (description)
{
  script_id(97212);
  script_version("1.10");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/10/12");

  script_xref(name:"IAVT", value:"0001-T-0876");

  script_name(english:"McAfee ePolicy Orchestrator Agent Remote Log Detection");
  script_summary(english:"McAfee ePO Agent remote log detection.");

  script_set_attribute(attribute:"synopsis", value:
"A security management application agent running on the remote host
allows remote access to its logs.");
  script_set_attribute(attribute:"description", value:
"McAfee ePolicy Orchestrator (ePO) Agent is running on the remote host,
and its logs are viewable by unauthenticated, remote users. This is
not the default behavior.");
  # Agents are managed by ePolicy Orchestrator
  script_set_attribute(attribute:"see_also", value:"https://www.mcafee.com/enterprise/en-us/products/epolicy-orchestrator.html");
  script_set_attribute(attribute:"solution", value:"n/a");
  script_set_attribute(attribute:"risk_factor", value:"None");

  script_set_attribute(attribute:"plugin_publication_date", value:"2017/02/16");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:mcafee:epolicy_orchestrator_agent");
  script_set_attribute(attribute:"asset_inventory", value:"True");
  script_set_attribute(attribute:"asset_inventory_category", value:"software_enumeration");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Misc.");

  script_copyright(english:"This script is Copyright (C) 2017-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("http_version.nasl");
  script_require_ports("Services/www", 8081);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");

app = "McAfee ePO Agent";
port = get_http_port(default:8081, embedded:TRUE);
dir = "/";

# see if agent log is accessible
res = http_send_recv3(
  method : "GET",
  port   : port,
  item   : dir
);

if (empty_or_null(res) || "200" >!< res[0]) audit(AUDIT_NOT_DETECT, app, port);

status = NULL;
body = NULL;
pattern = NULL;
# Note: the regexes below could apply to more versions than listed
# 4.8.0.x
if (res[2] =~ "^<\?xml")
{
  status = res[0];
  body = res[2]; # grab xml

  # another banner grab
  res = http_send_recv3(
    method : "GET",
    port   : port,
    item   : "/frameworklog.xsl"
  );

  if (!empty_or_null(res) &&
    "200" >< res[0] &&
    "McAfee Agent Activity Log" >< res[2]
  )
  {
    found = strstr(res[2], "<version>");
    if (!isnull(found)) res[2] = found; # shorten response
    # xml
    pattern = ".*<version>([0-9\.]+)<\/version>.*";
  }
}
# 5.0.4.x
else
{
  if ("McAfee Agent Activity Log" >< res[2])
  {
    # grab version from another page
    res = http_send_recv3(
      method : "GET",
      port   : port,
      item   : "/agentlog.json"
    );

    if (!empty_or_null(res))
    {
      # JSON
      pattern = '"Version":"([0-9\\.]+)"';
      status = res[0];
      body = res[2];
    }
  }
}

version = NULL;
if (!isnull(body) && "200" >< status && !isnull(pattern))
{
  # extract version
  match = pregmatch(pattern:pattern, string:body, icase:TRUE);
  if (!isnull(match)) version = match[1];
}

if (isnull(version)) audit(AUDIT_NOT_DETECT, app, port);

register_install(app_name:app, path:dir, vendor: 'McAfee', product: 'ePolicy Orchestrator Agent', version:version, port:port, webapp:TRUE, cpe: "cpe:/a:mcafee:epolicy_orchestrator_agent");
report_installs(app_name:app, port:port);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

12 Oct 2022 00:00Current
5.5Medium risk
Vulners AI Score5.5
343