Vulnerabilities > CVE-2010-0138 - Buffer Errors vulnerability in Cisco Ciscoworks Internetwork Performance Monitor 2.4/2.5

047910
CVSS 10.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
cisco
microsoft
CWE-119
critical
nessus

Summary

Buffer overflow in Cisco CiscoWorks Internetwork Performance Monitor (IPM) 2.6 and earlier on Windows, as distributed in CiscoWorks LAN Management Solution (LMS), allows remote attackers to execute arbitrary code via a malformed getProcessName CORBA General Inter-ORB Protocol (GIOP) request, related to a "third-party component," aka Bug ID CSCsv62350.

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 idCISCOWORKS_IPM_20100120.NASL
descriptionThe version of CiscoWorks Internetwork Performance Monitor installed on the remote Windows host is less than or equal to 2.6. Such versions are potentially affected by a buffer overflow vulnerability when processing Common Object Request Broker Architecture GIOP requests. By exploiting this flaw, a remote, unauthenticated attacker could execute arbitrary code subject to the privileges of the user running the affected application.
last seen2020-06-01
modified2020-06-02
plugin id69447
published2013-08-22
reporterThis script is Copyright (C) 2013-2019 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/69447
titleCiscoWorks Internetwork Performance Monitor CORBA GIOP Overflow
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(69447);
  script_version("1.7");
  script_cvs_date("Date: 2019/09/26 15:14:18");

  script_cve_id("CVE-2010-0138");
  script_bugtraq_id(37879);

  script_name(english:"CiscoWorks Internetwork Performance Monitor CORBA GIOP Overflow");
  script_summary(english:"Checks version of CiscoWorks IPM");

  script_set_attribute(attribute:"synopsis", value:
"The remote host has an application installed that is affected by a
buffer overflow vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of CiscoWorks Internetwork Performance Monitor installed 
on the remote Windows host is less than or equal to 2.6.  Such 
versions are potentially affected by a buffer overflow vulnerability
when processing Common Object Request Broker Architecture GIOP 
requests.  By exploiting this flaw, a remote, unauthenticated attacker
could execute arbitrary code subject to the privileges of the user
running the affected application.");
  script_set_attribute(attribute:"see_also", value:"https://www.cisco.com/c/en/us/support/docs/csa/cisco-sa-20100120-ipm.html");
  script_set_attribute(attribute:"solution", value:
"Contact the vendor for instructions on migrating to non-vulnerable
software.");
  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: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_cwe_id(119);

  script_set_attribute(attribute:"vuln_publication_date", value:"2010/01/20");
  script_set_attribute(attribute:"patch_publication_date", value:"2010/01/20");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/08/22");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:cisco:ciscoworks_internetwork_performance_monitor");
  script_end_attributes();

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

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

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

  exit(0);
}

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

app = 'CiscoWorks Internetwork Performance Monitor';
name   = kb_smb_name();
port   = kb_smb_transport();
login  = kb_smb_login();
pass   = kb_smb_password();
domain = kb_smb_domain();

registry_init();
hklm = registry_hive_connect(hive:HKEY_LOCAL_MACHINE, exit_on_fail:TRUE);
key = "SOFTWARE\Cisco\Resource Manager\CurrentVersion\RootDir\NMSROOT";
path = get_registry_value(handle:hklm, item:key);
RegCloseKey(handle:hklm);

if (isnull(path))
{
  close_registry();
  audit(AUDIT_NOT_INST, app);
}
close_registry(close:FALSE);

if ('PROGRA~1' >< path) path = str_replace(string:path, find:'PROGRA~1', replace:'Program Files');

share = hotfix_path2share(path:path);
inf = ereg_replace(pattern:'^[A-Za-z]:(.*)', replace:"\1\setup\ipm.info", string:path);

rc = NetUseAdd(login:login, password:pass, domain:domain, share:share);
if (rc != 1)
{
  NetUseDel();
  audit(AUDIT_SHARE_FAIL, share);
}

fh = CreateFile(
  file:inf,
  desired_access:GENERIC_READ,
  file_attributes:FILE_ATTRIBUTE_NORMAL,
  share_mode:FILE_SHARE_READ,
  create_disposition:OPEN_EXISTING
);

if (isnull(fh))
{
  NetUseDel();
  audit(AUDIT_UNINST, app);
}

version = NULL;
fsize = GetFileSize(handle:fh);
if (isnull(fsize)) fsize = 10240;
off = 0;
while (off <= fsize)
{
  data = ReadFile(handle:fh, length:10240, offset:off);
  if (strlen(data) == 0) break;

  # Make sure this is for Internetwork Performance Monitor and grab the version
  if ('Internetwork Performance Monitor' >< data && 'VERSION=' >< data)
  {
    version = strstr(data, 'VERSION=') - 'VERSION=';
    version = version - strstr(data, 'PATCHVER');
    version = chomp(version);
    break;
  }
  off += 10240;
}

CloseFile(handle:fh);
NetUseDel();

if (isnull(version) || version !~ '^[0-9\\.]+$') audit(AUDIT_VER_FAIL, (share - '$') + ':' + inf);

if (ver_compare(ver:version, fix:'2.6', strict:FALSE) <= 0)
{
  if (report_verbosity > 0)
  {
    report =
      '\n  Path              : ' + path +
      '\n  Installed version : ' + version + '\n';
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
  exit(0);
}
audit(AUDIT_INST_PATH_NOT_VULN, app, version, path);