|
MySQL Two Vulnerabilities
|
|
|
|
|
Secunia Advisory:
|
SA14547
|
|
|
Release Date:
|
2005-03-11
|
|
Last Update:
|
2006-02-21
|
|
|
Critical:
|

Less critical
|
|
Impact:
|
Privilege escalation System access
|
|
Where:
|
From local network
|
|
Solution Status:
|
Vendor Patch
|
|
| Software: | MySQL 4.x
|
| | CVE reference: | CVE-2005-0709 (Secunia mirror) CVE-2005-0710 (Secunia mirror) CVE-2005-0711 (Secunia mirror) CVE-2005-2572 (Secunia mirror) CVE-2005-2573 (Secunia mirror)
|
|
|
Want to know the next time vulnerabilities are fixed in this product? - Companies can be alerted via email and SMS! |
|
|
Description: Stefano Di Paola has reported two vulnerabilities in MySQL, which potentially can be exploited by malicious users to compromise a vulnerable system and by malicious, local users to perform certain actions on a vulnerable system with escalated privileges.
1) An input validation error in the "udf_init()" function in "sql_udf.cc" causes the "dl" field of the "mysql.func" table to not be properly sanitised before being used to load libraries. This can be exploited by manipulating the "mysql" administrative database directly via a "INSERT INTO" statement instead of using "CREATE FUNCTION".
Successful exploitation allows loading a malicious library from an arbitrary location, but requires "INSERT" and "DELETE" permissions on the "mysql" administrative database.
NOTE: This can be exploited remotely if a user has privileges to create local files via a "SELECT ... INTO OUTFILE" statement.
2) Temporary files are created insecurely with the "CREATE TEMPORARY TABLE" command and can be exploited via symlink attacks to overwrite arbitrary files with the privileges of MySQL.
The vulnerabilities have been reported in versions 4.0.23, and 4.1.10 and prior.
Solution: The vulnerabilities have been fixed in version 4.0.24 and 4.1.10a.
Do not grant untrusted users privileges to perform "CREATE TEMPORARY TABLE" statements and manipulate the "mysql" administrative database.
Provided and/or discovered by: Stefano Di Paola
Changelog: 2005-03-14: Version 4.1.10a released. Updated "Solution" section.
2006-01-24: Added CVE reference.
2006-02-01: Added CVE reference.
2006-02-21: Added link to original advisory.
Original Advisory: http://www.wisec.it/vulns.php?page=4
http://www.wisec.it/vulns.php?page=5
http://www.wisec.it/vulns.php?page=6
|
|
|
|
|
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.
Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
|
|
|
|
22 Related Secunia Security Advisories, displaying 10
|
|
|
1. MySQL MyISAM Table Privilege Check Bypass
|
|
2. MySQL System Table Information Overwrite Vulnerability
|
|
3. MySQL InnoDB Denial of Service Vulnerability
|
|
4. MySQL Denial of Service Vulnerability and Multiple Security Issues
|
|
5. MySQL MERGE Table Privilege Revoke Bypass
|
|
6. MySQL Multibyte Encoding SQL Injection Vulnerability
|
|
7. MySQL Information Disclosure and Buffer Overflow Vulnerabilities
|
|
8. MySQL Query Logging Bypass Security Issue
|
|
9. MySQL Multiple Vulnerabilities
|
|
10. MySQL mysql_install_db Insecure Temporary File Creation
|
Show all related advisories
|
|
|
Send Feedback to Secunia
|
|
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.
Ideas, suggestions, and other feedback are most welcome.
|
|
|
|