Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ GLSA 200409-02 ] MySQL: Insecure temporary file creation in mysqlhotcopy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index News & Announcements
View previous topic :: View next topic  
Author Message
GLSA
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Wed Sep 01, 2004 3:52 pm    Post subject: [ GLSA 200409-02 ] MySQL: Insecure temporary file creation i Reply with quote

Gentoo Linux Security Advisory

Title: MySQL: Insecure temporary file creation in mysqlhotcopy (GLSA 200409-02)
Severity: normal
Exploitable: local
Date: September 01, 2004
Bug(s): #60744
ID: 200409-02

Synopsis

The mysqlhotcopy utility can create temporary files with predictable paths, allowing an attacker to use a symlink to trick MySQL into overwriting important data.

Background

MySQL is a popular open-source multi-threaded, multi-user SQL database server.

Affected Packages

Package: dev-db/mysql
Vulnerable: <= 4.0.20
Unaffected: >= 4.0.20-r1
Architectures: All supported architectures


Description

Jeroen van Wolffelaar discovered that the MySQL database hot copy utility (mysqlhotcopy.sh), when using the scp method, uses temporary files with predictable names. A malicious local user with write access to the /tmp directory could create a symbolic link pointing to a file, which may then be overwritten. In cases where mysqlhotcopy is run as root, a malicious user could create a symlink to a critical file such as /etc/passwd and cause it to be overwritten.

Impact

A local attacker could use this vulnerability to destroy other users' data or corrupt and destroy system files, possibly leading to a denial of service condition.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:
Code:
# emerge sync
# emerge -pv ">=dev-db/mysql-4.0.20-r1"
# emerge ">=dev-db/mysql-4.0.20-r1"


References

CAN-2004-0457


Last edited by GLSA on Sun May 07, 2006 4:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index News & Announcements All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum