Site NavigationDisclaimerThe views or opinions expressed on this blog are my own and do not necessarily reflect the views or opinions of Oracle Corporation. The views or opinions expressed by visitors on this blog are theirs solely and may not reflect mine. Categories |
Tuesday, June 2. 2009Basic MySQL Security: Providing passwords on the command lineComments
Display comments as
(Linear | Threaded)
In fact this is not a serious security risk:
<strong> Your production servers won't have unprivileged shell users on them
</strong> Your mysql passwords probably need to be stored in other places anyway
* Your mysql passwords are probably known by staff who have left; but your firewalls will stop them from connecting externally anyway.
It was true in the past at least with Sys V Unix systems:
http://bugs.mysql.com/bug.php?id=11952
I can't verify if it is still true as I don't have access to a Sun box right now and I don't have time to set up a VM.
It seems to be an issue with the ps command itself and has nothing to do with MySQL.
It's incredible for how long this misconception persists. The bug about the command line password visibility in <strong>ps</strong> was fixed in 2002! And yet, 7 years and and 4 major versions later, the myth of password visibility still lives.
Giuseppe
I just tested it on my Solaris 10 system and it is still a problem. It has not been fixed for Solaris.
Just be careful about other tools that do not mask the password, mtop for example
I stand corrected in shame and surprise!
I'm absolutely certain I've seen this in action recently, but apparently I can't reproduce.
While it is true that MySQL client masks the supplied password, it is still a major security risk, IMHO. Just do this:
cat /home/user/.bash_history | grep "mysql"
And you'll see the password in plain text...
|
QuicksearchCalendar
ArchivesShow tagged entriesCreative Commons |
|||||||||||||||||||||||||||||||||||||||||||||||||
My last post about Basic MySQL Security generated a number of interesting comments, thanks for all your feedback! I'd like to address a few points that were mentioned there: While the problem seems to be a non-issue on Linux, Keith Murphy stated that the
Tracked: Jun 03, 22:45
Tracked: Jun 05, 18:49
Tracked: Jun 05, 22:32
Tracked: Jun 08, 09:28