Lucene search
+L

Default FTP Credentials (ntpupdate / ntpupdate)

🗓️ 25 Mar 2014 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 43 Views

Default FTP Credentials vulnerability in Schneider Electric Modicon M340 for Etherne

Refs
Code
SourceLink
nessuswww.nessus.org/u
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(73188);
  script_version("1.8");
  script_cvs_date("Date: 2018/11/15 20:50:22");


  script_name(english:"Default FTP Credentials (ntpupdate / ntpupdate)");
  script_summary(english:"Tries to login with default credentials.");

  script_set_attribute(attribute:"synopsis", value:
"The remote FTP server can be accessed with default credentials.");
  script_set_attribute(attribute:"description", value:
"It is possible to log into the remote FTP server by providing default
credentials. A remote attacker could exploit this to gain access to
the remote server.

These credentials are known to apply to Schneider Electric Modicon
M340 for Ethernet devices; however, they may apply to other FTP
services as well.");
  # https://dariusfreamon.wordpress.com/2013/12/08/schneider-modicon-m340-for-ethernet-multiple-default-credentials/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?9689752d");
  script_set_attribute(attribute:"solution", value:
"Change the default password or block access to the port.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:TF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:T/RC:C");

  script_set_attribute(attribute:"plugin_publication_date", value:"2014/03/25");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"x-cpe:/a:schneider-electric:modicon:m340");
  script_set_attribute(attribute:"default_account", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);

  script_copyright(english:"This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.");
  script_family(english:"FTP");

  script_dependencies("DDI_FTP_Any_User_Login.nasl", "ftpserver_detect_type_nd_version.nasl");
  script_exclude_keys("global_settings/supplied_logins_only");
  script_require_ports("Services/ftp", 21);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("ftp_func.inc");

port = get_ftp_port(default:21);

if (get_kb_item("ftp/"+port+"/AnyUser"))
  audit(AUDIT_FTP_RANDOM_USER, port);

if (supplied_logins_only) audit(AUDIT_SUPPLIED_LOGINS_ONLY);

user   = "ntpupdate";
passwd = "ntpupdate";

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

if (ftp_authenticate(socket:soc, user:user, pass:passwd))
{
  ftp_close(socket:soc);

  if (report_verbosity > 0)
  {
    report =
      '\n' + 'Nessus was able to log into the remote FTP server using the following' +
      '\n' + 'default credentials :\n' +
      '\n  User     : ' + user +
      '\n  Password : ' + passwd +
      '\n';
    security_warning(port:port, extra:report);
  }
  else security_warning(port);
  exit(0);
}
else
{
  ftp_close(socket:soc);
  exit(0, "The FTP server on port " + port + " is not affected.");
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

15 Nov 2018 20:50Current
5.5Medium risk
Vulners AI Score5.5
43