Vulnerabilities > CVE-2012-4953 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Symantec Antivirus, Endpoint Protection and Scan Engine

047910
CVSS 9.3 - CRITICAL
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
symantec
CWE-119
critical
nessus

Summary

The decomposer engine in Symantec Endpoint Protection (SEP) 11.0, Symantec Endpoint Protection Small Business Edition 12.0, Symantec AntiVirus Corporate Edition (SAVCE) 10.x, and Symantec Scan Engine (SSE) before 5.2.8 does not properly perform bounds checks of the contents of CAB archives, which allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted file.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Nessus

NASL familyWindows
NASL idSYMANTEC_DECOMPOSER_SYM12-017.NASL
descriptionThe version of Symantec Endpoint Protection or Symantec Scan Engine installed on the remote Windows host is potentially affected by a code execution vulnerability. The legacy decomposer engine fails to properly handle bounds-checking when parsing files from some versions of CAB archives.
last seen2020-06-01
modified2020-06-02
plugin id62925
published2012-11-15
reporterThis script is Copyright (C) 2012-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/62925
titleSymantec Legacy Decomposer Code Execution (SYM12-017)
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(62925);
  script_version("1.14");
  script_cvs_date("Date: 2018/11/15 20:50:29");

  script_cve_id("CVE-2012-4953");
  script_bugtraq_id(56399);
  script_xref(name:"CERT", value:"985625");
  script_xref(name:"IAVA", value:"2012-A-0192");

  script_name(english:"Symantec Legacy Decomposer Code Execution (SYM12-017)");
  script_summary(english:"Checks version of Symantec Endpoint Protection / Scan Engine");

  script_set_attribute(attribute:"synopsis", value:
"The remote Windows host has an antivirus application that is affected
by a code execution vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of Symantec Endpoint Protection or Symantec Scan Engine
installed on the remote Windows host is potentially affected by a code
execution vulnerability. The legacy decomposer engine fails to
properly handle bounds-checking when parsing files from some versions
of CAB archives.");
  # https://support.symantec.com/en_US/article.SYMSA1261.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?c758100b");
  # http://clientui-kb.symantec.com/kb//index?page=content&id=TECH200168&actp=RSS
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f9cc0e1b");
  script_set_attribute(attribute:"solution", value:
"For Symantec AntiVirus 10.x, upgrade to Symantec Enpoint Protection
12.1 or later.

For Symantec Enpoint Protection 11.x or 12.0, either run Live Update
to upgrade the decomposer engine to version 1.2.8.4 or upgrade to
Symantec Endpoint Proection 12.1 or later.

For Symantec Scan Engine, upgrade to Symantec Scan Engine 5.2.8 or
later.");
  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: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:"2012/11/05");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/11/07");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/11/15");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:symantec:endpoint_protection");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:symantec:scan_engine");
  script_set_attribute(attribute:"stig_severity", value:"I");
  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("savce_installed.nasl", "symantec_scan_engine_installed.nasl");
  script_require_keys("SMB/Registry/Enumerated");
  script_require_ports(139, 445);
  exit(0);
}

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

sep_version = get_kb_item("Antivirus/SAVCE/version");
sse_version = get_kb_item("Symantec/Symantec Scan Engine/Version");
if (isnull(sep_version) && isnull(sse_version)) exit(0, 'The \'Antivirus/SAVCE/version\' and \'Symantec/Symantec Scan Engine/Version\' KB items are missing.');

info = '';
info2 = '';
# First check Symantec Endpoint
if (sep_version)
{
  ver = split(sep_version, sep:'.');
  for (i=0; i < max_index(ver); i++)
    ver[i] = int(ver[i]);

  if (ver[0] == 10)
  {
    prod = 'Symantec AntiVirus';
    info =
      '\n  Product           : ' + prod +
      '\n  Installed version : ' + sep_version +
      '\n  Fixed version     : 12.1\n';
  }
  else if (
    ver[0] == 11 ||
    (ver[0] == 12 && ver[1] < 1)
  )
  {
    # Check the Decomposer Engine version
    arch = get_kb_item('SMB/ARCH');
    if (!isnull(arch))
    {
      if (arch == 'x64')
      {
        path = hotfix_get_programfilesdirx86();
        if (path) path += "\Common Files\Symantec Shared";
      }
      else
      {
        path = hotfix_get_commonfilesdir();
        if (path) path += "\Symantec Shared";
      }
    }
    if (!path)
    {
      NetUseDel();
      audit(AUDIT_PATH_NOT_DETERMINED, 'Common Files');
    }
    dll = path + "\dec_abi.dll";
    ver = hotfix_get_fversion(path:dll);
    # If the Architecture is 64-bit and the file wasn't in the x86 Common Files dir
    # Check the Common files dir
    if (ver['error'] == HCF_NOENT && arch == 'x64')
    {
      path = hotfix_get_commonfilesdir();
      if (path) path += "\Symantec Shared";
      if (!path)
      {
        NetUseDel();
        audit(AUDIT_PATH_NOT_DETERMINED, 'Common Files');
      }
      dll = path + "\dec_abi.dll";
      ver = hotfix_get_fversion(path:dll);
    }
    if (ver['error'] == HCF_OK)
    {
      version = join(ver['value'], sep:'.');
      if (ver_compare(ver:version, fix:'1.2.8.4', strict:FALSE) == -1)
      {
        info =
          '\n  Product : Symantec Endpoint Protection' +
          '\n  Installed decomposer engine version : ' + version +
          '\n  Fixed decomposer engine version     : 1.2.8.4\n';
      }
      else info2 += 'Symantec Endpoint Protection decomposer engine version ' + version;
    }
  }
  else info2 += 'Symantec Endpoint Protection version ' + version;
}

# Next check Symantec Scan Engine
if (sse_version)
{
  if (ver_compare(ver:sse_version, fix:'5.2.8', strict:FALSE) == -1)
  {
    path = get_kb_item('Symantec/Symantec Scan Engine/Path');
    if (isnull(path)) path = 'n/a';
    info +=
      '\n  Product           : Symantec Scan Engine' +
      '\n  Path              : ' + path +
      '\n  Installed version : ' + sse_version +
      '\n  Fixed version     : 5.2.8\n';
  }
  else
  {
    if (info2)
      info2 += ' and Symantec Scan Engine version ' + sse_version;
  }
}

if (info)
{
  if (report_verbosity > 0) security_hole(port:get_kb_item('SMB/transport'), extra:info);
  else security_hole(get_kb_item('SMB/transport'));
  exit(0);
}
else
{
  if (info2)
  {
    if ('and' >< info2)
      be = 'are';
    else be = 'is';

    exit(0, 'The host is not affected since ' + info2 + ' ' + be + ' installed.');
  }
  else exit(1, 'Unexpected error - \'info2\' is empty.');
}