GLSA-201201-02 : MySQL: Multiple vulnerabilities - Nessus

High   Plugin ID: 57446

This page contains detailed information about the GLSA-201201-02 : MySQL: Multiple vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 57446
Name: GLSA-201201-02 : MySQL: Multiple vulnerabilities
Filename: gentoo_GLSA-201201-02.nasl
Vulnerability Published: N/A
This Plugin Published: 2012-01-06
Last Modification Time: 2021-01-06
Plugin Version: 1.11
Plugin Type: local
Plugin Family: Gentoo Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/Gentoo/qpkg-list, Host/Gentoo/release, Host/local_checks_enabled

Vulnerability Information


Severity: High
Vulnerability Published: N/A
Patch Published: 2012-01-05
CVE [?]: CVE-2008-3963, CVE-2008-4097, CVE-2008-4098, CVE-2008-4456, CVE-2008-7247, CVE-2009-2446, CVE-2009-4019, CVE-2009-4028, CVE-2009-4484, CVE-2010-1621, CVE-2010-1626, CVE-2010-1848, CVE-2010-1849, CVE-2010-1850, CVE-2010-2008, CVE-2010-3676, CVE-2010-3677, CVE-2010-3678, CVE-2010-3679, CVE-2010-3680, CVE-2010-3681, CVE-2010-3682, CVE-2010-3683, CVE-2010-3833, CVE-2010-3834, CVE-2010-3835, CVE-2010-3836, CVE-2010-3837, CVE-2010-3838, CVE-2010-3839, CVE-2010-3840
CPE [?]: cpe:/o:gentoo:linux, p-cpe:/a:gentoo:linux:mysql

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201201-02 (MySQL: Multiple vulnerabilities)

Multiple vulnerabilities have been discovered in MySQL. Please review the CVE identifiers referenced below for details. Impact :

An unauthenticated remote attacker may be able to execute arbitrary code with the privileges of the MySQL process, cause a Denial of Service condition, bypass security restrictions, uninstall arbitrary MySQL plugins, or conduct Man-in-the-Middle and Cross-Site Scripting attacks. Workaround :

There is no known workaround at this time.

Solution

All MySQL users should upgrade to the latest version: # emerge --sync # emerge --ask --oneshot --verbose '>=dev-db/mysql-5.1.56' NOTE: This is a legacy GLSA. Updates for all affected architectures are available since May 14, 2011. It is likely that your system is already no longer affected by this issue.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the GLSA-201201-02 : MySQL: Multiple vulnerabilities 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/tomwillfixit/alpine-cvecheck
    [CVE-2008-3963]
  4. GitHub: https://github.com/CoolerVoid/Vision
    [CVE-2008-4097]
  5. GitHub: https://github.com/CoolerVoid/Vision2
    [CVE-2008-4097]
  6. GitHub: https://github.com/ptester36/netology_ib_networks_lesson_9
    [CVE-2008-4097]
  7. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2008-4098]
  8. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2008-7247]
  9. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2009-2446]
  10. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2009-4019]
  11. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2009-4028]
  12. GitHub: https://github.com/CoolerVoid/Vision
    [CVE-2009-4484]
  13. GitHub: https://github.com/CoolerVoid/Vision2
    [CVE-2009-4484]
  14. GitHub: https://github.com/ptester36/netology_ib_networks_lesson_9
    [CVE-2009-4484]
  15. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2010-1848]
  16. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2010-1849]
  17. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2010-1850]
  18. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2010-3677]
  19. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2010-3682]
  20. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2010-3833]
  21. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2010-3834]
  22. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2010-3836]
  23. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2010-3837]
  24. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2010-3838]
  25. Immunity Canvas: White_Phosphorus

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:M/Au:S/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:8.5 (High)
Impact Subscore:10.0
Exploitability Subscore:6.8
CVSS Temporal Score:7.0 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.0 (High)

Go back to menu.

Plugin Source


This is the gentoo_GLSA-201201-02.nasl nessus plugin source code. This script is Copyright (C) 2012-2021 Tenable Network Security, Inc.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Gentoo Linux Security Advisory GLSA 201201-02.
#
# The advisory text is Copyright (C) 2001-2016 Gentoo Foundation, Inc.
# and licensed under the Creative Commons - Attribution / Share Alike 
# license. See http://creativecommons.org/licenses/by-sa/3.0/
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(57446);
  script_version("1.11");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/06");

  script_cve_id("CVE-2008-3963", "CVE-2008-4097", "CVE-2008-4098", "CVE-2008-4456", "CVE-2008-7247", "CVE-2009-2446", "CVE-2009-4019", "CVE-2009-4028", "CVE-2009-4484", "CVE-2010-1621", "CVE-2010-1626", "CVE-2010-1848", "CVE-2010-1849", "CVE-2010-1850", "CVE-2010-2008", "CVE-2010-3676", "CVE-2010-3677", "CVE-2010-3678", "CVE-2010-3679", "CVE-2010-3680", "CVE-2010-3681", "CVE-2010-3682", "CVE-2010-3683", "CVE-2010-3833", "CVE-2010-3834", "CVE-2010-3835", "CVE-2010-3836", "CVE-2010-3837", "CVE-2010-3838", "CVE-2010-3839", "CVE-2010-3840");
  script_bugtraq_id(29106, 31081, 31486, 35609, 37076, 37297, 37640, 37943, 38043, 39543, 40100, 40106, 40109, 40257, 41198, 42596, 42598, 42599, 42625, 42633, 42638, 42643, 42646, 43676);
  script_xref(name:"GLSA", value:"201201-02");

  script_name(english:"GLSA-201201-02 : MySQL: Multiple vulnerabilities");
  script_summary(english:"Checks for updated package(s) in /var/db/pkg");

  script_set_attribute(
    attribute:"synopsis", 
    value:
"The remote Gentoo host is missing one or more security-related
patches."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"The remote host is affected by the vulnerability described in GLSA-201201-02
(MySQL: Multiple vulnerabilities)

    Multiple vulnerabilities have been discovered in MySQL. Please review
      the CVE identifiers referenced below for details.
  
Impact :

    An unauthenticated remote attacker may be able to execute arbitrary code
      with the privileges of the MySQL process, cause a Denial of Service
      condition, bypass security restrictions, uninstall arbitrary MySQL
      plugins, or conduct Man-in-the-Middle and Cross-Site Scripting attacks.
  
Workaround :

    There is no known workaround at this time."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security.gentoo.org/glsa/201201-02"
  );
  script_set_attribute(
    attribute:"solution", 
    value:
"All MySQL users should upgrade to the latest version:
      # emerge --sync
      # emerge --ask --oneshot --verbose '>=dev-db/mysql-5.1.56'
    NOTE: This is a legacy GLSA. Updates for all affected architectures are
      available since May 14, 2011. It is likely that your system is already no
      longer affected by this issue."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:S/C:C/I:C/A:C");
  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_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'White_Phosphorus');
  script_cwe_id(20, 59, 79, 119, 134, 264);

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:mysql");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:gentoo:linux");

  script_set_attribute(attribute:"patch_publication_date", value:"2012/01/05");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/01/06");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2012-2021 Tenable Network Security, Inc.");
  script_family(english:"Gentoo Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/Gentoo/release", "Host/Gentoo/qpkg-list");

  exit(0);
}


include("audit.inc");
include("global_settings.inc");
include("qpkg.inc");

if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if (!get_kb_item("Host/Gentoo/release")) audit(AUDIT_OS_NOT, "Gentoo");
if (!get_kb_item("Host/Gentoo/qpkg-list")) audit(AUDIT_PACKAGE_LIST_MISSING);


flag = 0;

if (qpkg_check(package:"dev-db/mysql", unaffected:make_list("ge 5.1.56"), vulnerable:make_list("lt 5.1.56"))) flag++;

if (flag)
{
  if (report_verbosity > 0) security_hole(port:0, extra:qpkg_report_get());
  else security_hole(0);
  exit(0);
}
else
{
  tested = qpkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, "MySQL");
}

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

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

Go back to menu.

How to Run


Here is how to run the GLSA-201201-02 : MySQL: Multiple vulnerabilities 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 Gentoo Local Security Checks plugin family.
  6. On the right side table select GLSA-201201-02 : MySQL: Multiple vulnerabilities plugin ID 57446.
  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 gentoo_GLSA-201201-02.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a gentoo_GLSA-201201-02.nasl -t <IP/HOST>

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

/opt/nessus/bin/nasl -T - gentoo_GLSA-201201-02.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 gentoo_GLSA-201201-02.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: GLSA | Gentoo Linux Security Advisory: CWE | Common Weakness Enumeration:
  • CWE-20 (Weakness) Improper Input Validation
  • CWE-59 (Weakness) Improper Link Resolution Before File Access ('Link Following')
  • CWE-79 (Weakness) Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-134 (Weakness) Use of Externally-Controlled Format String
  • CWE-264 (Category) Permissions, Privileges, and Access Controls
See also: Similar and related Nessus plugins:
  • 50523 - SuSE9 Security Update : MySQL (YOU Patch Number 12661)
  • 50533 - Mandriva Linux Security Advisory : mysql (MDVSA-2010:222)
  • 50534 - Mandriva Linux Security Advisory : mysql (MDVSA-2010:223)
  • 50548 - Mac OS X 10.6.x < 10.6.5 Multiple Vulnerabilities
  • 50549 - Mac OS X Multiple Vulnerabilities (Security Update 2010-007)
  • 50573 - Ubuntu 6.06 LTS / 8.04 LTS / 9.10 / 10.04 LTS / 10.10 : mysql-5.1, mysql-dfsg-5.0, mysql-dfsg-5.1 vulnerabilities (USN-1017-1)
  • 50805 - CentOS 4 : mysql (CESA-2010:0824)
  • 50806 - CentOS 5 : mysql (CESA-2010:0825)
  • 50935 - SuSE 11 Security Update : MySQL (SAT Patch Number 2317)
  • 50936 - SuSE 11 / 11.1 Security Update : MySQL (SAT Patch Numbers 3220 / 3243)
  • 51530 - Debian DSA-2143-1 : mysql-dfsg-5.0 - several vulnerabilities
  • 51571 - RHEL 6 : mysql (RHSA-2011:0164)
  • 51804 - Mandriva Linux Security Advisory : mysql (MDVSA-2011:012)
  • 55415 - Mac OS X Multiple Vulnerabilities (Security Update 2011-004)
  • 55416 - Mac OS X 10.6.x < 10.6.8 Multiple Vulnerabilities
  • 57114 - SuSE 11.1 Security Update : MySQL (SAT Patch Number 5285)
  • 57115 - SuSE 11.1 Security Update : MySQL (SAT Patch Number 5285)
  • 57930 - RHEL 5 : mysql (RHSA-2012:0127)
  • 57951 - CentOS 5 : mysql (CESA-2012:0127)
  • 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)
  • 60655 - Scientific Linux Security Update : mysql on SL5.x i386/x86_64
  • 60735 - Scientific Linux Security Update : mysql on SL4.x i386/x86_64
  • 60736 - Scientific Linux Security Update : mysql on SL5.x i386/x86_64
  • 60796 - Scientific Linux Security Update : mysql on SL5.x i386/x86_64
  • 60883 - Scientific Linux Security Update : mysql on SL4.x i386/x86_64
  • 60884 - Scientific Linux Security Update : mysql on SL5.x i386/x86_64
  • 60940 - Scientific Linux Security Update : mysql on SL6.x i386/x86_64
  • 63890 - RHEL 5 : mysql (RHSA-2009:1289)
  • 67997 - Oracle Linux 5 : mysql (ELSA-2010-0109)
  • 67998 - Oracle Linux 4 : mysql (ELSA-2010-0110)
  • 68046 - Oracle Linux 5 : mysql (ELSA-2010-0442)
  • 68133 - Oracle Linux 4 : mysql (ELSA-2010-0824)
  • 68134 - Oracle Linux 5 : mysql (ELSA-2010-0825)
  • 68184 - Oracle Linux 6 : mysql (ELSA-2011-0164)

Version


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

Go back to menu.