Vulnerabilities > CVE-2007-5580 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Cisco Security Agent

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
CWE-119
critical
nessus

Summary

Buffer overflow in a certain driver in Cisco Security Agent 4.5.1 before 4.5.1.672, 5.0 before 5.0.0.225, 5.1 before 5.1.0.106, and 5.2 before 5.2.0.238 on Windows allows remote attackers to execute arbitrary code via a crafted SMB packet in a TCP session on port (1) 139 or (2) 445.

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 idCISCO_CSA_BUFFER_OVERFLOW.NASL
descriptionThe version of Cisco Security Agent installed on the remote host is affected by a buffer overflow vulnerability. By sending a specially- crafted SMB request to the agent, an unauthenticated attacker may be able to execute arbitrary code with SYSTEM level privileges.
last seen2020-06-01
modified2020-06-02
plugin id32131
published2008-05-02
reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/32131
titleCisco Security Agent for Microsoft Windows Crafted SMB Packet Remote Overflow
code
#
#  (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(32131);
  script_version("1.18");
  script_cvs_date("Date: 2018/11/15 20:50:26");

  script_cve_id("CVE-2007-5580");
  script_bugtraq_id(26723);

  script_name(english:"Cisco Security Agent for Microsoft Windows Crafted SMB Packet Remote Overflow");
  script_summary(english:"Checks Cisco Security Agent version");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote Windows host has an application that is affected by a
buffer overflow vulnerability."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The version of Cisco Security Agent installed on the remote host is
affected by a buffer overflow vulnerability.  By sending a specially-
crafted SMB request to the agent, an unauthenticated attacker may be
able to execute arbitrary code with SYSTEM level privileges."
  );
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/484669");
  # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20071205-csa
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b5815fea");
  script_set_attribute(
    attribute:"solution",
    value:
"- Cisco Security Agent version 4.5.1, upgrade to 4.5.1.672
 - Cisco Security Agent version 5.0,   upgrade to 5.0.0.225
 - Cisco Security Agent version 5.1,   upgrade to 5.1.0.106
 - Cisco Security Agent version 5.2,   upgrade to 5.2.0.238"
  );
  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:"2007/12/05");
  script_set_attribute(attribute:"patch_publication_date", value:"2007/12/05");
  script_set_attribute(attribute:"plugin_publication_date", value:"2008/05/02");

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

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

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

  script_dependencies("cisco_csa_installed.nasl");
  script_require_keys("SMB/Cisco Security Agent/Path", "SMB/Cisco Security Agent/Version");

  exit(0);
}

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

version = get_kb_item_or_exit('SMB/Cisco Security Agent/Version');
path = get_kb_item_or_exit('SMB/Cisco Security Agent/Path');

# Check for Cisco CSA Version
v = split(version, sep:".", keep:FALSE);

if (
  ( int(v[0]) < 4 ) ||
  ( int(v[0]) == 4 && int(v[1])  < 5 ) ||
  ( int(v[0]) == 4 && int(v[1]) == 5 && int(v[2]) < 1 ) ||
  ( int(v[0]) == 4 && int(v[1]) == 5 && int(v[2]) == 1 && int(v[3]) < 672 ) ||
  ( int(v[0]) == 5 && int(v[1]) == 0 && int(v[2]) == 0 && int(v[3]) < 225 ) ||
  ( int(v[0]) == 5 && int(v[1]) == 1 && int(v[2]) == 0 && int(v[3]) < 106 ) ||
  ( int(v[0]) == 5 && int(v[1]) == 2 && int(v[2]) == 0 && int(v[3]) < 238 )
)
{
  if (report_verbosity > 0)
  {
    report =
      '\n  Path              : ' + path +
      '\n  Installed version : ' + version +
      '\n  Fixed version     : ' + fix + '\n';
    security_hole(port:get_kb_item('SMB/transport'), extra:report);
  }
  else security_hole(port:get_kb_item('SMB/transport'));
  exit(0);
}
else audit(AUDIT_INST_PATH_NOT_VULN, 'Cisco Security Agent', version, path);

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 26723 CVE(CAN) ID: CVE-2007-5580 Cisco Security Agent是为服务器和桌面计算系统提供威胁防护的安全软件代理。 CSA for Windows在处理畸形的SMB数据包时存在漏洞,远程攻击者可能利用此漏洞控制安装了CSA的系统。 CSA for Windows版本所带的一个驱动程序在处理SMB请求报文时没有正确检查用户提供的数据长度,可能触发一个系统内核中的栈溢出。远程攻击者可以造成安装了CSA的系统重启、蓝屏。通过精心构造数据,攻击者可能远程执行任意指令,从而完全控制系统。 CSA默认允许访问TCP 139和445端口。攻击者仅仅需要建立TCP 139和445端口的连接,发送单包而无需认证即可完成攻击。需要创建TCP会话才能触发这个漏洞,也就是必须完成TCP三重握手。 Cisco Security Agent for Windows 5.2 Cisco Security Agent for Windows 5.1 Cisco Security Agent for Windows 5.0 Cisco Security Agent for Windows 4.5.1 临时解决方法: * 限制对TCP 139和445端口的访问 厂商补丁: Cisco ----- Cisco已经为此发布了一个安全公告(cisco-sa-20071205-csa)以及相应补丁: cisco-sa-20071205-csa:Cisco Security Agent for Windows System Driver Remote Buffer Overflow Vulnerability 链接:<a href=http://www.cisco.com/warp/public/707/cisco-sa-20071205-csa.shtml target=_blank>http://www.cisco.com/warp/public/707/cisco-sa-20071205-csa.shtml</a> 补丁下载: <a href=http://www.cisco.com/cgi-bin/tablebuild.pl/csahf-crypto?psrtdcat20e2 target=_blank>http://www.cisco.com/cgi-bin/tablebuild.pl/csahf-crypto?psrtdcat20e2</a> <a href=http://www.cisco.com/cgi-bin/tablebuild.pl/cmva-3des?psrtdcat20e2 target=_blank>http://www.cisco.com/cgi-bin/tablebuild.pl/cmva-3des?psrtdcat20e2</a> <a href=http://www.cisco.com/cgi-bin/tablebuild.pl/csm-app?psrtdcat20e2 target=_blank>http://www.cisco.com/cgi-bin/tablebuild.pl/csm-app?psrtdcat20e2</a>
idSSV:2551
last seen2017-11-19
modified2007-12-09
published2007-12-09
reporterRoot
titlePolDoc CMS 0.96 (download_file.php) File Disclosure Vulnerability