Lucene search

K
openvasCopyright (C) 2016 Greenbone AGOPENVAS:1361412562310809350
HistoryOct 13, 2016 - 12:00 a.m.

MongoDB Client 'dbshell' Information Disclosure Vulnerability (SERVER-25335) - Linux

2016-10-1300:00:00
Copyright (C) 2016 Greenbone AG
plugins.openvas.org
16

2.1 Low

CVSS2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:L/AC:L/Au:N/C:P/I:N/A:N

5.5 Medium

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

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

5.2 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

5.1%

MongoDB is prone to an information disclosure vulnerability.

# SPDX-FileCopyrightText: 2016 Greenbone AG
# 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-only

CPE = "cpe:/a:mongodb:mongodb";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.809350");
  script_version("2023-07-21T05:05:22+0000");
  script_cve_id("CVE-2016-6494");
  script_tag(name:"cvss_base", value:"2.1");
  script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:N/C:P/I:N/A:N");
  script_tag(name:"last_modification", value:"2023-07-21 05:05:22 +0000 (Fri, 21 Jul 2023)");
  script_tag(name:"severity_vector", value:"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2017-11-28 13:04:00 +0000 (Tue, 28 Nov 2017)");
  script_tag(name:"creation_date", value:"2016-10-13 15:38:52 +0530 (Thu, 13 Oct 2016)");
  script_name("MongoDB Client 'dbshell' Information Disclosure Vulnerability (SERVER-25335) - Linux");

  script_tag(name:"summary", value:"MongoDB is prone to an information disclosure vulnerability.");

  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"insight", value:"The Flaw is due to mongodb-clients stores its history in
  '~/.dbshell', this file is created with permissions 0644. Home folders are world readable as
  well.");

  script_tag(name:"impact", value:"Successful exploitation will allow local users to obtain
  sensitive information by reading .dbshell history files.");

  script_tag(name:"affected", value:"MongoDB version 2.4.10 and probably earlier.");

  script_tag(name:"solution", value:"Update to version 3.0, 3.2, 3.3.14 or later.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"remote_banner_unreliable");

  script_xref(name:"URL", value:"https://jira.mongodb.org/browse/SERVER-25335");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/92204");
  script_xref(name:"URL", value:"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832908");

  script_copyright("Copyright (C) 2016 Greenbone AG");
  script_category(ACT_GATHER_INFO);
  script_family("Databases");
  script_dependencies("gb_mongodb_detect.nasl", "os_detection.nasl");
  script_mandatory_keys("mongodb/installed", "Host/runs_unixoide");
  exit(0);
}

include("version_func.inc");
include("host_details.inc");

if(!port = get_app_port(cpe:CPE))
  exit(0);

if(!vers = get_app_version(cpe:CPE, port:port))
  exit(0);

#nb: Replace '-' by '.' in version
if("-rc" >< vers)
  vers = ereg_replace(pattern:"-", replace:".", string:vers);

if(version_is_less(version:vers, test_version:"3.0")) {
  report = report_fixed_ver(installed_version:vers, fixed_version:"3.0 / 3.2 / 3.3.14");
  security_message(port:port, data:report);
  exit(0);
}

exit(99);

2.1 Low

CVSS2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:L/AC:L/Au:N/C:P/I:N/A:N

5.5 Medium

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

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

5.2 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

5.1%