Lucene search

K
nessusThis script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.MYSQL_5_7_3.NASL
HistoryMay 12, 2015 - 12:00 a.m.

MySQL 5.1.x < 5.7.3 SSL/TLS Downgrade MitM (BACKRONYM)

2015-05-1200:00:00
This script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
60

The remote host has a version of the MySQL client library installed that is 5.1.x, 5.5.x, 5.6.x, or 5.7.x prior to 5.7.3. It is, therefore, affected by a security feature bypass vulnerability known as ‘BACKRONYM’ due to a failure to properly enforce the requirement of an SSL/TLS connection when the --ssl client option is used. A man-in-the-middle attacker can exploit this flaw to coerce the client to downgrade to an unencrypted connection, allowing the attacker to disclose data from the database or manipulate database queries.

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

include("audit.inc");
include("compat.inc");

if (description)
{
  script_id(83347);
  script_version("1.11");
  script_cvs_date("Date: 2019/11/25");

  script_cve_id("CVE-2015-3152");
  script_bugtraq_id(74398);

  script_name(english:"MySQL 5.1.x < 5.7.3 SSL/TLS Downgrade MitM (BACKRONYM)");
  script_summary(english:"Checks the version of the MySQL 5.x client libraries.");

  script_set_attribute(attribute:"synopsis", value:
"The remote MySQL client library is affected by a security feature
bypass vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote host has a version of the MySQL client library installed
that is 5.1.x, 5.5.x, 5.6.x, or 5.7.x prior to 5.7.3. It is,
therefore, affected by a security feature bypass vulnerability known
as 'BACKRONYM' due to a failure to properly enforce the requirement of
an SSL/TLS connection when the --ssl client option is used. A
man-in-the-middle attacker can exploit this flaw to coerce the client
to downgrade to an unencrypted connection, allowing the attacker to
disclose data from the database or manipulate database queries.");
  script_set_attribute(attribute:"see_also", value:"https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-3.html");
  script_set_attribute(attribute:"see_also", value:"http://backronym.fail/");
  script_set_attribute(attribute:"solution", value:
"Upgrade to MySQL version 5.7.3 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2015-3152");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_set_attribute(attribute:"in_the_news", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2013/12/03");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/12/03");
  script_set_attribute(attribute:"plugin_publication_date", value:"2015/05/12");

  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:mysql:mysql");
  script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2015-2019 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(fixed:make_list('5.7.3'), min:'5.1', severity:SECURITY_WARNING);
VendorProductVersionCPE
mysqlmysqlcpe:/a:mysql:mysql