Bugs in the at command - summary
ras at rayssd.UUCP
ras at rayssd.UUCP
Wed Jul 4 03:28:53 AEST 1984
Sorry for not responding to the first request, but there is
another bug that may be out there on some systems, depending
on how protections are set up. These were found on V7 and 4.* BSD
systems, and the fix is easy enough.
The problem is that "at" uses the owner of the file to establish
the uid & gid of the process, and that if the spool/at directory is
writable, or (worse yet) the files themselves are writeable, an un-
authorized user could add stuff in, etc.
Similarly, if the directory is writeable, and the (ab)user finds a
willing and permissive file (owned by root, writable by all, and in
the same file system as spool/at), he or she can edit it and link it
into the spool/at directory. Similar things can happen if you allow
users to "chown" ownership away.
One fix is to make the spool/at directory 711 mode and "at" setuid
during the creat and chown, and then do a setuid(getuid()). I imagine
there are others.
--
Ralph Shaw, {allegra, decvax!brunix, linus, ccieng5}!rayssd!ras
Raytheon Co, Submarine Signal Division., Portsmouth, RI 02871
More information about the Comp.unix.wizards
mailing list