MySQL mysql_install_db Insecure Temporary File Creation
Secunia Advisory: SA15369
Release Date: 2005-05-19
Popularity: 10,223 views

Critical:
Less critical
Impact: Privilege escalation
Where: Local system
Solution Status: Vendor Patch

Software:MySQL 4.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-1636


Description:
Eric Romang has reported a vulnerability in MySQL, which can be exploited by malicious, local users to conduct various actions on a vulnerable system with escalated privileges.

The vulnerability is caused due to the mysql_install_db script creating the temporary file "mysql_install_db.$$" insecurely. This can be exploited to overwrite arbitrary files with the privileges of the user running the vulnerable script via symlink attacks or execute arbitrary SQL commands by manipulating the file's contents.

The vulnerability has been reported in versions 4.1.11 and prior and development release 5.0.4 and prior.

Solution:
Update to version 4.1.12.
http://dev.mysql.com/downloads/mysql/4.1.html

Provided and/or discovered by:
Eric Romang

Original Advisory:
Eric Romang:
http://www.zataz.net/adviso/mysql-05172005.txt


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

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. 3Com Wireless 8760 Access Point HTTP Request Processing Denial of Service // 66 views
2. Cisco ASA and PIX Security Appliances Multiple Vulnerabilities // 54 views
3. HP OpenView Select Identity Connectors Information Disclosure // 52 views
4. Drupal Content Construction Kit Script Insertion Vulnerabilities // 46 views
5. Microsoft Office Two Code Execution Vulnerabilities // 37 views
6. VLC Media Player Multiple Vulnerabilities // 35 views
7. Opera Multiple Vulnerabilities // 35 views
8. CS-Cart "cs_cookies" SQL Injection Vulnerability // 34 views
9. Sun Java JDK / JRE Multiple Vulnerabilities // 27 views
10. Zeroboard Multiple Vulnerabilities // 26 views