home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.security
- Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!casper
- From: casper@fwi.uva.nl (Casper H.S. Dik)
- Subject: Re: CERT ADVISORY - Multiple SunOS Vulnerabilities
- Message-ID: <1992Jul24.114806.836@fwi.uva.nl>
- Sender: news@fwi.uva.nl
- Nntp-Posting-Host: adam.fwi.uva.nl
- Organization: FWI, University of Amsterdam
- References: <9207211919.AA20501@tictac.cert.org> <1992Jul22.154650.9967@jarvis.csri.toronto.edu> <1992Jul22.212329.12887@fwi.uva.nl> <g=tx##p@rpi.edu> <avalon.711975096@coombs>
- Date: Fri, 24 Jul 1992 11:48:06 GMT
- Lines: 49
-
- avalon@coombs.anu.edu.au (Darren Reed) writes:
-
- >fitzgb@mml0.meche.rpi.edu (Brian Fitzgerald) writes:
-
- >>Casper H.S. Dik writes:
- >>>
- >>>BUGID: 1095935
- >>> NFS server in which a client presenting a 32-bit uid in which
- >>> the 16 low-order bits are 0 gets interpreted as root on the server.
-
- >>Are there any operating systems available that present a 32 bit uid?
-
- >>Brian
-
- >OS's arent the only things which can use NFS. How hard would it be to write
- >an NFS client which connected to the server using NFS ?
-
- >And if you were a hacker and knew this was a problem, would you try writing
- >such an NFS client ?
-
- >Given that in both cases a normal user doesnt have to bind to a priveledged
- >port nor access the raw socket to write such a client, i think there could
- >well be some problems.
-
- You should configure NFS such that only clients request from a priviliged
- port are accepted. This is possible in SunOS and you should do
- this if it doesn't break things. Crackers already have programs that
- make client requests from non-root user mode with faked credentials.
-
- See /etc/rc.local for details on what to change. You should chose
- the more secure branch in all if [ -f /etc/security/passwd.adjunct ]
- then ... else ... fi parts, unless this breaks other machines on
- the net.
-
- I would assume that this NFS bug is not serious in a environment of
- well controled clients (i.e., relatively safe multi-user machines)
- with NFS configured to accept only request from a priviliged port.
- I don't know whether this bug defeats the root -> nobody mapping.
- (this depends on whether the uid is truncated before or after the
- check for 0). If it defeats the mapping, I would apply this fix ASAP as
- it would give all clients root access.
-
- Secure NFS is the only solution in environments were clients can't be
- trusted.
-
- Casper
- --
- | Casper H.S. Dik
- | casper@fwi.uva.nl
-