Secunia Logo
Netsikker nu! 2008
 
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.
  
Latest Advisories

Today
New advisories: 6
New vulnerabilities: 14
Updated advisories: 10

Less // 133 views
Debian update for openldap
Moderately // 115 views
Debian update for ruby1.9
Moderately // 120 views
Debian update for ruby1.8

10th Oct, 2008
New advisories: 15
New vulnerabilities: 83
Updated advisories: 39

Moderately // 833 views
Red Hat update for cups

Solutions | More...  


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.

Most Popular - 3 Hours

1. Apache Tomcat "RemoteFilterValve" Security Bypass Security Issue // 142 views
2. Debian update for openldap // 117 views
3. Debian update for ruby1.8 // 108 views
4. Debian update for ruby1.9 // 104 views
5. GuildFTPd "LIST" Processing Buffer Overflow Vulnerability // 81 views
6. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 44 views
7. CUPS Multiple Vulnerabilities // 42 views
8. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 36 views
9. FUJITSU Interstage Products Apache Tomcat Security Bypass // 27 views
10. Trend Micro ServerProtect Multiple Buffer Overflow Vulnerabilities // 26 views