The remote host is a Huawei device running a firmware version that is affected by a denial of service vulnerability due to a flaw in the RADIUS component. A remote, authenticated attacker could exploit this vulnerability by sending malformed RADIUS packets to cause a device restart.
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(77341);
script_version("1.5");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/06");
script_cve_id("CVE-2014-4704");
script_bugtraq_id(68664);
script_name(english:"Huawei Device DoS (HWPSIRT-2014-0307)");
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 due to a flaw in the
RADIUS component. A remote, authenticated attacker could exploit this
vulnerability by sending malformed RADIUS packets to cause a device
restart.");
# http://www.huawei.com/en/security/psirt/security-bulletins/security-advisories/hw-334751.htm
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?21e1ec82");
script_set_attribute(attribute:"solution", value:"Apply the relevant update referenced in the vendor advisory.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:S/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:"2014/05/08");
script_set_attribute(attribute:"patch_publication_date", value:"2014/05/08");
script_set_attribute(attribute:"plugin_publication_date", value:"2014/08/22");
script_set_attribute(attribute:"potential_vulnerability", value:"true");
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-2021 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");
if (report_paranoia < 2) audit(AUDIT_PARANOID);
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");
reference = make_nested_list(
make_array(
"series", make_list("^AR1[56]0$", "^AR530$", "^AR200$", "^AR[123]200$", "^SRG[123]300$"),
"checks", make_nested_list(
make_array("vuln", "V200R005C00", "fix", "V200R005C10SPC500"),
make_array("vuln", "V200R003", "fix", "V200R005C10SPC500")
)
),
make_array(
"series", make_list("^S[56][37]00$"),
"checks", make_nested_list(
make_array("vuln", "V200R001C00SPC300", "fix", "V200R001SPH013")
)
),
make_array(
"series", make_list("^S[97]700$", "^S9300(E)?$"),
"checks", make_nested_list(
make_array("vuln", "V200R001C00SPC300", "fix", "V200R001SPH016")
)
),
make_array(
"series", make_list("^AC6[06]05$", "^ACU2$"),
"checks", make_nested_list(
make_array("vuln", "V200R005C00SPC100", "fix", "V200R005C00SPC200"),
make_array("vuln", "V200R005C00", "fix", "V200R005C00SPC200")
)
)
);
huawei_check_and_report(
model:model,
series:series,
version:version,
reference:reference,
severity:SECURITY_WARNING
);