You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Joerg Dorchain <do...@wirbel.com> on 1999/05/11 10:04:32 UTC

suexec/4383: hardcoded documentroot gives problem with virtual servers

>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
>Last-Modified:
>Originator:     dorchain@wirbel.com
>Organization:
apache
>Release:        1.3.6
>Environment:
linux 2.2.7, glibc-2.0.7
>Description:
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.
>How-To-Repeat:
Try a setup as above
>Fix:
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 check)
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.)
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@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!         ]