MariaDB 5.5.43 < 5.5.44 'ADD INDEX' Statement DoS

2015-07-16T00:00:00
ID MARIADB_5_5_44.NASL
Type nessus
Reporter Tenable
Modified 2018-11-15T00:00:00

Description

The version of MariaDB running on the remote host is 5.5.43 prior to 5.5.44. It is, therefore, affected by a denial of service vulnerability due to an unspecified flaw that exists in file sql_parse.cc. A remote, authenticated attacker can exploit this, via a crafted ADD INDEX statement, to crash the database.

                                        
                                            #
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(84798);
  script_version("1.7");
  script_cvs_date("Date: 2018/11/15 20:50:21");


  script_name(english:"MariaDB 5.5.43 < 5.5.44 'ADD INDEX' Statement DoS");
  script_summary(english:"Checks the MariaDB version.");

  script_set_attribute(attribute:"synopsis", value:
"The remote database server is affected by a denial of service
vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of MariaDB running on the remote host is 5.5.43 prior to
5.5.44. It is, therefore, affected by a denial of service
vulnerability due to an unspecified flaw that exists in file
sql_parse.cc. A remote, authenticated attacker can exploit this, via a
crafted ADD INDEX statement, to crash the database.");
  script_set_attribute(attribute:"see_also", value:"https://mariadb.org/mariadb-5-5-44-now-available/");
  script_set_attribute(attribute:"see_also", value:"https://mariadb.atlassian.net/browse/MDEV-8166");
  script_set_attribute(attribute:"solution", value:"Upgrade to MariaDB version 5.5.44 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:N/I:N/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");

  script_set_attribute(attribute:"vuln_publication_date", value:"2015/05/15");
  script_set_attribute(attribute:"patch_publication_date", value:"2015/06/11");
  script_set_attribute(attribute:"plugin_publication_date", value:"2015/07/16");
  
  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:mariadb:mariadb");
  script_end_attributes();

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

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

  script_dependencies("mysql_version.nasl", "mysql_login.nasl");
  script_require_keys("Settings/ParanoidReport");
  script_require_ports("Services/mysql", 3306);

  exit(0);
}

include("mysql_version.inc");

mysql_check_version(variant:'MariaDB', fixed:'5.5.44-MariaDB', min:'5.5.43', severity:SECURITY_WARNING);