home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!alijku11!k111114
- Organization: Johannes Kepler University Linz - Computing Center
- Date: Tuesday, 17 Nov 1992 18:39:42 CET
- From: <K111114@ALIJKU11.BITNET>
- Message-ID: <92322.183942K111114@ALIJKU11.BITNET>
- Newsgroups: comp.os.linux
- Subject: major security leak (ftpd)
- Lines: 20
-
- hi.
- Problems with ftpd again: line 1 and 2 say:
-
- #define seteuid(x) setuid((uid_t)0)
- #define setegid(x) setgid(x)
-
- I'm not sure what setuid(0) does. But what happens in ftp, when I log in as
- "any_user", is that I have r/w access to all files, regardless if owned by
- root and -rw------- only. It looks like ftpd runs with euid=root, since ftpd
- has to run as root (because of the chroot()), and a seteuid is never done (it
- is, as you see, redefined to setuid). I wouldn't complain if the machine is
- an ascetic PC, but the machine here is on the net and in "promiscous" mode ...
-
- Of course, first thing I did was #if 0-ing the two #defines ...
- But when recompiling ftpd, it says: _seteuid unreferenced from textsegment.
- I did a grep seteuid * in /lib, but it couldn't be found there.
-
- Could anyone please do something against this ?
-
- Bye, Herp (k111114@alijku11.bitnet)
-