🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.security.misc
Article #66

Re: Setuid file

#66
From: Matthew Gream
Date: Wed, 04 Nov 1992 21:49
25 lines
1485 bytes
Robert Earl (chupchup@ferkel.ucsb.edu) wrote:
: 
: |    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.

No one yet asked what OS this was, HP-UX doesnt clear the setuid-bit on
an append (at least It didnt in one of its installed versions ive seen),
so appending a shell script to make a setuid shell is a trivial job.

Correct me if im wrong.

Matthew.
--
M.Gream@uts.EDU.AU - Matthew Gream
Technical Details
Message-ID: <1d9ggiINNsfb@sequoia.ccsd.uts.EDU.AU>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!sequoia!acacia!mgream
References: <chupchup.720790116@piggy>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!sequoia!acacia!mgream
From: mgream@acacia (Matthew Gream)
Newsgroups: comp.security.misc
Subject: Re: Setuid file
Date: 4 Nov 1992 21:49:06 GMT
Organization: University of Technology, Sydney
Lines: 25
Message-ID: <1d9ggiINNsfb@sequoia.ccsd.uts.EDU.AU>
References: <chupchup.720790116@piggy>
NNTP-Posting-Host: acacia.ccsd.uts.edu.au
X-Newsreader: Tin 1.1 PL5