MySQL < 5.0.90 / 5.1.43 / 5.5.0-m2 Multiple Buffer Overflows - Nessus

High   Plugin ID: 17835

This page contains detailed information about the MySQL < 5.0.90 / 5.1.43 / 5.5.0-m2 Multiple Buffer Overflows Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 17835
Name: MySQL < 5.0.90 / 5.1.43 / 5.5.0-m2 Multiple Buffer Overflows
Filename: mysql_5_1_43_yaSSL.nasl
Vulnerability Published: 2010-01-26
This Plugin Published: 2012-01-18
Last Modification Time: 2018-11-15
Plugin Version: 1.5
Plugin Type: remote
Plugin Family: Databases
Dependencies: mysql_login.nasl, mysql_version.nasl
Required KB Items [?]: Settings/ParanoidReport

Vulnerability Information


Severity: High
Vulnerability Published: 2010-01-26
Patch Published: N/A
CVE [?]: CVE-2009-4484
CPE [?]: cpe:/a:mysql:mysql

Synopsis

The remote database server is affected by several buffer overflow vulnerabilities.

Description

The version of MySQL installed on the remote host is older than 5.0.90, 5.1.43 or 5.5.0-m2. Such versions use yaSSL prior to 1.9.9, that is vulnerable to multiple buffer overflows. These overflows allow a remote attacker to crash the server.

Solution

Upgrade to MySQL version 5.0.90 / 5.1.43 / 5.5.0-m2 or later.

Public Exploits


Target Network Port(s): 3306
Target Asset(s): Services/mysql
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the MySQL < 5.0.90 / 5.1.43 / 5.5.0-m2 Multiple Buffer Overflows vulnerability:

  1. Metasploit: exploit/linux/mysql/mysql_yassl_getname
    [MySQL yaSSL CertDecoder::GetName Buffer Overflow]
  2. Exploit-DB: exploits/linux/remote/16850.rb
    [EDB-16850: MySQL - yaSSL CertDecoder::GetName Buffer Overflow (Metasploit)]
  3. GitHub: https://github.com/CoolerVoid/Vision
    [CVE-2009-4484]
  4. GitHub: https://github.com/CoolerVoid/Vision2
    [CVE-2009-4484]
  5. GitHub: https://github.com/ptester36/netology_ib_networks_lesson_9
    [CVE-2009-4484]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.2 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.2 (Medium)

Go back to menu.

Plugin Source


This is the mysql_5_1_43_yaSSL.nasl nessus plugin source code. This script is Copyright (C) 2012-2018 and is owned by Tenable, Inc. or an Affiliate thereof.

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

include("compat.inc");

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

  script_cve_id("CVE-2009-4484");
  script_bugtraq_id(37640, 37943, 37974);

  script_name(english:"MySQL < 5.0.90 / 5.1.43 / 5.5.0-m2 Multiple Buffer Overflows");
  script_summary(english:"Checks version of MySQL Server");

  script_set_attribute(attribute:"synopsis", value:
"The remote database server is affected by several buffer overflow
vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The version of MySQL installed on the remote host is older than
 5.0.90, 5.1.43 or 5.5.0-m2. Such versions use yaSSL prior to 1.9.9, 
that is vulnerable to multiple buffer overflows. These overflows allow
a remote attacker to crash the server.");
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?409fbf00");
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?d46c3ad9");
  script_set_attribute(attribute:"see_also", value:"https://bugs.mysql.com/bug.php?id=50227");
  script_set_attribute(attribute:"see_also", value:"http://dev.mysql.com/doc/refman/5.1/en/news-5-1-43.html");
  script_set_attribute(attribute:"see_also", value:"http://dev.mysql.com/doc/refman/5.0/en/news-5-0-90.html");
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?d50b4e7b");
  script_set_attribute(attribute:"see_also", value:"https://lists.mysql.com/commits/96697");
  script_set_attribute(attribute:"see_also", value:"https://isc.sans.edu//diary.html?storyid=7900");
  script_set_attribute(attribute:"solution", value:"Upgrade to MySQL version 5.0.90 / 5.1.43 / 5.5.0-m2 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'MySQL yaSSL CertDecoder::GetName Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_cwe_id(119);

  script_set_attribute(attribute:"vuln_publication_date", value:"2010/01/26");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/01/18");

  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) 2012-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(fixed:make_list('5.0.90', '5.1.43', '5.5.1'), severity:SECURITY_HOLE);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/mysql_5_1_43_yaSSL.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\mysql_5_1_43_yaSSL.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/mysql_5_1_43_yaSSL.nasl

Go back to menu.

How to Run


Here is how to run the MySQL < 5.0.90 / 5.1.43 / 5.5.0-m2 Multiple Buffer Overflows as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Databases plugin family.
  6. On the right side table select MySQL < 5.0.90 / 5.1.43 / 5.5.0-m2 Multiple Buffer Overflows plugin ID 17835.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl mysql_5_1_43_yaSSL.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a mysql_5_1_43_yaSSL.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - mysql_5_1_43_yaSSL.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state mysql_5_1_43_yaSSL.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
  • CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
See also: Similar and related Nessus plugins:
  • 44861 - Debian DSA-1997-1 : mysql-dfsg-5.0 - several vulnerabilities
  • 57446 - GLSA-201201-02 : MySQL: Multiple vulnerabilities
  • 45107 - SuSE 10 Security Update : MySQL (ZYPP Patch Number 6897)
  • 49903 - SuSE 10 Security Update : MySQL (ZYPP Patch Number 6899)
  • 58325 - Ubuntu 8.04 LTS / 10.04 LTS / 10.10 / 11.04 / 11.10 : mysql-5.1, mysql-dfsg-5.0, mysql-dfsg-5.1 vulnerabilities (USN-1397-1)
  • 44585 - Ubuntu 6.06 LTS / 8.04 LTS / 8.10 / 9.04 / 9.10 : mysql-dfsg-5.0, mysql-dfsg-5.1 vulnerabilities (USN-897-1)
  • 63147 - MariaDB 5.1 < 5.1.66 Buffer Overflow
  • 63148 - MariaDB 5.2 < 5.2.13 Buffer Overflow
  • 63149 - MariaDB 5.3 < 5.3.11 Buffer Overflow
  • 63150 - MariaDB 5.5 < 5.5.28a Buffer Overflow
  • 65734 - MySQL 5.5 < 5.5.30 yaSSL Buffer Overflow
  • 17814 - yaSSL 1.7.5 Buffer Overflow

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file mysql_5_1_43_yaSSL.nasl version 1.5. For more plugins, visit the Nessus Plugin Library.

Go back to menu.