Linksys E1500/E2500 Authenticated Command Execution - Nessus

Critical   Plugin ID: 104129

This page contains detailed information about the Linksys E1500/E2500 Authenticated Command Execution Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 104129
Name: Linksys E1500/E2500 Authenticated Command Execution
Filename: linksys_auth_command_exec.nasl
Vulnerability Published: 2013-02-06
This Plugin Published: 2017-10-25
Last Modification Time: 2018-03-12
Plugin Version: 1.5
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: linksys_router_detect.nasl
Required KB Items [?]: installed_sw/Linksys

Vulnerability Information


Severity: Critical
Vulnerability Published: 2013-02-06
Patch Published: N/A
CVE [?]: N/A
CPE [?]: N/A

Synopsis

The remote router is affected by an authenticated command execution vulnerability

Description

The remote Linksys router is affected by an authenticated command execution vulnerability. An authenticated remote attacker can use this vulnerability to execute operating system commands as root.

This vulnerability has been used by the IoT Reaper botnet.

Solution

Upgrade to the latest firmware version.

Public Exploits


Target Network Port(s): 80, 8080
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Linksys E1500/E2500 Authenticated Command Execution vulnerability:

  1. Metasploit: exploit/linux/http/linksys_e1500_apply_exec
    [Linksys E1500/E2500 apply.cgi Remote Command Injection]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:S/C:C/I:C/A:C/E:F/RL:U/RC:ND
CVSS Base Score:9.0 (High)
Impact Subscore:10.0
Exploitability Subscore:8.0
CVSS Temporal Score:8.6 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.6 (High)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS Base Score:9.1 (Critical)
Impact Subscore:6.0
Exploitability Subscore:2.3
CVSS Temporal Score:NA (None)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.1 (Critical)

Go back to menu.

Plugin Source


This is the linksys_auth_command_exec.nasl nessus plugin source code. This script is Copyright (C) 2018 Tenable Network Security, Inc.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(104129);
  script_version("1.5");
  script_cvs_date("Date: 2018/03/12 12:01:40");

  script_bugtraq_id(57760);

  script_name(english:"Linksys E1500/E2500 Authenticated Command Execution");
  script_summary(english:"Checks the firmware version");

  script_set_attribute(attribute:"synopsis", value:
"The remote router is affected by an authenticated command execution
vulnerability");
  script_set_attribute(attribute:"description", value:
"The remote Linksys router is affected by an authenticated command
execution vulnerability. An authenticated remote attacker can use
this vulnerability to execute operating system commands as root.

This vulnerability has been used by the IoT Reaper botnet.");
  script_set_attribute(attribute:"see_also", value:"http://www.s3cur1ty.de/m1adv2013-004");
  # http://blog.netlab.360.com/iot_reaper-a-rappid-spreading-new-iot-botnet-en/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?197042fe");
  script_set_attribute(attribute:"solution", value:
"Upgrade to the latest firmware version.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:U/RC:ND");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Linksys E1500/E2500 apply.cgi Remote Command Injection');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2013/02/06");
  script_set_attribute(attribute:"plugin_publication_date", value:"2017/10/25");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2018 Tenable Network Security, Inc.");

  script_dependencies("linksys_router_detect.nasl");
  script_require_keys("installed_sw/Linksys");
  script_require_ports("Services/www", 80, 8080);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");

appname = 'Linksys';
get_install_count(app_name:appname, exit_if_zero:TRUE);
port = get_http_port(default:80, embedded:TRUE);
install = get_single_install(app_name:appname, port:port);

vuln = FALSE;
if ("E1500" >< install["model"])
{
  if (install["version"] == "1.0.05 build 1" ||
      install["version"] == "1.0.04 build 2" ||
      install["version"] == "1.0.00 build 9")
  {
    vuln = TRUE;
  }
}
else if ("E2500" >< install["model"])
{
  if (install["version"] == "1.0.03")
  {
    vuln = TRUE;
  }
}

if (vuln == FALSE)
{
  audit(AUDIT_HOST_NOT, "an affected Linksys router");
}

report = "Based on the self-reported firmware version, " + install["version"] +
    ',\nthe remote ' + install["model"] + ' router is vulnerable on port ' + port + '.';
security_report_v4(severity:SECURITY_HOLE, port:port, extra:report);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/linksys_auth_command_exec.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\linksys_auth_command_exec.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/linksys_auth_command_exec.nasl

Go back to menu.

How to Run


Here is how to run the Linksys E1500/E2500 Authenticated Command Execution as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses plugin family.
  6. On the right side table select Linksys E1500/E2500 Authenticated Command Execution plugin ID 104129.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl linksys_auth_command_exec.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a linksys_auth_command_exec.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - linksys_auth_command_exec.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state linksys_auth_command_exec.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 20096 - Linksys Multiple Vulnerabilities (OF, DoS, more)
  • 58482 - Cisco Linksys PlayerPT ActiveX SetSource() Method base64string Argument Parsing Remote Overflow
  • 10999 - Linksys Router Default Password
  • 60107 - Cisco Linksys PlayerPT ActiveX Control SetSource() Multiple Overflows

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file linksys_auth_command_exec.nasl version 1.5. For more plugins, visit the Nessus Plugin Library.

Go back to menu.