From: Erik Abele Date: Fri, 25 Jul 2003 18:31:25 +0000 (+0000) Subject: Enhance some bits of the suEXEC docco to be a bit more precise X-Git-Tag: pre_ajp_proxy~1361 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=485f5ea438e8a6b68b965620c4112297c9dc1325;p=apache Enhance some bits of the suEXEC docco to be a bit more precise in regard to suEXEC's docroot handling and it's preconditions; see PR#21873 and #21874. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100787 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/suexec.html.en b/docs/manual/suexec.html.en index a32304a7ad..3c1376f391 100644 --- a/docs/manual/suexec.html.en +++ b/docs/manual/suexec.html.en @@ -159,13 +159,15 @@
  • - Does the target program have an unsafe hierarchical - reference? + Does the target CGI or SSI program have an unsafe + hierarchical reference?

    - Does the target program contain a leading '/' or have a - '..' backreference? These are not allowed; the target - program must reside within the Apache webspace. + Does the target CGI or SSI program's path contain a leading + '/' or have a '..' backreference? These are not allowed; the + target CGI/SSI program must reside within suEXEC's document + root (see --with-suexec-docroot=DIR + below).

  • @@ -242,8 +244,8 @@
  • - Does the directory in which the program resides - exist? + Does the directory in which the target CGI/SSI program + resides exist?

    If it doesn't exist, it can't very well contain files. @@ -256,9 +258,10 @@

    If the request is for a regular portion of the server, is - the requested directory within the server's document - root? If the request is for a UserDir, is the requested - directory within the user's document root? + the requested directory within suEXEC's document root? If + the request is for a UserDir, is the requested directory + within the directory configured as suEXEC's userdir (see + suEXEC's configuration options)?

  • @@ -274,7 +277,7 @@
  • - Does the target program exist? + Does the target CGI/SSI program exist?

    If it doesn't exists, it can't very well be executed. @@ -282,17 +285,17 @@

  • - Is the target program NOT writable by - anyone else? + Is the target CGI/SSI program NOT writable + by anyone else?

    We don't want to give anyone other than the owner the - ability to change the program. + ability to change the CGI/SSI program.

  • - Is the target program NOT setuid or + Is the target CGI/SSI program NOT setuid or setgid?

    @@ -324,11 +327,11 @@

  • - Can we successfully become the target program and - execute? + Can we successfully become the target CGI/SSI program + and execute?

    - Here is where suEXEC ends and the target program begins. + Here is where suEXEC ends and the target CGI/SSI program begins.

  • diff --git a/docs/manual/suexec.xml b/docs/manual/suexec.xml index f230069c0b..8c3b6cdbd9 100644 --- a/docs/manual/suexec.xml +++ b/docs/manual/suexec.xml @@ -131,13 +131,15 @@
  • - Does the target program have an unsafe hierarchical - reference? + Does the target CGI or SSI program have an unsafe + hierarchical reference?

    - Does the target program contain a leading '/' or have a - '..' backreference? These are not allowed; the target - program must reside within the Apache webspace. + Does the target CGI or SSI program's path contain a leading + '/' or have a '..' backreference? These are not allowed; the + target CGI/SSI program must reside within suEXEC's document + root (see --with-suexec-docroot=DIR + below).

  • @@ -214,8 +216,8 @@
  • - Does the directory in which the program resides - exist? + Does the directory in which the target CGI/SSI program + resides exist?

    If it doesn't exist, it can't very well contain files. @@ -228,9 +230,10 @@

    If the request is for a regular portion of the server, is - the requested directory within the server's document - root? If the request is for a UserDir, is the requested - directory within the user's document root? + the requested directory within suEXEC's document root? If + the request is for a UserDir, is the requested directory + within the directory configured as suEXEC's userdir (see + suEXEC's configuration options)?

  • @@ -246,7 +249,7 @@
  • - Does the target program exist? + Does the target CGI/SSI program exist?

    If it doesn't exists, it can't very well be executed. @@ -254,17 +257,17 @@

  • - Is the target program NOT writable by - anyone else? + Is the target CGI/SSI program NOT writable + by anyone else?

    We don't want to give anyone other than the owner the - ability to change the program. + ability to change the CGI/SSI program.

  • - Is the target program NOT setuid or + Is the target CGI/SSI program NOT setuid or setgid?

    @@ -296,11 +299,11 @@

  • - Can we successfully become the target program and - execute? + Can we successfully become the target CGI/SSI program + and execute?

    - Here is where suEXEC ends and the target program begins. + Here is where suEXEC ends and the target CGI/SSI program begins.