🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.security.misc
Article #53

Re: Setuid file

#53
From: Steven Bellovin
Date: Tue, 03 Nov 1992 21:10
23 lines
1642 bytes
In article <21806@rpp386.lonestar.org>, jfh@rpp386.lonestar.org (John F. Haugh II) writes:
> In article <8exLmiW00WB6QXP4Yb@andrew.cmu.edu> tm8t+@andrew.cmu.edu (Tod McQuillin) writes:
> >Found this on one of our systems.  Anyone know if there is any way
> >this could be used to obtain root access?
> >
> >-rwsr-xr-x  1 root            0 Apr  7  1992 file
> >
> >Note the file has zero length.
> 
> Possibly if you system supports set-uid shell scripts in a warped
> manner it might.  You would have to find out if the shell that is
> (presumably ...) started to execute that script runs set-uid.  Then
> see if the usual suite of set-uid shell script holes can be used
> with that file.

I've never heard of shells themselves running setuid, and I hope I never
do...  Ksh uses a setuid root intermediate program to implement setuid
shell scripts on systems where the kernel doesn't do it.  It uses
open file descriptors, rather than names, and so should be immune
to the usual hack.

So -- I don't know of any problems with that file.  But I confess that
it makes me extremely nervous -- I just have a very bad feeling about it...
Technical Details
Message-ID: <1992Nov3.211052.11569@ulysses.att.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!rpi!uwm.edu!cs.utexas.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!dptg!ulysses!ulysses!smb
References: <8exLmiW00WB6QXP4Yb@andrew.cmu.edu> <21806@rpp386.lonestar.org>

Show Full Headers
Complete Article Headers
Newsgroups: comp.security.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!rpi!uwm.edu!cs.utexas.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!dptg!ulysses!ulysses!smb
From: smb@ulysses.att.com (Steven Bellovin)
Subject: Re: Setuid file
Message-ID: <1992Nov3.211052.11569@ulysses.att.com>
Date: Tue, 3 Nov 1992 21:10:52 GMT
References: <8exLmiW00WB6QXP4Yb@andrew.cmu.edu> <21806@rpp386.lonestar.org>
Organization: AT&T Bell Laboratories
Lines: 23