Lucene search

K
nessusThis script is Copyright (C) 2024 and is owned by Tenable, Inc. or an Affiliate thereof.METABASE_CVE-2023-38646.NASL
HistoryJan 22, 2024 - 12:00 a.m.

Metabase RCE (CVE-2023-38646)

2024-01-2200:00:00
This script is Copyright (C) 2024 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
17
metabase
command execution
vulnerability
remote code execution
security advisory
cve-2023-38646
exploits available

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.5 High

AI Score

Confidence

High

0.899 High

EPSS

Percentile

98.8%

The version of Metabase installed on the remote host is 0.46.x < 0.46.6.1, 0.45.x < 0.45.4.1, 1.45.x < 1.45.4.1, 0.44.x < 0.44.7.1, 1.44.x < 1.44.7.1, 0.43.x < 0.43.7.2, and 1.43.x < 1.43.7.2. It is, therefore, affected by a command execution vulnerability when a malicious attacker sends a specially crafted payload to the api/setup/validate endpoint.

Note that Nessus has not tested for this issue but has instead relied only on the application’s self-reported version number.

#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(189296);
  script_version("1.1");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/01/23");

  script_cve_id("CVE-2023-38646");

  script_name(english:"Metabase RCE (CVE-2023-38646)");

  script_set_attribute(attribute:"synopsis", value:
"The web application running on the remote web server is affected by a command execution vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of Metabase installed on the remote host is 0.46.x < 0.46.6.1, 0.45.x < 0.45.4.1, 1.45.x <  1.45.4.1, 
0.44.x <  0.44.7.1, 1.44.x < 1.44.7.1, 0.43.x < 0.43.7.2, and 1.43.x < 1.43.7.2.  It is, therefore, affected by a 
command execution vulnerability when a malicious attacker sends a specially crafted payload to the api/setup/validate
endpoint. 

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  # https://github.com/advisories/GHSA-jg32-8h6w-x7vg
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f4c4b77f");
  script_set_attribute(attribute:"see_also", value:"https://www.metabase.com/blog/security-advisory");
  script_set_attribute(attribute:"solution", value:
"Upgrade to Metabase version x.46.6.1, x.45.4.1, x.44.7.1,x.43.7.2, x.43.7.2 or later");
  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:F/RL:OF/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:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2023-38646");

  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:'Metabase Setup Token RCE');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2023/07/21");
  script_set_attribute(attribute:"patch_publication_date", value:"2023/07/21");
  script_set_attribute(attribute:"plugin_publication_date", value:"2024/01/22");

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

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

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

  script_dependencies("metabase_detect.nbin");
  script_require_keys("installed_sw/Metabase");

  exit(0);
}

include('vcf.inc');

var app = 'Metabase';

var constraints = [
  {'fixed_version' : '0.43.7.2'},
  {'min_version' : '0.44.0', 'fixed_version' : '0.44.7.1'},
  {'min_version' : '0.45.0', 'fixed_version' : '0.45.4.1'},
  {'min_version' : '0.46.0', 'fixed_version' : '0.46.6.1'},
  {'min_version' : '1.0.0', 'fixed_version' : '1.43.7.2'},
  {'min_version' : '1.44.0', 'fixed_version' : '1.44.7.1'},
  {'min_version' : '1.45.0', 'fixed_version' : '1.45.4.1'},
  {'min_version' : '1.46.0', 'fixed_version' : '1.46.6.1'}
];

var app_info = vcf::combined_get_app_info(app:app);

vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_HOLE);
VendorProductVersionCPE
metabasemetabasecpe:/a:metabase:metabase

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.5 High

AI Score

Confidence

High

0.899 High

EPSS

Percentile

98.8%