From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075324106678.tru64-unix-managers.marc@archive.invalid> From: Murat Balci Date: Sun, 22 Oct 1995 17:30:18 +0000 To: tru64-unix-managers Subject: SUMMARY : SETUID via NFS X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075324106678 Hi, my question was ; Today I realized a terible problem ! Any ordinari user can mount a remote file system if they allow. Ok, this might be a good thing but it has also many security problems. Imagine, one of our users is the root of an another system ( even this might be a Linux ! ). Then hi create a setuid program at remote host, and change its owner to root, then export this dir. Then login my system and then mount that dir, then he became root ! Yes hard to think but, this *WORKS* ! I immediately changes the permitions of mount* files to 700, but this not a solution, any body can find this executables from an another DEC. Do you have any solution for this problem ? - o - Thanx to ; maillard@atyisa.enet.dec.com Stam Nicolis Pecsenyanszky Istvan Marcel A. Bernards golden@falcon.invincible.com Ezra Peisach Sean Watson Dan Riley Craig Hagan gosejac@rto.dec.com cyrmiche@sidoci.qc.ca Mandell Degerness - o - However, really no need to worry. What I tried and became root at an other machine, where I'm not SU, was a file system which was mounted by the root of this machine. Breefly Sean Watson explains the fact belove Thanx for all. Sincerely. murat. - o - Sean Watson wrotes ; Murat, No need to be so worried. If you check the OSF man page for mount, you will notice something about "nosuid" and "suid" under mount options. If you aren't root, you're forced to use "nosuid" when you mount the file system. (If you are root, suid is the default but nosuid still works.) I really did try this on a PC running Linux and our Alpha running Digitial Unix 3.2. Sean P.S. This is not to downplay the security implications that abound in mounting files via NFS, only they aren't quite so easy to exploit. ---- Murat Balci UNIX sys. Admin s-mail : Ege Universitesi B.A.U.M - Bornova, IZMIR, TURKIYE. e-mail : balci@baum01.ege.edu.tr Phone :+(90)(232)3881080-253