Vulnerabilities > CVE-2014-4705 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Huawei products

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
HIGH
network
low complexity
huawei
CWE-119
nessus

Summary

Multiple heap-based buffer overflows in the eSap software platform in Huawei Campus S9300, S7700, S9700, S5300, S5700, S6300, and S6700 series switches; AR150, AR160, AR200, AR1200, AR2200, AR3200, AR530, NetEngine16EX, SRG1300, SRG2300, and SRG3300 series routers; and WLAN AC6005, AC6605, and ACU2 access controllers allow remote attackers to cause a denial of service (device restart) via a crafted length field in a packet.

Vulnerable Configurations

Part Description Count
OS
Huawei
109
Hardware
Huawei
21

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 familyHuawei Local Security Checks
NASL idHUAWEI-SA-20140616-01-ESAP.NASL
descriptionThe remote host is a Huawei device running a firmware version that is affected by a denial of service vulnerability. The issue stems from a heap overflow vulnerability in the firmware. A remote, unauthenticated attacker could exploit this vulnerability by sending malformed packets to cause excessive memory consumption or a device reboot.
last seen2020-06-01
modified2020-06-02
plugin id76797
published2014-07-25
reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/76797
titleHuawei eSap Platform DoS (HWPSIRT-2014-0111)
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(76797);
  script_version("1.3");
  script_cvs_date("Date: 2018/07/12 19:01:15");

  script_cve_id("CVE-2014-4705");
  script_bugtraq_id(68130);

  script_name(english:"Huawei eSap Platform DoS (HWPSIRT-2014-0111)");
  script_summary(english:"Checks the firmware version.");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is affected by a denial of service vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote host is a Huawei device running a firmware version that is
affected by a denial of service vulnerability. The issue stems from a
heap overflow vulnerability in the firmware. A remote, unauthenticated
attacker could exploit this vulnerability by sending malformed packets
to cause excessive memory consumption or a device reboot.");
  # http://www.huawei.com/en/security/psirt/security-bulletins/security-advisories/hw-345171.htm
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?6c2ae7e8");
  script_set_attribute(attribute:"solution", value:"Apply the relevant update referenced in the vendor 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_set_attribute(attribute:"vuln_publication_date", value:"2012/06/16");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/06/16");
  script_set_attribute(attribute:"plugin_publication_date", value:"2014/07/25");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:huawei:versatile_routing_platform");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Huawei Local Security Checks");

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

  script_dependencies("huawei_vrp_version.nbin");
  script_require_keys("Host/Huawei/VRP/Series", "Host/Huawei/VRP/Version", "Host/Huawei/VRP/Model");

  exit(0);
}

include("huawei_version.inc");

model = get_kb_item_or_exit("Host/Huawei/VRP/Model");
series = get_kb_item_or_exit("Host/Huawei/VRP/Series");
version = get_kb_item_or_exit("Host/Huawei/VRP/Version");

affected_name = "Huawei Quidway S-Series Switch";
fix = NULL;

reference = make_nested_list(
  make_array(
    "series", make_list("^S9[73]00$", "^S7700$"),
    "checks", make_nested_list(
      make_array("vuln", "V200R001C00SPC300", "fix", "V200R001SPH016"),
      make_array("vuln", "V200R002C00SPC100", "fix", "V200R005C00SPC300"),
      make_array("vuln", "V200R003C00SPC500", "fix", "V200R003SPH006")
    )
  ),
  make_array(
    "series", make_list("^S5[73]00$", "^S6[73]00$"),
    "checks", make_nested_list(
      make_array("vuln", "V200R001C00SPC300", "fix", "V200R001SPH013"),
      make_array("vuln", "V200R002C00SPC100", "fix", "V200R005C00SPC300"),
      make_array("vuln", "V200R003C00SPC300", "fix", "V200R003SPH006")
    )
  ),
  make_array(
    "series", make_list("^AR1[56]0$", "^AR200$", "^AR[123]200$", "^AR530$", "^16EX$", "^SRG[123]300$"),
    "checks", make_nested_list(
      make_array("vuln", "V200R003C01SPC900", "fix", "V200R003SPH010"),
      make_array("vuln", "V200R003C01SPC300", "fix", "V200R003SPH010"),
      make_array("vuln", "V200R003C01SPC100", "fix", "V200R003SPH010"),
      make_array("vuln", "V200R003C00SPC200", "fix", "V200R003SPH010"),
      make_array("vuln", "V200R003C00SPC100", "fix", "V200R003SPH010"),
      make_array("vuln", "V200R005C00SPC100", "fix", "V200R005C10SPC500 / V200R005SPH002"),
      make_array("vuln", "V200R005C00SPC200", "fix", "V200R005C10SPC500 / V200R005SPH002")
    )
  ),
  make_array(
    "series", make_list("^AC6[60]05$", "^ACU2$"),
    "checks", make_nested_list(make_array("vuln", "V200R005C00SPC100", "fix", "V200R005C00SPC200"))
  )
);

huawei_check_and_report(
  model:model,
  series:series,
  version:version,
  reference:reference,
  severity:SECURITY_HOLE
);