Firmware version 4.60 of Zyxel USG devices contains an undocumented account (zyfwp) with an unchangeable password.
The password for this account can be found in cleartext in the firmware. This account can be used by someone to login to the ssh server or web interface with admin privileges.
Note that Nessus has not tested for this issue but has instead relied only on the applicationβs self-reported version number.
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##
include('compat.inc');
if (description)
{
script_id(172582);
script_version("1.2");
script_set_attribute(attribute:"plugin_modification_date", value:"2023/03/16");
script_cve_id("CVE-2020-29583");
script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/05/03");
script_name(english:"Zyxel USG Hardcoded Default Password (CVE-2020-29583)");
script_set_attribute(attribute:"synopsis", value:
"The remote security gateway is affected by a hardcoded default password vulnerability.");
script_set_attribute(attribute:"description", value:
"Firmware version 4.60 of Zyxel USG devices contains an undocumented account (zyfwp) with an unchangeable password.
The password for this account can be found in cleartext in the firmware. This account can be used by someone to login
to the ssh server or web interface with admin privileges.
Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
# https://www.zyxel.com/global/en/support/security-advisories/zyxel-security-advisory-for-hardcoded-credential-vulnerability
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?ca5c223e");
script_set_attribute(attribute:"solution", value:
"Upgrade to Zyxel USG version 4.60 or later.");
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:H/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2020-29583");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2020/12/22");
script_set_attribute(attribute:"patch_publication_date", value:"2020/12/22");
script_set_attribute(attribute:"plugin_publication_date", value:"2023/03/15");
script_set_attribute(attribute:"plugin_type", value:"combined");
script_set_attribute(attribute:"cpe", value:"cpe:/h:zyxel:usg_flex");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Firewalls");
script_copyright(english:"This script is Copyright (C) 2023 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("zyxel_usg_web_detect.nbin", "zyxel_usg_detect.nbin");
script_require_keys("installed_sw/Zyxel Unified Security Gateway (USG)");
script_require_ports("Services/www", 80, 443);
exit(0);
}
include('vcf.inc');
var app = 'Zyxel Unified Security Gateway (USG)';
var app_info = vcf::combined_get_app_info(app:app);
var constraints = [
{ 'fixed_version' : '4.60' }
];
vcf::check_version_and_report(
app_info:app_info,
constraints:constraints,
severity:SECURITY_HOLE
);