Path: utzoo!utgpu!water!watmath!watdcsu!dmcanzi From: dmcanzi@watdcsu.waterloo.edu (David Canzi) Newsgroups: comp.unix.wizards Subject: Re: Who dat? Message-ID: <4909@watdcsu.waterloo.edu> Date: 22 Jul 88 03:09:48 GMT References: <199@stca77.stc.oz> <2310@rtech.rtech.com> <3789@rpp386.UUCP> <51@minya.UUCP> <14931@oddjob.UChicago.EDU> Reply-To: dmcanzi@watdcsu.waterloo.edu (David Canzi) Organization: U. of Waterloo, Ontario Lines: 25 In article <14931@oddjob.UChicago.EDU> matt@oddjob.UChicago.EDU (Ka Kahula) writes: >) In article <3789@rpp386.UUCP>, jfh@rpp386.UUCP (John F. Haugh II) writes: >) > have the client create a file with the suid and sgid bits set. ... > >In article <51@minya.UUCP> jc@minya.UUCP (John Chambers) writes: >) Let's see, what I do when you ask my process A to create this file is >) to have a program B sitting around that is setuid/setgid to whomever >) I want you to think A is; ... > >If you have this program B, you can impersonate your victim completely. >Why not just assume that you have your victim's password? It comes >to the same thing. In versions of UNIX with which I am familiar, you need no permissions of any kind on a file to make new links to it. So if there are setuid files owned by root on the same filesystem as the directory where the client process is supposed to create the setuid file, then any random user can impersonate Mr. Root. Maybe a server can securely verify the userid of a client by requiring the client to create a setuid file with name *and* *contents* specified by the server? -- I am not David Canzi, my name is.