vendor:
MySQL
by:
Marco Ivaldi
7.2
CVSS
HIGH
Local Privilege Escalation
264
CWE
Product Name: MySQL
Affected Version From: MySQL 4.1.10a and MySQL 4.0.24
Affected Version To: MySQL 4.1.14
Patch Exists: YES
Related CWE: CVE-2006-0257, CVE-2006-0258, CVE-2006-0259, CVE-2006-0260
CPE: a:mysql:mysql
Metasploit:
N/A
Other Scripts:
https://www.infosecmatter.com/nessus-plugin-library/?id=63831, https://www.infosecmatter.com/nessus-plugin-library/?id=21140, https://www.infosecmatter.com/nessus-plugin-library/?id=21402, https://www.infosecmatter.com/nessus-plugin-library/?id=21141, https://www.infosecmatter.com/nessus-plugin-library/?id=23736, https://www.infosecmatter.com/nessus-plugin-library/?id=21148, https://www.infosecmatter.com/nessus-plugin-library/?id=73115, https://www.infosecmatter.com/list-of-metasploit-windows-exploits-detailed-spreadsheet/, https://www.infosecmatter.com/nessus-plugin-library/?id=31418, https://www.infosecmatter.com/nessus-plugin-library/?id=27522, https://www.infosecmatter.com/nessus-plugin-library/?id=150280, https://www.infosecmatter.com/nessus-plugin-library/?id=151272, https://www.infosecmatter.com/list-of-metasploit-windows-exploits-detailed-spreadsheet/
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2006
MySQL UDF Local Privilege Escalation
This is an exploit for local privilege escalation through MySQL run with root privileges. It is slightly modified to work with newer versions of the open-source database. Tested on MySQL 4.1.14. Starting from MySQL 4.1.10a and MySQL 4.0.24, newer releases include fixes for the security vulnerabilities in the handling of User Defined Functions (UDFs) reported by Stefano Di Paola. The exploit involves creating a dynamic library for do_system() MySQL UDF, compiling it, loading it into a table, selecting it into a dumpfile, creating a function with the soname of the dynamic library, and then executing the function with a command to gain root privileges.
Mitigation:
MySQL should not be run with root privileges. Additionally, users should ensure that they are running the latest version of MySQL.