You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Jason A. Dour" <ja...@bcc.louisville.edu> on 1997/01/06 22:05:04 UTC
Possible suEXEC userdir fix...
-----BEGIN PGP SIGNED MESSAGE-----
I have another possible solution to the userdir "problem" with suEXEC.
I am of the opinion that locking userdir requests to ~/<userdir>/cgi-bin/
is unecessary and would even further break SSIs.
Instead of limiting to the single directory, how about having a USERDIR
DEFINE that would contain the web directory name for userdirs. That was,
we can search for (HOMEDIR "/" USERDIR "/") in the current working
directory. Seems to me it would limit requests to a user's webspace.
I can have a patch ready sometime tonight or early tomorrow. Would this
appease people enough so we can move forward on 1.2?
Jason
# Jason A. Dour <ja...@bcc.louisville.edu> 1101
# Programmer Analyst II; Department of Radiation Oncology; Univ. of Lou.
# Finger for URLs, PGP public key, geek code, PJ Harvey info, et cetera.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBMtFpApo1JaC71RLxAQHPcAP6Axf9li1T41DZPy//0lScSvb1FBMnI99E
BkJEfjZ1CDmX6EBSEpT2xBFNUfvurn3W+qAu5vJkKnw5OXgRAqkHRymQK+pN/mu8
UtOS86oF7SvJhq4C0xgDLPuQ+vFXehB6md+5/RUaPdWK4qhbPv59JMMfaFI+cS3z
aJR5FBr4TSQ=
=lpia
-----END PGP SIGNATURE-----
Re: Possible suEXEC userdir fix...
Posted by Marc Slemko <ma...@znep.com>.
As I have inferred to some greater or lesser degree somewhere in my
ramblings, I think that solution would be acceptable for 1.2 iff
documented; ie. any binaries within the docroot or anyone's userdir may be
run as them by anyone who cracks the HTTPD_USER account and that anyone
who can write to any directory in either of those trees can possibly
compromise the UID that CGIs in that tree run as.
With that, and the following changes:
* disallow execution by UID < 100
* limit the environment variables passed by suexec.
...which are the first two that Randy said he was going to try to
get around to, I would not object to it being in 1.2.
I'll take a look through my old mail to see if there is anything else
missing that is critical, but can't think of anything.
On Mon, 6 Jan 1997, Jason A. Dour wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>
> I have another possible solution to the userdir "problem" with suEXEC.
>
> I am of the opinion that locking userdir requests to ~/<userdir>/cgi-bin/
> is unecessary and would even further break SSIs.
>
> Instead of limiting to the single directory, how about having a USERDIR
> DEFINE that would contain the web directory name for userdirs. That was,
> we can search for (HOMEDIR "/" USERDIR "/") in the current working
> directory. Seems to me it would limit requests to a user's webspace.
>
> I can have a patch ready sometime tonight or early tomorrow. Would this
> appease people enough so we can move forward on 1.2?
>
> Jason
> # Jason A. Dour <ja...@bcc.louisville.edu> 1101
> # Programmer Analyst II; Department of Radiation Oncology; Univ. of Lou.
> # Finger for URLs, PGP public key, geek code, PJ Harvey info, et cetera.
>
> -----BEGIN PGP SIGNATURE-----
> Version: 2.6.2
>
> iQCVAwUBMtFpApo1JaC71RLxAQHPcAP6Axf9li1T41DZPy//0lScSvb1FBMnI99E
> BkJEfjZ1CDmX6EBSEpT2xBFNUfvurn3W+qAu5vJkKnw5OXgRAqkHRymQK+pN/mu8
> UtOS86oF7SvJhq4C0xgDLPuQ+vFXehB6md+5/RUaPdWK4qhbPv59JMMfaFI+cS3z
> aJR5FBr4TSQ=
> =lpia
> -----END PGP SIGNATURE-----
>