|
MySQL Two Vulnerabilities
|
|
Secunia Advisory:
|
SA14547
|
|
|
Release Date:
|
2005-03-11
|
|
Last Update:
|
2006-02-21
|
|
Popularity:
|
16,700 views
|
|
|
Critical:
|
 Less critical
|
|
Impact:
|
Privilege escalation System access
|
|
Where:
|
From local network
|
|
Solution Status:
|
Vendor Patch
|
|
| Software: | MySQL 4.x
|
|
|
Subscribe:
|
Instant alerts on relevant vulnerabilities
|
|
| CVE reference: | CVE-2005-0709 CVE-2005-0710 CVE-2005-0711 CVE-2005-2572 CVE-2005-2573
|
|
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
|
|
|
Track this Secunia Advisory
|
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.
Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.
|
|
|
About this Secunia Advisory
|
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.
|