ScMM DSL Modem/Router Backdoor Detection - Nessus

Critical   Plugin ID: 71807

This page contains detailed information about the ScMM DSL Modem/Router Backdoor Detection Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 71807
Name: ScMM DSL Modem/Router Backdoor Detection
Filename: scmm_backdoor.nasl
Vulnerability Published: 2013-12-21
This Plugin Published: 2014-01-06
Last Modification Time: 2018-11-28
Plugin Version: 1.15
Plugin Type: remote
Plugin Family: Backdoors
Dependencies: find_service1.nasl

Vulnerability Information


Severity: Critical
Vulnerability Published: 2013-12-21
Patch Published: N/A
CVE [?]: CVE-2014-0659
CPE [?]: N/A

Synopsis

The remote device contains a backdoor.

Description

The remote device is a DSL Modem/Router with a backdoor running on port 32764. It is possible for an attacker to run arbitrary commands or access configuration details (including passwords) on the device.

Solution

Contact the device vendor regarding the availability of an update.

Public Exploits


Target Network Port(s): 32764
Target Asset(s): Services/scmm_backdoor
Exploit Available: True (Metasploit Framework)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the ScMM DSL Modem/Router Backdoor Detection vulnerability:

  1. Metasploit: exploit/linux/misc/sercomm_exec
    [SerComm Device Remote Code Execution]
  2. Metasploit: auxiliary/scanner/misc/sercomm_backdoor_scanner
    [SerComm Network Device Backdoor Detection]

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:N/C:C/I:C/A:C/E:POC/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:7.8 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.8 (High)

Go back to menu.

Plugin Source


This is the scmm_backdoor.nasl nessus plugin source code. This script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof.

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

include("compat.inc");

if (description)
{
  script_id(71807);
  script_version("1.15");
  script_cvs_date("Date: 2018/11/28 22:47:41");

  script_cve_id("CVE-2014-0659");
  script_bugtraq_id(64675, 64776, 65007);
  script_xref(name:"CISCO-BUG-ID", value:"CSCum37566");
  script_xref(name:"CISCO-BUG-ID", value:"CSCum43685");
  script_xref(name:"CISCO-BUG-ID", value:"CSCum43693");
  script_xref(name:"CISCO-BUG-ID", value:"CSCum43700");
  script_xref(name:"CISCO-SA", value:"cisco-sa-20140110-sbd");

  script_name(english:"ScMM DSL Modem/Router Backdoor Detection");
  script_summary(english:"Detects the ScMM DSL Modem/Router port 32764 backdoor");

  script_set_attribute(attribute:"synopsis", value:"The remote device contains a backdoor.");
  script_set_attribute(attribute:"description", value:
"The remote device is a DSL Modem/Router with a backdoor running on port
32764.  It is possible for an attacker to run arbitrary commands or
access configuration details (including passwords) on the device.");
  script_set_attribute(attribute:"see_also", value:"https://github.com/elvanderb/TCP-32764");
  # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20140110-sbd
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b9d609e8");
  script_set_attribute(attribute:"solution", value:"Contact the device vendor regarding the availability of an update.");
  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:POC/RL:OF/RC:C");
  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:'SerComm Device Remote Code Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2013/12/21");
  script_set_attribute(attribute:"plugin_publication_date", value:"2014/01/06");

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

  script_category(ACT_GATHER_INFO);
  script_family(english:"Backdoors");

  script_copyright(english:"This script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("find_service1.nasl");
  script_require_ports("Services/scmm_backdoor", 32764);

  exit(0);
}

include("audit.inc");
include("byte_func.inc");
include("global_settings.inc");
include("misc_func.inc");
include("data_protection.inc");

port = get_service(svc:"scmm_backdoor", default:32764, exit_on_fail:TRUE);

soc = open_sock_tcp(port);
if (!soc) audit(AUDIT_SOCK_FAIL, port);

req = "endiantest00" + raw_string(0x00);
send(socket:soc, data:req);

resp = recv(socket:soc, length:12);
close(soc);

if (strlen(resp) < 4) audit(AUDIT_RESP_BAD, port, "ScMM DSL Modem/Router Backdoor probe", "TCP");

sig = substr(resp, 0, 3);
if (sig != "ScMM" && sig != "MMcS") audit(AUDIT_NOT_DETECT, "ScMM DSL Modem/Router Backdoor", port);

if (sig == "MMcS") set_byte_order(BYTE_ORDER_LITTLE_ENDIAN);

req = sig + mkdword(1) + mkdword(1) + raw_string(0x00);

soc = open_sock_tcp(port);
if (!soc) audit(AUDIT_SOCK_FAIL, port);
send(socket:soc, data:req);
resp = recv(socket:soc, length:2048);

if (strlen(resp) < 13) extra = "Nessus was unable to obtain configuration details.";
else
{
  conf = substr(resp, 12);
  conf = str_replace(string:conf, find:raw_string(0x00), replace:'\n  ');
  conf = str_replace(string:conf, find:raw_string(0x01), replace:'\n    ');
  extra = "Nessus was able to obtain the following configuration details:" + '\n  ' + conf;
}

# If GDPR data protection is enabled don't include config
if (report_verbosity > 0 && !get_kb_item(data_protection::DPKB_ENABLED)) security_hole(port:port, extra:'\n'+extra);
else security_hole(port);

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

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

Go back to menu.

How to Run


Here is how to run the ScMM DSL Modem/Router Backdoor Detection 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 Backdoors plugin family.
  6. On the right side table select ScMM DSL Modem/Router Backdoor Detection plugin ID 71807.
  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 scmm_backdoor.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - scmm_backdoor.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 scmm_backdoor.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: Cisco Bug ID: Cisco Security Advisory: See also:

Version


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

Go back to menu.