Vulnerabilities > CVE-2008-3818 - Improper Input Validation vulnerability in Cisco ONS and ONS 15600

047910
CVSS 7.8 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
COMPLETE
network
low complexity
cisco
CWE-20
nessus

Summary

Cisco ONS 15310-CL, 15310-MA, 15327, 15454, 15454 SDH, and 15600 with software 7.0.2 through 7.0.6, 7.2.2, 8.0.x, 8.5.1, and 8.5.2 allows remote attackers to cause a denial of service (control-card reset) via a crafted TCP session.

Common Weakness Enumeration (CWE)

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.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Nessus

NASL familyCISCO
NASL idCISCO_ONS_CVE_2008_3818.NASL
descriptionThe remote Cisco ONS device is affected by a denial of service vulnerability that can be triggered by a specially crafted TCP stream. Successful exploitation will cause a reload of the device
last seen2020-06-01
modified2020-06-02
plugin id69059
published2013-07-25
reporterThis script is Copyright (C) 2013-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/69059
titleCisco ONS Products Remote DoS
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(69059);
  script_version("1.6");
  script_cvs_date("Date: 2018/11/15 20:50:20");

  script_cve_id("CVE-2008-3818");
  script_bugtraq_id(33261);

  script_name(english:"Cisco ONS Products Remote DoS");
  script_summary(english:"Checks software version");

  script_set_attribute(attribute:"synopsis", value:"The remote device is affected by a denial of service vulnerability.");
  script_set_attribute(
    attribute:"description",
    value:
"The remote Cisco ONS device is affected by a denial of service
vulnerability that can be triggered by a specially crafted TCP stream. 
Successful exploitation will cause a reload of the device's control
card."
  );
  script_set_attribute(attribute:"see_also", value:"https://www.cisco.com/c/en/us/support/docs/csa/cisco-sa-20090114-ons.html");
  script_set_attribute(
    attribute:"solution",
    value:
"Upgrade the device software to the appropriate version per the vendor's
advisory."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/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(20);

  script_set_attribute(attribute:"vuln_publication_date", value:"2009/01/14");
  script_set_attribute(attribute:"patch_publication_date", value:"2009/01/14");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/25");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:cisco:ons");
  script_end_attributes();

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

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

  script_dependencies("cisco_ons_detect.nasl");
  script_require_keys("Cisco/ONS/Device", "Cisco/ONS/Version");
  exit(0);
}

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

device = get_kb_item_or_exit("Cisco/ONS/Device");
version = get_kb_item_or_exit("Cisco/ONS/Version");

report = '';

if (
  device =~ "^15310" || device =~ "^15327" ||
  device =~ "^15454" || device =~ "^15600"
)
{
  item = eregmatch(pattern: "^([0-9.]+)-", string:version);
  if (isnull(item)) exit(1, "Error parsing version string.");

  # nb: strip leading zeros
  int_version = eregmatch(pattern:"^0*([1-9][0-9]*)\.([0-9])([0-9])([0-9])?$", string:item[1]);

  if (max_index(int_version) < 4 || isnull(int_version)) exit(1, "Error parsing version string.");

  formatted_ver = join(make_list(int_version[1], int_version[2], int_version[3]), sep:'.');
  if (max_index(int_version) > 4) formatted_ver += "." + int_version[4];

  fix = '';

  if (formatted_ver =~ "^7\.0\.[245]$") fix = '7.0.7';
  else if (formatted_ver =~ "^7\.2\.[02]$") fix = '7.2.3';
  else if (formatted_ver =~ "^8\.(0\.|5\.[012]$)") fix = "8.5.3";

  if (fix != '')
  {
    report = '\n  Installed version : ' + formatted_ver + ' (' + version + ')' +
             '\n  Fixed version     : ' + fix + '\n';
  }
}
else
  exit(0, "The remote Cisco ONS Device is not affected.");

if (report != '')
{
  if (report_verbosity > 0) security_hole(port:0, extra:report);
  else security_hole(0);
}
else audit(AUDIT_INST_VER_NOT_VULN, "Cisco ONS", version);

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 33261 CVE ID:CVE-2008-3818 CNCVE ID:CNCVE-20083818 Cisco 15310-CL, 15310-MA, ONS 15327, ONS 15454, ONS 15454 SDH和ONS 15600硬件通过CTX, CTX2500, XTC, TCC/TCC+/TCC2/TCC2P, TCCi/TCC2/TCC2P和TSC控制卡管理,这些控制卡通常连接数据通信网络(DCN),DCN用于在管理端点和网络实体进行管理信息传送。DCN的定义有时又叫为Management Communication Network (MCN),DCN一般物理地和逻辑的从光纤网络和Internet上隔离。 特殊构建的TCP通信流发送给节点上的控制卡,可导致相关的控制卡重置,要利用这个漏洞,需要对任意开放的TCP端口进行3次握手。 数据通道穿越开关(data channels traversing the switch)的时序由控制卡提供。 当活动和备用的Cisco ONS 15310-MA, ONS 15310-CL, ONS 15327, ONS 15454或者ONS 15454 SDH控制卡在相同时间里重载时,同步数据通道穿越开关会丢弃通信知道控制卡返回在线状态。异步数据通道穿越开关不受此漏洞影响。使用CTX, CTX2500, XTC或TCC/ TCC+/TCC2/TCC2P控制卡提供的网络管理功能将不能使用,直到控制卡返回在线状态。 在Cisco ONS 15600硬件上,无论活动和备用控制卡将在同一时间里重启。由于TSC执行了软重置,不影响TSC数据通道提供的时序,因此数据通道穿越开关也不受影响。 Cisco ONS 15600 Cisco ONS 15454 SDH Cisco ONS 15454 Cisco ONS 15327 Cisco ONS 15310-MA Cisco ONS 15310 可参考如下安全公告获得补丁信息: <a href=http://www.cisco.com/warp/public/707/cisco-sa-20090114-ons.shtml target=_blank rel=external nofollow>http://www.cisco.com/warp/public/707/cisco-sa-20090114-ons.shtml</a>
idSSV:4671
last seen2017-11-19
modified2009-01-15
published2009-01-15
reporterRoot
titleCisco ONS Control Card远程拒绝服务漏洞