mysql user has home directory writable by mysqld
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| mysql-dfsg-5.1 (Ubuntu) |
Medium
|
Unassigned |
Bug Description
Binary package hint: mysql-server-5.0
It is quite serious no-no of having valid writeable home directory for MySQL - anyone with FILE privilege can create files in ~mysql, thus allowing to do .rhost-like (.profile, .forward, .plan ;-) attacks on a system.
Fortunately, MySQL does not allow creating databases (directories) with a dot, so immediate access to ssh directory is not possible, though clever attacker can find ways.. (and even without any shell one can do port forwarding).
There is no need whatsoever for MySQL user to have a 'home directory' - the 'data directory' should be separate from any unix user context.
Changed in mysql-dfsg-5.0: | |
status: | New → Confirmed |
Chuck Short (zulcss) wrote : | #2 |
Which version are you using?
Regards
chuck
Changed in mysql-dfsg-5.0 (Ubuntu): | |
status: | New → Incomplete |
Domas Mituzas (domas-mituzas) wrote : | #3 |
intrepid, seems to be same in lenny, hardy, etc.
Andreas Olsson (andol) wrote : | #4 |
I can confirm that the writable data directory (/var/lib/mysql) is also the default mysql system home directory in at least Hardy (mysql-server 5.0.51a-
Changed in mysql-dfsg-5.0 (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in mysql-dfsg-5.0: | |
importance: | Undecided → Medium |
affects: | mysql-dfsg-5.0 (Ubuntu) → mysql-dfsg-5.1 (Ubuntu) |
Launchpad Janitor (janitor) wrote : | #5 |
This bug was fixed in the package mysql-dfsg-5.1 - 5.1.43-1ubuntu2
---------------
mysql-dfsg-5.1 (5.1.43-1ubuntu2) maverick; urgency=low
[Marc Deslauriers]
* debian/
to /nonexistent to protect against having the /var/lib/mysql
user-writeable. If an attacker can trick mysqld into creating
dot files in the home directory, he could do .rhost-like attacks
on the system. (LP: #293258)
[Chuck Short]
* debian/
the mysql server. It might not be configured properly. (LP: #551097)
-- Chuck Short <email address hidden> Thu, 20 May 2010 15:35:48 -0400
Changed in mysql-dfsg-5.1 (Ubuntu): | |
status: | Confirmed → Fix Released |
resetting back to new, maybe I failed something