The OpenNET Project
 
Search (keywords):  SOFT ARTICLES TIPS & TRICKS SECURITY
LINKS NEWS MAN DOCUMENTATION


[UNIX] MySQL Insecure Temporary File Handling


<< Previous INDEX Search src Set bookmark Go to bookmark Next >>
From: SecuriTeam <support@securiteam.com.>
To: [email protected]
Date: 19 May 2005 16:23:43 +0200
Subject: [UNIX] MySQL Insecure Temporary File Handling
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20050519143232.E559A57FD@mail.tyumen.ru.>
X-Virus-Scanned: antivirus-gw at tyumen.ru

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -




  MySQL Insecure Temporary File Handling
------------------------------------------------------------------------


SUMMARY

"The  <http://www.mysql.com>; MySQL database server is the world's most 
popular open source database."

MySQL handle temporary files in an unsafe way while creating new database, 
allowing a malicious attacker to inject arbitrary SQL commands.

DETAILS

Vulnerable Systems:
 * MySQL versions 4.0.11 and prior
 * MySQL versions 5.0.4 and prior

Immune Systems:
 * MySQL version 4.0.12

MySQL contain a security flaw that could allow a malicious local attacker 
to inject arbitrary SQL commands during database creation process.

For example:
A malicious local attacker could create an mysql account accessible from 
local (or everywhere) with ALL privileges on all databases.

Example:
tmp_file=/tmp/mysql_install_db.$$

Then on:
226> echo "use mysql;" > $tmp_file
227> cat $tmp_file $fill_help_tables | eval "$mysqld_install_cmd_line"
228> res=$?
229> rm $tmp_file

Patch Availability:
MySQL versions 5.* is still vulnerable.

Disclosure Timeline:
07.05.05 - Vulnerability discovered
09.05.05 - Vendor notified
09.05.05 - Vendor response
17.05.05 - Vendor published fix
17.05.05 - Disclosure


ADDITIONAL INFORMATION

The information has been provided by  <mailto:exploits@zataz.net.> 
ZATAZ.net.
The original article can be found at:  
<http://www.zataz.net/adviso/mysql-05172005.txt>; 
http://www.zataz.net/adviso/mysql-05172005.txt




This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: [email protected] In order to subscribe to the mailing list, simply forward this email to: [email protected]

DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.

<< Previous INDEX Search src Set bookmark Go to bookmark Next >>



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру