Lucene search
+L

Huawei Switches Information Disclosure Vulnerability (huawei-sa-20140820-01-campus)

🗓️ 12 Jan 2018 00:00:00Reported by Copyright (C) 2018 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 94 Views

Huawei Switches Information Disclosure Vulnerability (huawei-sa-20140820-01-campus) allows remote enumeration of usernames via SSH vector

Related
Refs
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2014-5394
8 Jan 201819:00
cve
cvelist
Cvelist
CVE-2014-5394
8 Jan 201819:00
cvelist
euvd
EUVD
EUVD-2014-5282
7 Oct 202500:30
euvd
huawei
Huawei
Security Advisory- SSH Username Information Disclosure Vulnerability in Huawei Campus Switch
20 Aug 201400:00
huawei
nessus
Tenable Nessus
SSH Username Information Disclosure Vulnerability in Huawei Campus Series Switches
26 Aug 201400:00
nessus
nvd
NVD
CVE-2014-5394
8 Jan 201819:29
nvd
prion
Prion
Code injection
8 Jan 201819:29
prion
# SPDX-FileCopyrightText: 2018 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if( description )
{
  script_oid("1.3.6.1.4.1.25623.1.0.113083");
  script_version("2023-07-20T05:05:17+0000");
  script_tag(name:"last_modification", value:"2023-07-20 05:05:17 +0000 (Thu, 20 Jul 2023)");
  script_tag(name:"creation_date", value:"2018-01-12 14:44:44 +0100 (Fri, 12 Jan 2018)");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:N/A:N");
  script_tag(name:"severity_vector", value:"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2018-01-29 19:03:00 +0000 (Mon, 29 Jan 2018)");

  script_tag(name:"qod_type", value:"remote_banner");

  script_tag(name:"solution_type", value:"VendorFix");

  script_cve_id("CVE-2014-5394");

  script_name("Huawei Switches Information Disclosure Vulnerability (huawei-sa-20140820-01-campus)");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2018 Greenbone AG");
  script_family("Huawei");
  script_dependencies("gb_huawei_vrp_network_device_consolidation.nasl");
  script_mandatory_keys("huawei/vrp/detected");

  script_tag(name:"summary", value:"Multiple Huawei Campus switches allow remote attackers to enumerate
  usernames via vectors involving use of SSH by the maintenance terminal.");

  script_tag(name:"vuldetect", value:"The script checks if the target host is an affected product that
  has a vulnerable firmware version installed.");

  script_tag(name:"affected", value:"The following Huawei Switch models and firmware versions are affected:

  Huawei Campus Switch S9300/S9300E/S7700/S9700 versions: V200R001C00SPC300, V200R002C00SPC300, V200R003C00SPC500

  Huawei Campus Switch S5700/S6700/S5300/S6300 versions: V200R001C00SPC300, V200R002C00SPC300, V200R003C00SPC300

  Huawei Campus Switch S2300/S2700/S3300/S3700 versions: V100R006C05");

  script_tag(name:"solution", value:"Update the software according to your product:

  Huawei Campus Switch S9300/S9300E/S7700/S9700 fixed version: V200R005C00SPC300

  Huawei Campus Switch S5700/S6700/S5300/S6300 fixed version: V200R005C00SPC300

  Huawei Campus Switch S2300/S2700/S3300/S3700 fixed version: V100R006SPH018");

  script_xref(name:"URL", value:"https://www.huawei.com/us/psirt/security-advisories/2014/hw-362701");
  script_xref(name:"URL", value:"https://exchange.xforce.ibmcloud.com/vulnerabilities/97763");

  exit(0);
}

include("host_details.inc");
include("version_func.inc");

cpe_list = make_list("cpe:/o:huawei:s9300_firmware",
                     "cpe:/o:huawei:s9300e_firmware",
                     "cpe:/o:huawei:s7700_firmware",
                     "cpe:/o:huawei:s9700_firmware",
                     "cpe:/o:huawei:s5700_firmware",
                     "cpe:/o:huawei:s6700_firmware",
                     "cpe:/o:huawei:s5300_firmware",
                     "cpe:/o:huawei:s6300_firmware",
                     "cpe:/o:huawei:s2300_firmware",
                     "cpe:/o:huawei:s2700_firmware",
                     "cpe:/o:huawei:s3300_firmware",
                     "cpe:/o:huawei:s3700_firmware"
                     );

if (!infos = get_app_port_from_list(cpe_list: cpe_list))
  exit(0);

cpe = infos["cpe"];

if (!version = get_app_version(cpe: cpe, nofork: TRUE))
  exit(0);

version = toupper(version);

if (cpe == "cpe:/o:huawei:s9300_firmware" || cpe == "cpe:/o:huawei:s9300e_firmware" || cpe == "cpe:/o:huawei:s7700_firmware" || cpe == "cpe:/o:huawei:s9700_firmware") {
  if (version == "V200R001C00SPC300" || version == "V200R002C00SPC300" || version == "V200R003C00SPC500") {
    report = report_fixed_ver(installed_version: version, fixed_version: "V200R005C00SPC300");
    security_message(port: 0, data: report);
    exit(0);
  }
}

if (cpe == "cpe:/o:huawei:s5700_firmware" || cpe == "cpe:/o:huawei:s6700_firmware" || cpe == "cpe:/o:huawei:s5300_firmware" || cpe == "cpe:/o:huawei:s6300_firmware") {
  if (version == "V200R001C00SPC300" || version == "V200R002C00SPC300" || version == "V200R003C00SPC300") {
    report = report_fixed_ver(installed_version: version, fixed_version: "V200R005C00SPC300");
    security_message(port: 0, data: report);
    exit(0);
  }
}

if (cpe == "cpe:/o:huawei:s2300_firmware" || cpe == "cpe:/o:huawei:s2700_firmware" || cpe == "cpe:/o:huawei:s3300_firmware" || cpe == "cpe:/o:huawei:s3700_firmware") {
  if (version == "V100R006C05") {
    report = report_fixed_ver(installed_version: version, fixed_version: "V100R006SPH018");
    security_message(port: 0, data: report);
    exit(0);
  }
}

exit(99);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation