Default Password (guest) for 'guest' Account - Nessus

Critical   Plugin ID: 11256

This page contains detailed information about the Default Password (guest) for 'guest' Account Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 11256
Name: Default Password (guest) for 'guest' Account
Filename: account_guest_guest.nasl
Vulnerability Published: N/A
This Plugin Published: 2003-02-20
Last Modification Time: 2022-04-11
Plugin Version: 1.26
Plugin Type: remote
Plugin Family: Default Unix Accounts
Dependencies: account_check.nasl, find_service1.nasl, ssh_detect.nasl
Excluded KB Items [?]: global_settings/supplied_logins_only

Vulnerability Information


Severity: Critical
Vulnerability Published: N/A
Patch Published: N/A
CVE [?]: CVE-1999-0501, CVE-1999-0502
CPE [?]: N/A
Default Account Vulnerability: True

Synopsis

The remote host has an account with a default password set.

Description

The account 'guest' has the password 'guest' set. An attacker may use this to gain further privileges on this system.

Solution

Set a password for this account or disable it.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the Default Password (guest) for 'guest' Account vulnerability:

  1. Metasploit: exploit/multi/ssh/sshexec
    [SSH User Code Execution]
  2. Metasploit: auxiliary/scanner/telnet/brocade_enable_login
    [Brocade Enable Login Check Scanner]
  3. Metasploit: auxiliary/scanner/db2/db2_auth
    [DB2 Authentication Brute Force Utility]
  4. Metasploit: auxiliary/scanner/http/dell_idrac
    [Dell iDRAC Default Login]
  5. Metasploit: auxiliary/scanner/http/dlink_dir_300_615_http_login
    [D-Link DIR-300A / DIR-320 / DIR-615D HTTP Login Utility]
  6. Metasploit: auxiliary/scanner/http/dlink_dir_615h_http_login
    [D-Link DIR-615H HTTP Login Utility]
  7. Metasploit: auxiliary/scanner/http/dlink_dir_session_cgi_http_login
    [D-Link DIR-300B / DIR-600B / DIR-815 / DIR-645 HTTP Login Utility]
  8. Metasploit: auxiliary/scanner/ftp/ftp_login
    [FTP Authentication Scanner]
  9. Metasploit: auxiliary/scanner/http/http_login
    [HTTP Login Utility]
  10. Metasploit: auxiliary/scanner/http/joomla_bruteforce_login
    [Joomla Bruteforce Login Utility]
  11. Metasploit: auxiliary/scanner/mysql/mysql_login
    [MySQL Login Utility]
  12. Metasploit: auxiliary/scanner/nntp/nntp_login
    [NNTP Login Utility]
  13. Metasploit: auxiliary/scanner/oracle/oracle_login
    [Oracle RDBMS Login Utility]
  14. Metasploit: auxiliary/scanner/pcanywhere/pcanywhere_login
    [PcAnywhere Login Scanner]
  15. Metasploit: auxiliary/scanner/postgres/postgres_login
    [PostgreSQL Login Utility]
  16. Metasploit: auxiliary/scanner/rservices/rexec_login
    [rexec Authentication Scanner]
  17. Metasploit: auxiliary/scanner/rservices/rlogin_login
    [rlogin Authentication Scanner]
  18. Metasploit: auxiliary/scanner/rservices/rsh_login
    [rsh Authentication Scanner]
  19. Metasploit: auxiliary/scanner/ssh/ssh_login
    [SSH Login Check Scanner]
  20. Metasploit: auxiliary/scanner/telnet/telnet_login
    [Telnet Login Check Scanner]
  21. Metasploit: auxiliary/scanner/http/tomcat_mgr_login
    [Tomcat Application Manager Login Utility]
  22. Metasploit: auxiliary/scanner/vmware/vmauthd_login
    [VMWare Authentication Daemon Login Scanner]
  23. Metasploit: auxiliary/scanner/vmware/vmware_http_login
    [VMWare Web Login Scanner]
  24. Metasploit: auxiliary/scanner/winrm/winrm_login
    [WinRM Login Utility]
  25. Metasploit: auxiliary/scanner/http/wordpress_xmlrpc_login
    [Wordpress XML-RPC Username/Password Login Scanner]
  26. Exploit-DB: exploits/linux/remote/35581.rb
    [EDB-35581: Varnish Cache CLI Interface - Remote Code Execution (Metasploit)]
  27. Exploit-DB: exploits/multiple/remote/41694.rb
    [EDB-41694: SSH - User Code Execution (Metasploit)]

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.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

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)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:NA (None)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.8 (Critical)

Go back to menu.

Plugin Source


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

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

account = "guest";
password = "guest";

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

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

  script_cve_id("CVE-1999-0501", "CVE-1999-0502");

  script_name(english:"Default Password (guest) for 'guest' Account");

  script_set_attribute(attribute:"synopsis", value:
"The remote host has an account with a default password set.");
  script_set_attribute(attribute:"description", value:
"The account 'guest' has the password 'guest' set. An attacker may use
this to gain further privileges on this system.");
  script_set_attribute(attribute:"solution", value:
"Set a password for this account or disable it.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/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:'SSH User Code Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"plugin_publication_date", value:"2003/02/20");

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

  script_category(ACT_GATHER_INFO);
  script_family(english:"Default Unix Accounts");

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

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

  exit(0);
}

#
# The script code starts here : 
#
include("audit.inc");
include("default_account.inc");
include("global_settings.inc");

if (supplied_logins_only) audit(AUDIT_SUPPLIED_LOGINS_ONLY);

if (! thorough_tests && ! get_kb_item("Settings/test_all_accounts"))
 exit(0, "Neither thorough_tests nor 'Settings/test_all_accounts' is set.");

affected = FALSE;
ssh_ports = get_service_port_list(svc: "ssh", default:22);
foreach port (ssh_ports)
{
  port = check_account(login:account, password:password, port:port, svc:"ssh");
  if (port)
  {
    affected = TRUE;
    security_report_v4(port:port, severity:SECURITY_HOLE, extra:default_account_report());
  }
}
if(affected) exit(0);

telnet_ports = get_service_port_list(svc: "telnet", default:23);
foreach port (telnet_ports)
{
  port = check_account(login:account, password:password, port:port, svc:"telnet");
  if (port)
  {
    affected = TRUE;
    security_report_v4(port:port, severity:SECURITY_HOLE, extra:default_account_report());
  }
}
if(!affected) 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/account_guest_guest.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\account_guest_guest.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/account_guest_guest.nasl

Go back to menu.

How to Run


Here is how to run the Default Password (guest) for 'guest' Account 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 Default Unix Accounts plugin family.
  6. On the right side table select Default Password (guest) for 'guest' Account plugin ID 11256.
  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 account_guest_guest.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 94374 - Default Password '12345' for 'guest' Account
  • 11240 - Unpassworded 'guest' Account
  • 21302 - phpBB Advanced GuestBook addentry.php phpbb_root_path Parameter Remote File Inclusion
  • 85661 - Citrix XenServer QEMU RTL8139 Guest Network Device Information Disclosure (CTX201717)
  • 99240 - FreeBSD : xen-kernel -- broken check in memory_exchange() permits PV guest breakout (90becf7c-1acf-11e7-970f-002590263bf5)
  • 84710 - FreeBSD : xen-kernel -- arm: vgic: incorrect rate limiting of guest triggered logging (912cb7f7-27df-11e5-a4a5-002590263bf5)
  • 10099 - Matt Wright guestbook.pl Arbitrary Command Execution
  • 111682 - Security Update for Microsoft Office (Auguest 2018) (macOS)
  • 92943 - VMware Fusion 8.1.x < 8.1.1 Shared Folders (HGFS) Guest DLL Hijacking Arbitrary Code Execution (VMSA-2016-0010)
  • 97939 - VMware Fusion 8.x < 8.5.5 Drag-and-Drop Feature Guest-to-Host Code Execution (VMSA-2017-0005) (macOS)
  • 118884 - VMware Fusion 10.x < 10.1.4 / 11.x < 11.0.1 vmxnet3 Guest-to-Host Code Execution Vulnerability (VMSA-2018-0027) (macOS)
  • 58769 - Netop Remote Control dws File Handling Overflow
  • 26919 - Microsoft Windows SMB Guest Account Local User Access
  • 144533 - Virtuozzo 6 : qemu-guest-agent / qemu-img / qemu-kvm / etc (VZLSA-2019-1181)
  • 144525 - Virtuozzo 6 : qemu-guest-agent / qemu-img / qemu-kvm / etc (VZLSA-2020-4056)
  • 105782 - ESXi 5.5 / 6.0 / 6.5 / Hypervisor-Assisted Guest Remediation for Speculative Execution (VMSA-2018-0004) (Spectre) (remote check)
  • 92944 - VMware Player 12.1.x < 12.1.1 Shared Folders (HGFS) Guest DLL Hijacking Arbitrary Code Execution (VMSA-2016-0010) (Linux)
  • 97989 - VMware Player 12.x < 12.5.4 Drag-and-Drop Feature Guest-to-Host Code Execution (VMSA-2017-0005) (Linux)
  • 92945 - VMware Player 12.1.x < 12.1.1 Shared Folders (HGFS) Guest DLL Hijacking Arbitrary Code Execution (VMSA-2016-0010)
  • 97990 - VMware Player 12.x < 12.5.4 Drag-and-Drop Feature Guest-to-Host Code Execution (VMSA-2017-0005)
  • 105784 - VMware vCenter Server 5.5.x < 5.5U3g / 6.0.x < 6.0U3d / 6.5.x < 6.5U1e Hypervisor-Assisted Guest Remediation (VMSA-2018-0004) (Spectre)
  • 105768 - VMSA-2018-0004 : VMware vSphere, Workstation and Fusion updates add Hypervisor-Assisted Guest Remediation for speculative execution issue (Spectre)
  • 110901 - VMSA-2018-0012 : VMware vSphere, Workstation and Fusion updates enable Hypervisor-Assisted Guest Mitigations for Speculative Store Bypass issue (Spectre)
  • 92946 - VMware Workstation 12.1.x < 12.1.1 Shared Folders (HGFS) Guest DLL Hijacking Arbitrary Code Execution (VMSA-2016-0010) (Linux)
  • 97940 - VMware Workstation 12.x < 12.5.4 Drag-and-Drop Feature Guest-to-Host Code Execution (VMSA-2017-0005) (Linux)
  • 118883 - VMware Workstation 14.x < 14.1.4 / 15.x < 15.0.1 vmxnet3 Guest-to-Host Code Execution Vulnerability (VMSA-2018-0027)
  • 92947 - VMware Workstation 12.1.x < 12.1.1 Shared Folders (HGFS) Guest DLL Hijacking Arbitrary Code Execution (VMSA-2016-0010)
  • 97941 - VMware Workstation 12.x < 12.5.4 Drag-and-Drop Feature Guest-to-Host Code Execution (VMSA-2017-0005)

Version


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

Go back to menu.