www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Dorchain <dorch...@wirbel.com>
Subject suexec/4383: hardcoded documentroot gives problem with virtual servers
Date Tue, 11 May 1999 08:04:32 GMT

>Number:         4383
>Category:       suexec
>Synopsis:       hardcoded documentroot gives problem with virtual servers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue May 11 01:10:00 PDT 1999
>Originator:     dorchain@wirbel.com
>Release:        1.3.6
linux 2.2.7, glibc-2.0.7
I tried to set up apache for virtual servers when I noticed
 a problem with the hardcoded documentroot in suexec.c
I want to have each virtual server with its own user (and group id) and
cgi-bin directory. With to ordinary setup this leads to an "command not 
in docroot" error.
Try a setup as above
There are two possibilities which both lead to reduced security:
1. Set the DOCROOT to the least common path (which may be /, i.e. effectivly disables this
2. (What I did) Compare the commandpath to the DOCUMENT_ROOT enviroment
   variable as given by apache. (May be forged easily and effectivly disables this check.)
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]

View raw message