Lucene search

K
openvasCopyright (C) 2020 Simmons Foods, Inc.OPENVAS:1361412562310112710
HistoryMar 11, 2020 - 12:00 a.m.

Kronos 4500 Time Clock Default Credentials (Telnet)

2020-03-1100:00:00
Copyright (C) 2020 Simmons Foods, Inc.
plugins.openvas.org
218

7.4 High

AI Score

Confidence

Low

Kronos 4500 Time Clock has default credentials set.

# SPDX-FileCopyrightText: 2020 Simmons Foods, Inc.
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.112710");
  script_version("2023-08-01T13:29:10+0000");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"2023-08-01 13:29:10 +0000 (Tue, 01 Aug 2023)");
  script_tag(name:"creation_date", value:"2020-03-11 14:52:00 +0000 (Wed, 11 Mar 2020)");

  script_tag(name:"qod_type", value:"remote_vul");

  script_tag(name:"solution_type", value:"Mitigation");

  script_name("Kronos 4500 Time Clock Default Credentials (Telnet)");

  script_category(ACT_ATTACK);

  script_family("Default Accounts");
  script_copyright("Copyright (C) 2020 Simmons Foods, Inc.");
  script_dependencies("telnet.nasl", "telnetserver_detect_type_nd_version.nasl", "gb_default_credentials_options.nasl");
  script_require_ports("Services/telnet", 23);
  script_mandatory_keys("telnet/vxworks/detected");
  script_exclude_keys("default_credentials/disable_default_account_checks");

  script_tag(name:"summary", value:"Kronos 4500 Time Clock has default credentials set.");

  script_tag(name:"impact", value:"This issue may be exploited by a remote attacker to gain
  access to sensitive information or modify the system configuration.");

  script_tag(name:"vuldetect", value:"Connects to the telnet service and tries to login with default credentials.");

  script_tag(name:"solution", value:"Set or change the password for 'SuperUser' or, if possible, disable the default account.");

  exit(0);
}

if( get_kb_item( "default_credentials/disable_default_account_checks" ) )
  exit( 0 );

include("misc_func.inc");
include("port_service_func.inc");
include("telnet_func.inc");
include("dump.inc");

port = telnet_get_port( default:23 );
banner = telnet_get_banner( port:port );
if( ! banner || "VxWorks login:" >!< banner )
  exit( 0 );

soc = open_sock_tcp( port );
if( ! soc )
  exit( 0 );

user = "SuperUser";
pass = "2323098716";

recv = recv( socket:soc, length:512, timeout:60 );

if( "VxWorks login:" >< recv ) {

  send( socket:soc, data:user + '\r\n' );
  recv = recv( socket:soc, length:128, timeout:60 );

  if( "Password:" >< recv ) {
    send( socket:soc, data:pass + '\r\n' );
    recv = recv( socket:soc, length:512, timeout:60 );

    if( "->" >< recv ) {
      send( socket:soc, data:'whoami\r\n' );
      recv2 = recv( socket:soc, length:512, timeout:60 );
      telnet_close_socket( socket:soc, data:recv );

      if( user >< recv2 ) {
        report = 'It was possible to login using the following credentials:\n\n' + user + ':' + pass;
        security_message( port:port, data:report );
        exit( 0 );
      }
    }
  }
}

telnet_close_socket( socket:soc );

exit( 99 );

7.4 High

AI Score

Confidence

Low