🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.security.misc
Article #42

Re: Setuid file

#42
From: Robert Earl
Date: Tue, 03 Nov 1992 11:28
22 lines
1370 bytes
jim@cs.strath.ac.uk (Jim Reid) 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

| Yes, most of the holes that work for setuid-shell scripts will work
| for this file, even though it is empty.

I seriously doubt it.  The kernel hasn't the faintest idea what to do
to execute a file like this.  Try running an empty file with a shell
that does not default to /bin/sh or similar and you will get an "exec
format error".  setuid shell-script holes require the #!  "feature",
and they require it in the kernel, which is the only entity capable of
granting setuid access when executing a program.

-- 
robert earl          |
rearl@ucsd.edu       | "I got a bottle of tequila, baby, who needs friends?"
rearl@piggy.ucsb.edu |   --Johnette Napolitano, Concrete Blonde
Technical Details
Message-ID: <chupchup.720790116@piggy>
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!piggy!chupchup
References: <8exLmiW00WB6QXP4Yb@andrew.cmu.edu> <JIM.92Nov3102722@hunter.cs.strath.ac.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.security.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!piggy!chupchup
From: chupchup@ferkel.ucsb.edu (Robert Earl)
Subject: Re: Setuid file
Message-ID: <chupchup.720790116@piggy>
Organization: (EVIL!)
References: <8exLmiW00WB6QXP4Yb@andrew.cmu.edu> <JIM.92Nov3102722@hunter.cs.strath.ac.uk>
Date: Tue, 3 Nov 1992 11:28:36 GMT
Lines: 22