GLSA-201308-06 : MySQL: Multiple vulnerabilities - Nessus

Medium   Plugin ID: 69508

This page contains detailed information about the GLSA-201308-06 : 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: 69508
Name: GLSA-201308-06 : MySQL: Multiple vulnerabilities
Filename: gentoo_GLSA-201308-06.nasl
Vulnerability Published: N/A
This Plugin Published: 2013-08-30
Last Modification Time: 2021-01-06
Plugin Version: 1.14
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: Medium
Vulnerability Published: N/A
Patch Published: 2013-08-29
CVE [?]: CVE-2011-2262, CVE-2012-0075, CVE-2012-0087, CVE-2012-0101, CVE-2012-0102, CVE-2012-0112, CVE-2012-0113, CVE-2012-0114, CVE-2012-0115, CVE-2012-0116, CVE-2012-0117, CVE-2012-0118, CVE-2012-0119, CVE-2012-0120, CVE-2012-0484, CVE-2012-0485, CVE-2012-0486, CVE-2012-0487, CVE-2012-0488, CVE-2012-0489, CVE-2012-0490, CVE-2012-0491, CVE-2012-0492, CVE-2012-0493, CVE-2012-0494, CVE-2012-0495, CVE-2012-0496, CVE-2012-0540, CVE-2012-0553, CVE-2012-0572, CVE-2012-0574, CVE-2012-0578, CVE-2012-0583, CVE-2012-1688, CVE-2012-1689, CVE-2012-1690, CVE-2012-1696, CVE-2012-1697, CVE-2012-1702, CVE-2012-1703, CVE-2012-1705, CVE-2012-1734, CVE-2012-2102, CVE-2012-2122, CVE-2012-2749, CVE-2012-3150, CVE-2012-3158, CVE-2012-3160, CVE-2012-3163, CVE-2012-3166, CVE-2012-3167, CVE-2012-3173, CVE-2012-3177, CVE-2012-3180, CVE-2012-3197, CVE-2012-5060, CVE-2012-5096, CVE-2012-5611, CVE-2012-5612, CVE-2012-5613, CVE-2012-5614, CVE-2012-5615, CVE-2012-5627, CVE-2013-0367, CVE-2013-0368, CVE-2013-0371, CVE-2013-0375, CVE-2013-0383, CVE-2013-0384, CVE-2013-0385, CVE-2013-0386, CVE-2013-0389, CVE-2013-1492, CVE-2013-1502, CVE-2013-1506, CVE-2013-1511, CVE-2013-1512, CVE-2013-1521, CVE-2013-1523, CVE-2013-1526, CVE-2013-1531, CVE-2013-1532, CVE-2013-1544, CVE-2013-1548, CVE-2013-1552, CVE-2013-1555, CVE-2013-1566, CVE-2013-1567, CVE-2013-1570, CVE-2013-1623, CVE-2013-2375, CVE-2013-2376, CVE-2013-2378, CVE-2013-2381, CVE-2013-2389, CVE-2013-2391, CVE-2013-2392, CVE-2013-2395, CVE-2013-3802, CVE-2013-3804, CVE-2013-3808
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-201308-06 (MySQL: Multiple vulnerabilities)

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

A remote attacker could send a specially crafted request, possibly resulting in execution of arbitrary code with the privileges of the application or a Denial of Service condition. 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.70'

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the GLSA-201308-06 : MySQL: Multiple vulnerabilities vulnerability:

  1. Metasploit: exploit/windows/mysql/mysql_start_up
    [Oracle MySQL for Microsoft Windows FILE Privilege Abuse]
  2. Metasploit: auxiliary/scanner/mysql/mysql_authbypass_hashdump
    [MySQL Authentication Bypass Password Dump]
  3. Metasploit: exploit/windows/mysql/mysql_mof
    [Oracle MySQL for Microsoft Windows MOF Execution]
  4. Exploit-DB: exploits/windows/remote/23179.rb
    [EDB-23179: Oracle MySQL (Windows) - MOF Execution (Metasploit)]
  5. Exploit-DB: exploits/windows/remote/35777.rb
    [EDB-35777: Oracle MySQL (Windows) - FILE Privilege Abuse (Metasploit)]
  6. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-0075]
  7. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-0087]
  8. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-0101]
  9. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-0102]
  10. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-0114]
  11. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-0484]
  12. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-0490]
  13. GitHub: https://github.com/scmanjarrez/CVEScannerV2
    [CVE-2012-0553]
  14. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-1696]
  15. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-1697]
  16. GitHub: https://github.com/0day666/Vulnerability-verification
    [CVE-2012-2122]
  17. GitHub: https://github.com/Avinza/CVE-2012-2122-scanner
    [CVE-2012-2122: This is used to scan for CVE-2012-2122 vulnerable servers.]
  18. GitHub: https://github.com/cyberharsh/Oracle-mysql-CVE-2012-2122
    [CVE-2012-2122]
  19. GitHub: https://github.com/enderphan94/HackingCountermeasure
    [CVE-2012-2122]
  20. GitHub: https://github.com/metaDNA/hackingteamhack
    [CVE-2012-2122]
  21. GitHub: https://github.com/safe6Sec/PentestNote
    [CVE-2012-2122]
  22. GitHub: https://github.com/scmanjarrez/CVEScannerV2
    [CVE-2012-3158]
  23. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-3160]
  24. GitHub: https://github.com/scmanjarrez/CVEScannerV2
    [CVE-2012-3163]
  25. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-3166]
  26. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2012-3177]
  27. GitHub: https://github.com/mudongliang/LinuxFlaw/tree/master/CVE-2012-5612
    [CVE-2012-5612]
  28. GitHub: https://github.com/Hood3dRob1n/MySQL-Fu.rb
    [CVE-2012-5613: MySQL-Fu is a Ruby based MySQL Client Script I wrote. It does most of the stuff a ...]
  29. GitHub: https://github.com/w4fz5uck5/UDFPwn-CVE-2012-5613
    [CVE-2012-5613: MySQL 4.x/5.0 (Linux) - User-Defined Function (UDF) Dynamic Library (2) automation ...]
  30. GitHub: https://github.com/scmanjarrez/CVEScannerV2
    [CVE-2013-1492]
  31. GitHub: https://github.com/ycamper/censys-scripts
    [CVE-2013-2392]
  32. Immunity Canvas: CANVAS

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:S/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:9.0 (High)
Impact Subscore:10.0
Exploitability Subscore:8.0
CVSS Temporal Score:7.4 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.4 (High)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N/E:F/RL:O/RC:C
CVSS Base Score:6.4 (Medium)
Impact Subscore:2.7
Exploitability Subscore:3.1
CVSS Temporal Score:5.9 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:5.9 (Medium)

Go back to menu.

Plugin Source


This is the gentoo_GLSA-201308-06.nasl nessus plugin source code. This script is Copyright (C) 2013-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 201308-06.
#
# 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(69508);
  script_version("1.14");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/06");

  script_cve_id("CVE-2011-2262", "CVE-2012-0075", "CVE-2012-0087", "CVE-2012-0101", "CVE-2012-0102", "CVE-2012-0112", "CVE-2012-0113", "CVE-2012-0114", "CVE-2012-0115", "CVE-2012-0116", "CVE-2012-0117", "CVE-2012-0118", "CVE-2012-0119", "CVE-2012-0120", "CVE-2012-0484", "CVE-2012-0485", "CVE-2012-0486", "CVE-2012-0487", "CVE-2012-0488", "CVE-2012-0489", "CVE-2012-0490", "CVE-2012-0491", "CVE-2012-0492", "CVE-2012-0493", "CVE-2012-0494", "CVE-2012-0495", "CVE-2012-0496", "CVE-2012-0540", "CVE-2012-0553", "CVE-2012-0572", "CVE-2012-0574", "CVE-2012-0578", "CVE-2012-0583", "CVE-2012-1688", "CVE-2012-1689", "CVE-2012-1690", "CVE-2012-1696", "CVE-2012-1697", "CVE-2012-1702", "CVE-2012-1703", "CVE-2012-1705", "CVE-2012-1734", "CVE-2012-2102", "CVE-2012-2122", "CVE-2012-2749", "CVE-2012-3150", "CVE-2012-3158", "CVE-2012-3160", "CVE-2012-3163", "CVE-2012-3166", "CVE-2012-3167", "CVE-2012-3173", "CVE-2012-3177", "CVE-2012-3180", "CVE-2012-3197", "CVE-2012-5060", "CVE-2012-5096", "CVE-2012-5611", "CVE-2012-5612", "CVE-2012-5613", "CVE-2012-5614", "CVE-2012-5615", "CVE-2012-5627", "CVE-2013-0367", "CVE-2013-0368", "CVE-2013-0371", "CVE-2013-0375", "CVE-2013-0383", "CVE-2013-0384", "CVE-2013-0385", "CVE-2013-0386", "CVE-2013-0389", "CVE-2013-1492", "CVE-2013-1502", "CVE-2013-1506", "CVE-2013-1511", "CVE-2013-1512", "CVE-2013-1521", "CVE-2013-1523", "CVE-2013-1526", "CVE-2013-1531", "CVE-2013-1532", "CVE-2013-1544", "CVE-2013-1548", "CVE-2013-1552", "CVE-2013-1555", "CVE-2013-1566", "CVE-2013-1567", "CVE-2013-1570", "CVE-2013-1623", "CVE-2013-2375", "CVE-2013-2376", "CVE-2013-2378", "CVE-2013-2381", "CVE-2013-2389", "CVE-2013-2391", "CVE-2013-2392", "CVE-2013-2395", "CVE-2013-3802", "CVE-2013-3804", "CVE-2013-3808");
  script_bugtraq_id(51271, 51488, 51493, 51502, 51503, 51504, 51505, 51506, 51507, 51508, 51509, 51510, 51511, 51512, 51513, 51514, 51515, 51516, 51517, 51518, 51519, 51520, 51521, 51522, 51523, 51524, 51525, 51526, 52931, 53058, 53061, 53064, 53067, 53071, 53074, 53911, 54540, 54547, 54551, 55120, 55990, 56003, 56005, 56017, 56018, 56021, 56027, 56028, 56036, 56041, 56766, 56768, 56769, 56771, 56776, 56837, 57334, 57385, 57388, 57391, 57397, 57400, 57405, 57408, 57410, 57411, 57412, 57414, 57415, 57416, 57417, 57418, 57780, 58594, 58595, 59173, 59180, 59188, 59196, 59201, 59202, 59205, 59207, 59209, 59210, 59211, 59215, 59216, 59217, 59218, 59223, 59224, 59225, 59227, 59229, 59232, 59237, 59239, 59242, 61227, 61244, 61260);
  script_xref(name:"GLSA", value:"201308-06");

  script_name(english:"GLSA-201308-06 : 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-201308-06
(MySQL: Multiple vulnerabilities)

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

    A remote attacker could send a specially crafted request, possibly
      resulting in execution of arbitrary code with the privileges of the
      application or a Denial of Service condition.
  
Workaround :

    There is no known workaround at this time."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security.gentoo.org/glsa/201308-06"
  );
  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.70'"
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Oracle MySQL for Microsoft Windows FILE Privilege Abuse');
  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:'CANVAS');

  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:"2013/08/29");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/08/30");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2013-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.70"), vulnerable:make_list("lt 5.1.70"))) 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-201308-06.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\gentoo_GLSA-201308-06.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/gentoo_GLSA-201308-06.nasl

Go back to menu.

How to Run


Here is how to run the GLSA-201308-06 : 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-201308-06 : MySQL: Multiple vulnerabilities plugin ID 69508.
  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-201308-06.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a gentoo_GLSA-201308-06.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-201308-06.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-201308-06.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: GLSA | Gentoo Linux Security Advisory: See also: Similar and related Nessus plugins:
  • 65732 - MariaDB 5.5 < 5.5.30 Multiple Vulnerabilities
  • 65733 - MySQL 5.1 < 5.1.68 Multiple Vulnerabilities
  • 65734 - MySQL 5.5 < 5.5.30 yaSSL Buffer Overflow
  • 66114 - Mandriva Linux Security Advisory : mariadb (MDVSA-2013:102)
  • 66177 - MySQL 5.1 < 5.1.69 Multiple Vulnerabilities
  • 66178 - MySQL 5.5 < 5.5.31 Multiple Vulnerabilities
  • 66179 - MySQL 5.6.x < 5.6.11 Multiple Vulnerabilities
  • 66215 - Ubuntu 10.04 LTS / 11.10 / 12.04 LTS / 12.10 : mysql-5.1, mysql-5.5, mysql-dfsg-5.1 vulnerabilities (USN-1807-1)
  • 66225 - RHEL 6 : mysql (RHSA-2013:0772)
  • 66229 - Scientific Linux Security Update : mysql on SL6.x i386/x86_64 (20130425)
  • 66231 - Ubuntu 13.04 : mysql-5.5 vulnerabilities (USN-1807-2)
  • 66257 - CentOS 6 : mysql (CESA-2013:0772)
  • 66384 - Debian DSA-2667-1 : mysql-5.5 - several vulnerabilities
  • 68453 - Oracle Linux 6 : mysql (ELSA-2012-0105)
  • 68457 - Oracle Linux 5 : mysql (ELSA-2012-0127)
  • 68658 - Oracle Linux 6 : mysql (ELSA-2012-1462)
  • 68817 - Oracle Linux 6 : mysql (ELSA-2013-0772)
  • 69651 - Amazon Linux AMI : mysql (ALAS-2012-44)
  • 69700 - Amazon Linux AMI : mysql55 (ALAS-2012-93)
  • 69745 - Amazon Linux AMI : mysql51 (ALAS-2013-186)
  • 69746 - Amazon Linux AMI : mysql55 (ALAS-2013-187)
  • 74623 - openSUSE Security Update : mysql-community-server (openSUSE-2012-273)
  • 74624 - openSUSE Security Update : mariadb (openSUSE-2012-274)
  • 74626 - openSUSE Security Update : mysql-cluster (openSUSE-SU-2012:0617-1)
  • 74654 - openSUSE Security Update : mysql-community-server (openSUSE-2012-332)
  • 74673 - openSUSE Security Update : mysql-cluster (openSUSE-SU-2012:0860-1)
  • 77670 - MySQL 5.6.x < 5.6.20 Multiple Vulnerabilities (October 2014 CPU)
  • 78149 - F5 Networks BIG-IP : Multiple MySQL vulnerabilities (K14410)
  • 78158 - F5 Networks BIG-IP : MySQL Server vulnerability (SOL14907)
  • 78505 - Ubuntu 12.04 LTS / 14.04 LTS : mysql-5.5 vulnerabilities (USN-2384-1)
  • 78589 - Debian DSA-3054-1 : mysql-5.5 - security update
  • 79299 - CentOS 5 : mysql55-mysql (CESA-2014:1859)
  • 79300 - CentOS 7 : mariadb (CESA-2014:1861)
  • 79302 - RHEL 5 : mysql55-mysql (RHSA-2014:1859)

Version


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

Go back to menu.