Linksys E2000 routers are prone to an authentication bypass
vulnerability.
# SPDX-FileCopyrightText: 2024 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.114460");
script_version("2024-06-25T05:05:27+0000");
script_tag(name:"last_modification", value:"2024-06-25 05:05:27 +0000 (Tue, 25 Jun 2024)");
script_tag(name:"creation_date", value:"2024-03-26 11:36:21 +0000 (Tue, 26 Mar 2024)");
script_tag(name:"cvss_base", value:"7.8");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:N/A:N");
script_cve_id("CVE-2024-27497");
script_tag(name:"qod_type", value:"remote_banner");
script_tag(name:"solution_type", value:"NoneAvailable");
script_name("Linksys E2000 Router <= 1.0.06 Build 1 Authentication Bypass Vulnerability");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2024 Greenbone AG");
script_family("Web application abuses");
script_dependencies("gb_linksys_devices_consolidation.nasl");
script_mandatory_keys("linksys/detected");
script_tag(name:"summary", value:"Linksys E2000 routers are prone to an authentication bypass
vulnerability.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"The product is vulnerable to an authentication bypass via the
position.js file.");
script_tag(name:"affected", value:"Linksys E2000 routers with firmware versions 1.0.06 Build 1 and
prior.");
# nb: Latest version 1.0.06 build 1 is from 03/2014 according to:
# https://www.linksys.com/de/support-article/?articleNum=148341
# so there might be no solution at all in the future...
script_tag(name:"solution", value:"No known solution is available as of 24th June, 2024.
Information regarding this issue will be updated once solution details are available.");
script_xref(name:"URL", value:"https://warp-desk-89d.notion.site/Linksys-E-2000-efcd532d8dcf4710a4af13fca131a5b8");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
# nb: More affected devices of the e.g. E1xxx and/or E2xxx series might get published in the future
# so this has been used like this to make it more easier to extend the VT in the future.
cpe_list = make_list("cpe:/o:linksys:e2000_firmware");
if (!infos = get_app_version_from_list(cpe_list: cpe_list, nofork: TRUE))
exit(0);
cpe = infos["cpe"];
version = infos["version"];
if (cpe == "cpe:/o:linksys:e2000_firmware") {
# nb: The "Build 1" part seems to be not available / exposed in the relevant banner so we might
# need a "remote_banner_unreliable" qod_type once there is a solution available.
if (version_is_less_equal(version: version, test_version: "1.0.06")) {
report = report_fixed_ver(installed_version: version, fixed_version: "None");
security_message(port: 0, data: report);
exit(0);
}
}
exit(0);