[UNIX] MySQL Insecure Temporary File Handling

SecuriTeam <[email protected]>
Newsgroups gmane.comp.security.securiteam
Message-ID <[email protected]>
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:[email protected]> 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.