From owner-freebsd-security Mon Aug 4 11:41:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA19383 for security-outgoing; Mon, 4 Aug 1997 11:41:31 -0700 (PDT) Received: from horst.bfd.com (horst.bfd.com [204.160.242.10]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA19378 for ; Mon, 4 Aug 1997 11:41:28 -0700 (PDT) Received: from harlie.bfd.com (bastion.bfd.com [204.160.242.14]) by horst.bfd.com (8.8.5/8.7.3) with SMTP id LAA04081; Mon, 4 Aug 1997 11:41:13 -0700 (PDT) Date: Mon, 4 Aug 1997 11:41:13 -0700 (PDT) From: "Eric J. Schwertfeger" To: "Thomas H. Ptacek" cc: security@FreeBSD.ORG Subject: Re: Proposed alternate patch for the rfork vulnerability In-Reply-To: <199708041741.MAA04433@enteract.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 4 Aug 1997, Thomas H. Ptacek wrote: > > I'm sorry, Bruce, but having the file descriptor sharing break on > > exec is the ONLY way to have it make sense, let alone be secure. > > The problem is specifically an issue with an interaction between the > rfork() resource sharing semantics and the SUID bit. The problem is > equally well solved by ignoring the SUID bit. I'm not sure I agree. Imagine troubleshooting a problem where if a command is typed in on the command line it works fine, but when your fancy shell tries to execute the same command, it fails because the SUID isn't honored, and the SUID program is too stupid to say "I'm not working because I don't have adequate permission to open my config file" but rather says "can't find config file." Sloppy programming, yes, but all too common in the college-student quick-hack programs (not that all college students can only write hacks, or only college students write hacks). Now, if there's at least an error message spit out, this shouldn't be an issue. Then again, if the calling program doesn't say why the rfork() failed (doesn't check error conditions, etc) then you're back in the same boat.