🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #550

Re: 4.3BSD tip command execution problems

#550
From: ron
Date: Fri, 13 Feb 1987 18:38
22 lines
1433 bytes
In article <175@quacky.mips.UUCP>, dce@mips.UUCP (David Elliott) writes:
> I have found a gaping security hole in the 4.3BSD version of tip.
> 
> The hole has to do with the fact that tip runs setuid uucp and allows
> shell escapes. Note that this security hole is not closed by adding
> 
> 	setuid(getuid());
> 	setgid(getgid());
> 
> before the call to exec(), since these calls do not take effect unless
> the person executing the call is root.

And why not?  It works fine for me.  You have always been able to
SETUID back to the real UID in UNIX, regardless the effective UID.
What varies from system to system is whether you can change the
real uid at all or if you can go back to a previous effective UID
after you have set it to the real.

TIP needs to run UUCP to handle the "only one person using a dial out
at a time" problem.

-Ron
Technical Details
Message-ID: <620@brl-sem.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ptsfa!lll-lcc!styx!ames!sri-spam!rutgers!mit-eddie!husc6!seismo!brl-adm!brl-sem!ron
References: <175@quacky.mips.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ptsfa!lll-lcc!styx!ames!sri-spam!rutgers!mit-eddie!husc6!seismo!brl-adm!brl-sem!ron
From: ron@brl-sem.UUCP
Newsgroups: comp.bugs.4bsd
Subject: Re: 4.3BSD tip command execution problems
Message-ID: <620@brl-sem.ARPA>
Date: Fri, 13-Feb-87 13:38:18 EST
Article-I.D.: brl-sem.620
Posted: Fri Feb 13 13:38:18 1987
Date-Received: Sat, 14-Feb-87 19:14:54 EST
References: <175@quacky.mips.UUCP>
Organization: Electronic Brain Research Lab
Lines: 22