Vulnerabilities > CVE-2015-1842 - Credentials Management vulnerability in Redhat Openstack

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN

Summary

The puppet manifests in the Red Hat openstack-puppet-modules package before 2014.2.13-2 uses a default password of CHANGEME for the pcsd daemon, which allows remote attackers to execute arbitrary shell commands via unspecified vectors.

Common Weakness Enumeration (CWE)

Nessus

NASL familyMisc.
NASL idPCSD_DEFAULT_CREDS.NASL
descriptionThe remote ClusterLabs Pacemaker PCS daemon uses a known default set of credentials. This allows a remote attacker to run arbitrary commands on cluster members. Note that some package deployment systems, such as Puppet, may be responsible for setting these default credentials.
last seen2020-06-01
modified2020-06-02
plugin id83266
published2015-05-07
reporterThis script is Copyright (C) 2015-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/83266
titleClusterLabs Pacemaker PCS Daemon Default Password
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(83266);
  script_version("1.4");
  script_cvs_date("Date: 2018/07/24 18:56:11");

  script_cve_id("CVE-2015-1842");
  script_bugtraq_id(74049);

  script_name(english:"ClusterLabs Pacemaker PCS Daemon Default Password");
  script_summary(english:"Attempts to login using the default password.");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is running a service with known default credentials.");
  script_set_attribute(attribute:"description", value:
"The remote ClusterLabs Pacemaker PCS daemon uses a known default set
of credentials. This allows a remote attacker to run arbitrary
commands on cluster members.

Note that some package deployment systems, such as Puppet, may be
responsible for setting these default credentials.");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=1201875");
  script_set_attribute(attribute:"solution", value:
"Change the password on known default accounts.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date",value:"2015/03/13");
  script_set_attribute(attribute:"patch_publication_date",value:"2015/04/29");
  script_set_attribute(attribute:"plugin_publication_date", value:"2015/05/07");

  script_set_attribute(attribute:"plugin_type",value:"remote");
  script_set_attribute(attribute:"cpe",value:"cpe:/a:clusterlabs:pacemaker");
  script_set_attribute(attribute:"default_account", value:"true");
  script_end_attributes();

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

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

  script_dependencies("pcsd_detect.nbin");
  script_require_ports("Services/www", 2224);
  script_exclude_keys("global_settings/supplied_logins_only");
  script_require_keys("installed_sw/PCSD");

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");

if (supplied_logins_only) audit(AUDIT_SUPPLIED_LOGINS_ONLY);

port = get_http_port(default:2224);
app = "PCSD";

install = get_install_from_kb(
  appname      : app,
  port         : port,
  exit_on_fail : TRUE
);

url = '/remote/auth';
user = "hacluster";
pass = "CHANGEME";

postdata = "username=" + user + "&password=" + pass + "&bidirectional=1";

res = http_send_recv3(
  method : "POST",
  item   : url,
  port   : port,
  data   : postdata,
  add_headers : make_array("Content-Type", "application/x-www-form-urlencoded"),
  exit_on_fail : TRUE
);

res = http_send_recv3(
  method : "GET",
  item   : "/remote/status", 
  add_headers : make_array("Cookie", "token=" + res[2]),
  port   : port,
  exit_on_fail : TRUE
);

if('{"notauthorized":"true"}' >!< res[2] &&
   '"pacemaker":' >< res[2] && '"cluster_settings":' >< res[2])
{
  if (report_verbosity > 0)
  {
    header = 'Nessus was able to gain access using the following URL';
    trailer =
      'and the following set of credentials :\n' +
      '\n' +
      '  Username : ' + user + '\n' +
      '  Password : ' + pass;

    report = get_vuln_report(
      items   : url,
      port    : port,
      header  : header,
      trailer : trailer
    );

    security_hole(port:port, extra:report);
  }
  else security_hole(port);
  exit(0);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, app, build_url(port:port, qs:"/"));

Redhat

advisories
  • rhsa
    idRHSA-2015:0789
  • rhsa
    idRHSA-2015:0791
  • rhsa
    idRHSA-2015:0830
  • rhsa
    idRHSA-2015:0831
  • rhsa
    idRHSA-2015:0832
rpms
  • openstack-packstack-0:2014.2-0.20.dev1467.g70c9655.el7ost
  • openstack-packstack-doc-0:2014.2-0.20.dev1467.g70c9655.el7ost
  • openstack-packstack-puppet-0:2014.2-0.20.dev1467.g70c9655.el7ost
  • openstack-puppet-modules-0:2014.2.13-2.el7ost
  • foreman-discovery-image-0:7.0-20150227.0.el7ost
  • foreman-proxy-0:1.6.0.30-6.el7ost
  • openstack-foreman-installer-0:3.0.22-1.el7ost
  • openstack-puppet-modules-0:2014.2.13-2.el7ost
  • rhel-osp-installer-1:0.5.7-1.el7ost
  • rhel-osp-installer-client-1:0.5.7-1.el7ost
  • ruby193-rubygem-staypuft-0:0.5.22-1.el7ost
  • ruby193-rubygem-staypuft-doc-0:0.5.22-1.el7ost
  • augeas-0:1.0.0-7.el6_6.1
  • augeas-debuginfo-0:1.0.0-7.el6_6.1
  • openstack-foreman-installer-0:2.0.34-1.el6ost
  • openstack-puppet-modules-0:2014.1.2-1.el6ost
  • rhel-osp-installer-1:0.4.7-2.el6ost
  • ruby193-rubygem-staypuft-0:0.4.15-1.el6ost
  • ruby193-rubygem-staypuft-doc-0:0.4.15-1.el6ost
  • openstack-packstack-0:2014.1.1-0.46.dev1280.el7ost
  • openstack-packstack-doc-0:2014.1.1-0.46.dev1280.el7ost
  • openstack-packstack-puppet-0:2014.1.1-0.46.dev1280.el7ost
  • openstack-puppet-modules-0:2014.1.2-1.el7ost
  • openstack-packstack-0:2014.1.1-0.46.dev1280.el6ost
  • openstack-packstack-doc-0:2014.1.1-0.46.dev1280.el6ost
  • openstack-packstack-puppet-0:2014.1.1-0.46.dev1280.el6ost
  • openstack-puppet-modules-0:2014.1.2-1.el6ost