Lucene search

K
openvasCopyright (C) 2012 Greenbone AGOPENVAS:1361412562310802046
HistoryDec 07, 2012 - 12:00 a.m.

MariaDB Authentication Error Message User Enumeration Vulnerability

2012-12-0700:00:00
Copyright (C) 2012 Greenbone AG
plugins.openvas.org
35

6.3 Medium

AI Score

Confidence

High

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

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

0.065 Low

EPSS

Percentile

93.7%

MariaDB is prone to a user enumeration vulnerability.

# SPDX-FileCopyrightText: 2012 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:mariadb:mariadb";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.802046");
  script_version("2023-07-25T05:05:58+0000");
  script_cve_id("CVE-2012-5615");
  script_tag(name:"last_modification", value:"2023-07-25 05:05:58 +0000 (Tue, 25 Jul 2023)");
  script_tag(name:"creation_date", value:"2012-12-07 16:13:41 +0530 (Fri, 07 Dec 2012)");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_name("MariaDB Authentication Error Message User Enumeration Vulnerability");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2012 Greenbone AG");
  script_family("Databases");
  script_dependencies("mysql_version.nasl");
  script_mandatory_keys("mariadb/detected");

  script_xref(name:"URL", value:"http://secunia.com/advisories/51427");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/56766");
  script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/23081");
  script_xref(name:"URL", value:"https://mariadb.atlassian.net/browse/MDEV-3909");
  script_xref(name:"URL", value:"https://bugzilla.redhat.com/show_bug.cgi?id=882608");
  script_xref(name:"URL", value:"http://www.openwall.com/lists/oss-security/2012/12/02/3");
  script_xref(name:"URL", value:"http://www.openwall.com/lists/oss-security/2012/12/02/4");

  script_tag(name:"impact", value:"Successful exploitation allows an attacker to obtain valid
  usernames, which may aid them in brute-force password cracking or other attacks.");

  script_tag(name:"affected", value:"MariaDB 5.5.28a, 5.3.11, 5.2.13, 5.1.66 and possibly other versions.");

  script_tag(name:"insight", value:"A MariaDB server will respond with a different message than Access
  Denied, when an attacker authenticates using an incorrect password with the old authentication mechanism
  from MySQL 4.x and below (as used in MariaDB) to a MariaDB 5.x server.");

  script_tag(name:"solution", value:"Update MariaDB to version 5.5.29, 5.3.12, 5.2.14 or later.");

  script_tag(name:"summary", value:"MariaDB is prone to a user enumeration vulnerability.");

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

  exit(0);
}

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

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

if( ! infos = get_app_version_and_location( cpe:CPE, port:port, exit_no_version:TRUE ) )
  exit( 0 );

vers = infos["version"];
path = infos["location"];

if( vers =~ "^5\.5\." && version_is_less( version:vers, test_version:"5.5.29" ) )
  fix = "5.5.29";

else if( vers =~ "^5\.3\." && version_is_less( version:vers, test_version:"5.3.12" ) )
  fix = "5.3.12";

else if( vers =~ "^5\.2\." && version_is_less( version:vers, test_version:"5.2.14" ) )
  fix = "5.2.14";

if( fix ) {
  report = report_fixed_ver( installed_version:vers, fixed_version:fix, install_path:path );
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 99 );

6.3 Medium

AI Score

Confidence

High

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

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

0.065 Low

EPSS

Percentile

93.7%