3Com Superstack 3 Switch Multiple Default Accounts - Nessus

High   Plugin ID: 10747

This page contains detailed information about the 3Com Superstack 3 Switch Multiple Default Accounts Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 10747
Name: 3Com Superstack 3 Switch Multiple Default Accounts
Filename: 3com_switches.nasl
Vulnerability Published: 2002-09-12
This Plugin Published: 2001-08-29
Last Modification Time: 2018-08-09
Plugin Version: 1.25
Plugin Type: remote
Plugin Family: Misc.
Dependencies: None
Excluded KB Items [?]: global_settings/supplied_logins_only

Vulnerability Information


Severity: High
Vulnerability Published: 2002-09-12
Patch Published: N/A
CVE [?]: CVE-1999-0508
CPE [?]: N/A

Synopsis

The remote switch has accounts with default passwords set.

Description

The 3Com Superstack 3 switch has the default passwords set.

The attacker could use these default passwords to gain remote access to your switch and then reconfigure the switch. These passwords could also be potentially used to gain sensitive information about your network from the switch.

Solution

Set a strong password for the accounts.

Public Exploits


Target Network Port(s): 23
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the 3Com Superstack 3 Switch Multiple Default Accounts vulnerability:

  1. Metasploit: auxiliary/scanner/snmp/snmp_login
    [SNMP Community Scanner]
  2. Metasploit: auxiliary/scanner/snmp/snmp_login
    [SNMP Community Login Scanner]

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:P/I:P/A:P
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:NA (None)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.5 (High)

Go back to menu.

Plugin Source


This is the 3com_switches.nasl nessus plugin source code. This script is Copyright (C) 2001-2018 Patrik Karlsson

#
# This script was written by Patrik Karlsson <[email protected]>
# Enhancements by Tomi Hanninen
#
# Changes by Tenable:
# - Revised CVSS score and updated severity.

include("compat.inc");

if (description)
{
  script_id(10747);
  script_version("1.25");
  script_cvs_date("Date: 2018/08/09 17:06:37");

  script_cve_id("CVE-1999-0508");

  script_name(english:"3Com Superstack 3 Switch Multiple Default Accounts");
  script_summary(english:"Logs into 3Com Superstack 3 switches with default passwords.");

  script_set_attribute(attribute:"synopsis", value:"The remote switch has accounts with default passwords set.");
  script_set_attribute(attribute:"description", value:
"The 3Com Superstack 3 switch has the default passwords set. 

The attacker could use these default passwords to gain remote access to
your switch and then reconfigure the switch.  These passwords could also
be potentially used to gain sensitive information about your network
from the switch.");
  script_set_attribute(attribute:"solution", value:"Set a strong password for the accounts.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  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:'SNMP Community Scanner');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2002/09/12");
  script_set_attribute(attribute:"plugin_publication_date", value:"2001/08/29");

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

  script_category(ACT_GATHER_INFO);

  script_copyright(english:"This script is Copyright (C) 2001-2018 Patrik Karlsson");
  script_family(english:"Misc.");

  script_exclude_keys("global_settings/supplied_logins_only");
  script_require_ports(23);

   exit(0);
}

include("audit.inc");
include("global_settings.inc");
include('telnet_func.inc');

port = 23; # the port can't be changed
if (!get_port_state(port)) audit(AUDIT_PORT_CLOSED, port);

banner = get_telnet_banner(port:port);
if ( "Login : " >!< banner ) audit(AUDIT_HOST_NOT, "a 3Com Superstack 3 switch");

if (supplied_logins_only) audit(AUDIT_SUPPLIED_LOGINS_ONLY);

login[0] = string("monitor");
login[1] = string("manager");
login[2] = string("security");
login[3] = string("admin");

password[0] = string("monitor");
password[1] = string("manager");
password[2] = string("security");
password[3] = string("");

bfound = 0;

res = string("Standard passwords were found on this 3Com Superstack switch.\n");
res = res + string("The passwords found are:\n\n");

for ( i=0; i<4; i = i + 1 )
{
  soc = open_sock_tcp(port);
  if (soc)
  {
    r = recv(socket:soc, length:160);
    if("Login: " >< r)
    {
      tmp = string(login[i], "\r\n");
      send(socket:soc, data:tmp);
      r = recv_line(socket:soc, length:2048);
      tmp = string(password[i], "\r\n");
      send(socket:soc, data:tmp);
      r = recv(socket:soc, length:4096);

      if ( "logout" >< r )
      {
        bfound = 1;
        res = string(res, login[i], ":", login[i], "\n");
      }
    }
    close(soc);
  }
}

if (bfound == 1)
{
  if (report_verbosity > 0) security_hole(port:port, extra:res);
  else security_hole(port);
}
else audit(AUDIT_HOST_NOT, "affected");

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

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

Go back to menu.

How to Run


Here is how to run the 3Com Superstack 3 Switch Multiple Default Accounts 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 Misc. plugin family.
  6. On the right side table select 3Com Superstack 3 Switch Multiple Default Accounts plugin ID 10747.
  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 3com_switches.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 18415 - Bay Networks Accelar 1200 Switch Default Password (password) for 'usrname' Account
  • 18414 - Allied Telesyn Router/Switch Default Password
  • 18413 - Allied Telesyn Router/Switch Web Interface Default Password
  • 17638 - Avaya P330 Stackable Switch Default Password
  • 10961 - AirConnect Default Password
  • 11202 - Enhydra Multiserver Default Password
  • 10820 - F5 Device Default Support Password
  • 10995 - Sun JavaServer Default Admin Password
  • 10998 - Shiva LanRover Blank Password
  • 10999 - Linksys Router Default Password
  • 11203 - Motorola Vanguard with No Password (telnet check)
  • 10798 - Symantec pcAnywhere Service Unrestricted Access
  • 10778 - SiteScope Web Service Unpassworded Access
  • 11004 - Ipswitch WhatsUp Gold Default Admin Account
  • 30213 - MikroTik RouterOS with Blank Password (telnet check)
  • 40354 - OpenWrt Router with a Blank Password (telnet check)
  • 10345 - Cayman DSL Router Unauthenticated Access
  • 10483 - PostgreSQL Default Unpassworded Account
  • 10500 - Shiva Integrator Default Password
  • 16321 - 3Com 3CServer/3CDaemon FTP Server Multiple Vulnerabilities (OF, FS, PD, DoS)

Version


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

Go back to menu.