Linksys E1000 routers are prone to a buffer overflow
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.114459");
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:"9.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:C/I:C/A:C");
script_cve_id("CVE-2024-28283");
script_tag(name:"qod_type", value:"remote_banner");
script_tag(name:"solution_type", value:"NoneAvailable");
script_name("Linksys E1000 Router <= 2.1.03 Build 5 Buffer Overflow Vulnerability");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2024 Greenbone AG");
script_family("Buffer overflow");
script_dependencies("gb_linksys_devices_consolidation.nasl");
script_mandatory_keys("linksys/detected");
script_tag(name:"summary", value:"Linksys E1000 routers are prone to a buffer overflow
vulnerability.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"There is stack-based buffer overflow vulnerability in the
'pc_change_act' function leading to remote code execution.");
script_tag(name:"affected", value:"Linksys E1000 routers with firmware versions 2.1.03 Build 5 and
prior.");
# nb: Latest version 2.1.03 Build 5 is from 03/2014 according to:
# https://www.linksys.com/de/support-article/?articleNum=148397
# 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://d05004.notion.site/Linksys-E1000-BOF-37b98eec45ea4fc991b9b5bea3db091d");
script_xref(name:"URL", value:"https://downloads.linksys.com/downloads/releasenotes/E1000_Customer_Release_Notes.txt");
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:e1000_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:e1000_firmware") {
# nb: The "Build 5" 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: "2.1.03")) {
report = report_fixed_ver(installed_version: version, fixed_version: "None");
security_message(port: 0, data: report);
exit(0);
}
}
exit(0);