Lucene search
K

CockroachDB < 2.1.10 / 19.1.x < 19.1.16 / 19.2.x < 19.2.2 Broken Access Control Vulnerability (A42567)

🗓️ 04 Apr 2022 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 15 Views

CockroachDB < 2.1.10 / 19.1.x < 19.1.16 / 19.2.x < 19.2.2 Broken Access Control Vulnerability (A42567) - Privileged HTTP endpoint exposed to non-admin users

Refs
Code
SourceLink
nessuswww.nessus.org/u
#%NASL_MIN_LEVEL 70300
##
# (C) Tenable, Inc.
##

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

if (description)
{
  script_id(159482);
  script_version("1.1");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/04");
  script_xref(name:"CWE", value:"CWE-284");

  script_name(english:"CockroachDB < 2.1.10 / 19.1.x < 19.1.16 / 19.2.x < 19.2.2 Broken Access Control Vulnerability (A42567)");

  script_set_attribute(attribute:"synopsis", value:
"The remote CockroachDB server is affected by a broken access control vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of CockroachDB installed on the remote host has a privileged HTTP endpoint which is incorrectly available 
to non-admin users. An unauthenticated, remote attacker can exploit this issue by sending a specially crafted HTTP 
request to obtain & modify sensitive information from the remote cliuser.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  # https://www.cockroachlabs.com/docs/advisories/a42567
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?d34e64ab");
  script_set_attribute(attribute:"solution", value:
"Upgrade to CockroachDB version 2.1.10, 19.1.6, 19.2.2, or a later version.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:N");
  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_attribute(attribute: "cvss_score_source", value: "manual");
  script_set_attribute(attribute: "cvss_score_rationale", value: "Broken Access Control");

  script_set_attribute(attribute:"vuln_publication_date", value:"2020/01/22");
  script_set_attribute(attribute:"patch_publication_date", value:"2020/01/22");
  script_set_attribute(attribute:"plugin_publication_date", value:"2022/04/04");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:cockroach_labs:cockroachdb");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Databases");

  script_copyright(english:"This script is Copyright (C) 2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("cockroachdb_web_console_detect.nbin");
  script_require_keys("installed_sw/CockroachDB");

  exit(0);
}

include('vcf.inc');
include('vcf_extras.inc');

var app_info, constraints;

app_info = vcf::cockroachdb::get_app_info();

vcf::check_granularity(app_info:app_info, sig_segments:3);

constraints = [
  {'fixed_version':'2.1.10'},
  {'min_version':'19.1', 'fixed_version':'19.1.6'},
  {'min_version':'19.2', 'fixed_version':'19.2.2'}
];

vcf::check_version_and_report(
  app_info:app_info,
  constraints:constraints,
  severity:SECURITY_HOLE
  );

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