Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 10292 invoked by uid 6000); 2 Jun 1998 17:36:36 -0000 Received: (qmail 10283 invoked from network); 2 Jun 1998 17:36:34 -0000 Received: from eden.chpc.utah.edu (155.101.3.151) by taz.hyperreal.org with SMTP; 2 Jun 1998 17:36:34 -0000 Received: from chpc.utah.edu (localhost [127.0.0.1]) by eden.chpc.utah.edu with ESMTP id LAA13072 for ; Tue, 2 Jun 1998 11:36:27 -0600 (MDT) Message-ID: <3574381B.4DAE7925@chpc.utah.edu> Date: Tue, 02 Jun 1998 11:36:27 -0600 From: Lou Langholtz Organization: Center for High Performance Computing X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 5.5.1 sun4u) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: configfile_t.param References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Dean Gaudet wrote: > On Mon, 1 Jun 1998, Lou Langholtz wrote: > > > > BTW, your technique also fails on unixes which allow folks to "chown away" > > > files. For example, on IRIX you can "chown someoneelse .htaccess", and it > > > will let you give away the file. > > > > > > Also on any unix I can: > > > > > > mkdir public_html/teehee > > > cd public_html/teehee > > > ln -s ~victim/public_html/.htaccess > > > > > > and your fstat() will return the userid of the victim. > > > > > > Dean > > > > Thanks. Good points. > > > > Fortunately I can also use the behavior of the set > > user id bit to get around chown'ing away the htacces file, and can lstat the > > parms->config_file->name to disallow htaccess files that are symlinks. > > Additionally I can check that the device and inode are the same between the > > result from the fstat() and the lstat(). Have I missed anything? > > hard links. . . . Dean, I've though about hard links and am afraid to tell you that I can't see how they could work around all the checks I've mentioned so far. I'd imagine you've had to consider this a lot more times than I though. But if I'm really missing something on hard links, please explain how they could comprimise the checks. Thanks.