MikroTik RouterOS with Blank Password (telnet check) - Nessus

Critical   Plugin ID: 30213

This page contains detailed information about the MikroTik RouterOS with Blank Password (telnet check) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 30213
Name: MikroTik RouterOS with Blank Password (telnet check)
Filename: mikrotik_blank_password.nasl
Vulnerability Published: N/A
This Plugin Published: 2008-02-11
Last Modification Time: 2022-04-11
Plugin Version: 1.12
Plugin Type: remote
Plugin Family: Misc.
Dependencies: find_service1.nasl
Excluded KB Items [?]: global_settings/supplied_logins_only

Vulnerability Information


Severity: Critical
Vulnerability Published: N/A
Patch Published: N/A
CVE [?]: CVE-1999-0508
CPE [?]: cpe:/o:mikrotik:routeros

Synopsis

A remote router has no password for its admin account.

Description

The remote host is running MikroTik RouterOS without a password for its 'admin' account. Anyone can connect to it and gain administrative access to it.

Solution

Log in to the device and configure a password using the '/password' command.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the MikroTik RouterOS with Blank Password (telnet check) 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:C/I:C/A:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:NA (None)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:10.0 (High)

Go back to menu.

Plugin Source


This is the mikrotik_blank_password.nasl nessus plugin source code. This script is Copyright (C) 2008-2022 Tenable Network Security, Inc.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(30213);
  script_version("1.12");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id("CVE-1999-0508");

  script_name(english:"MikroTik RouterOS with Blank Password (telnet check)");

  script_set_attribute(attribute:"synopsis", value:
"A remote router has no password for its admin account.");
  script_set_attribute(attribute:"description", value:
"The remote host is running MikroTik RouterOS without a password for its
'admin' account.  Anyone can connect to it and gain administrative
access to it.");
  script_set_attribute(attribute:"see_also", value:"https://mikrotik.com/documentation");
  script_set_attribute(attribute:"solution", value:
"Log in to the device and configure a password using the '/password'
command.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A: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:'SNMP Community Scanner');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"plugin_publication_date", value:"2008/02/11");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:mikrotik:routeros");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Misc.");

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

  script_dependencies("find_service1.nasl");
  script_exclude_keys("global_settings/supplied_logins_only");
  script_require_ports("Services/telnet", 23);

  exit(0);
}


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

port = get_service(svc:"telnet", default:23, exit_on_fail:TRUE);

banner = get_telnet_banner(port:port);
if (!banner || "MikroTik" >!< banner) audit(AUDIT_NOT_LISTEN, "MikroTik", port);

if (supplied_logins_only) audit(AUDIT_SUPPLIED_LOGINS_ONLY);

user = "admin";
pass = "";


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

res = telnet_negotiate(socket:soc);
res += recv_until(socket:soc, pattern:"ogin:");
if (!res)
{
  close(soc);
  exit(0);
}
send(socket:soc, data:user+'\r\n');

res = recv_until(socket:soc, pattern:"word:");
if (!res)
{
  close(soc);
  exit(0);
}
send(socket:soc, data:pass+'\r\n');

res = recv_until(socket:soc, pattern:"MikroTik RouterOS");
close(soc);

if (res) 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/mikrotik_blank_password.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\mikrotik_blank_password.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/mikrotik_blank_password.nasl

Go back to menu.

How to Run


Here is how to run the MikroTik RouterOS with Blank Password (telnet check) 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 MikroTik RouterOS with Blank Password (telnet check) plugin ID 30213.
  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 mikrotik_blank_password.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 10747 - 3Com Superstack 3 Switch Multiple Default Accounts
  • 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
  • 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
  • 70942 - MikroTik RouterOS 5.x < 5.26 / 6.x < 6.3 sshd Unspecified Remote Heap Corruption
  • 108521 - MikroTik RouterOS < 6.40.7 or 6.41.x < 6.41.3 SMB Buffer Overflow
  • 130432 - MikroTik RouterOS < 6.44.6 LTS or 6.45.x < 6.45.7 Multiple Vulnerabilities
  • 117335 - MikroTik RouterOS Winbox Unauthenticated Arbitrary File Read/Write Vulnerability
  • 123797 - MikroTik RouterOS Unauthenticated Intermediary
  • 134714 - MikroTik RouterOS DNS Cache Poisoning (CVE-2019-3978)
  • 103857 - MikroTik RouterOS < 6.39.3 / 6.40.4 / 6.41rc (KRACK)
  • 10827 - SysV /bin/login Environment Remote Overflow (telnet check)

Version


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

Go back to menu.