Site NavigationCategoriesQuicksearchMy del.icio.us bookmarks
|
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...
|
CalendarArchivesShow tagged entries article award baby backup betatest blog book bzr cebit cluster cms code codebits collaborating community compiling concert conference configuration connector contributing databases development distribution drivers drizzle drupal eclipse embedded engine event falcon forge fosdem froscon gallery git groupware gui Hardware hint hosting innodb installation interview java licensing life linux lvm mailinglist meeting mercurial multimedia mylvmbackup mysql netbeans news opengis openoffice opensolaris opensqlcamp OSS packaging perl Personal php pictures planetmysql plugins presentation programming proxy python RPM rss sfd Site News slides snapshots social solaris subversion sun suse thinkpad travel tweak university update usergroup utility vacation virtualbox virtualization web webinar wiki windows writings |
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