Red Hat Bugzilla – Bug 6232
Security issue with autofs
Last modified: 2008-05-01 11:37:52 EDT
I was having a play around with autofs. The default
installation provides a mount point of /misc/cd which will
Say, for instance, I have a suid root bash shell burned onto
a CD. I can gain root access. That easy.
The solution would be to distribute the default
/etc/auto.misc to have the cd mount point with the
parameters -fstype=iso9660,nosuid,nodev,noexec to be safer.
The nosuid and nodev flags will be added to the defaults for autofs-3.1.4-2 and
I don't believe adding noexec would make anything safer, and it would certainly
annoy anyone trying to install software from a disc with an installer on the CD
itself (lots of unhappy Quake III players, not a pretty thought). But I'm not a
security expert. If you know of any holes that remain open by not adding
noexec, please reopen this bug and I'll take a closer look.