/usr/spool/mail

utzoo!decvax!ucbvax!unix-wizards utzoo!decvax!ucbvax!unix-wizards
Sat Sep 5 05:33:33 AEST 1981


>From James.Gosling at CMU-10A Sat Sep  5 05:23:07 1981
If /usr/spool/mail is writable it's really easy to become super-user.

1. copy the shell to the file /usr/spool/mail/root
2. make it suid
3. send mail to root

When the mail is sent to root the delivery program only appends the mail to
the mailbox and chowns the file to root.  *poof* you have a suid root shell.
The easiest way to stop this is to not have /usr/spool/mail be writable.

					James.



More information about the Comp.unix.wizards mailing list