You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Behlendorf <br...@hyperreal.org> on 1997/08/11 18:01:34 UTC
interesting side effect of mime_magic
Continuing the discussion of conneg changes brought about by use of
mod_mime_magic - I noticed a couple places on hyperreal where I had an
index.cgi and an index.cgi~ left over from using emacs to edit it. Before
mod_mime_magic, the .cgi~ file was always ignored; but now because of
mod_mime_magic it's a "text/html" document, and in some cases it was sent
instead of the index.cgi file being executed. This is /almost/ a security
problem, since I'm sure most people don't want to give away the source of
their CGI scripts. I'm sure there's some sort of configuration I can
apply, a <Files *~> kind of thing, but for the vast majority who are just
going to drop 1.3 on top of their current filesystem, this is an issue.
Brian
--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
"Why not?" - TL brian@organic.com - hyperreal.org - apache.org
Re: interesting side effect of mime_magic
Posted by Marc Slemko <ma...@worldgate.com>.
Smart hackers^H^H^H^H^H^H^Hinvestigative people know things like that
anyway and look for such files anyway. Yes, content negotiation needs to
be examined a bit more with mod_mime_magic I think.
Serves you right for using anything other than the one true editor. <g>
On Mon, 11 Aug 1997, Brian Behlendorf wrote:
>
> Continuing the discussion of conneg changes brought about by use of
> mod_mime_magic - I noticed a couple places on hyperreal where I had an
> index.cgi and an index.cgi~ left over from using emacs to edit it. Before
> mod_mime_magic, the .cgi~ file was always ignored; but now because of
> mod_mime_magic it's a "text/html" document, and in some cases it was sent
> instead of the index.cgi file being executed. This is /almost/ a security
> problem, since I'm sure most people don't want to give away the source of
> their CGI scripts. I'm sure there's some sort of configuration I can
> apply, a <Files *~> kind of thing, but for the vast majority who are just
> going to drop 1.3 on top of their current filesystem, this is an issue.
>
> Brian
>
>
> --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
> "Why not?" - TL brian@organic.com - hyperreal.org - apache.org
>