Bekijk Volledige Versie : Re: Apache Http Server Reveals Script Source Code to Remote Users
On 5 Feb 2004, Wang Yun wrote:
> TOPIC: ====== Apache + Resin Reveals JSP Source Code to Remote Users And
> Any Users Can Access Resin Forbidden Directory ("/WEB-INF/")
This doesn't seem to affect Solaris or Linux installations of Apache &
Resin.
dave
--
Dave Weis "I believe there are more instances of the abridgment
djweis@sjdjweis.com of the freedom of the people by gradual and silent
encroachments of those in power than by violent
and sudden usurpations."- James Madison
=?ISO-8859-15?Q?Andr=E9?= Malo
13/02/04, 23:25
* "Oliver Schneider" <Borbarad@gmxpro.net> wrote:
> > Right. On Unix "WEB-INF" and "WEB-INF.." are two different, legal file
> > names. On Windows, trailing dots seem to be ignored, so "WEB-INF" and
> > "WEB-INF.." are just two names for the same file. This also works if the
> > filename already has an extension, so for example "foo.html" and
> > "foo.html....." are the same file, too. I wonder whether that can be
> > exploited, too: Get the contents of a CGI script by requesting
> > "foo.cgi."?
> I checked it on our Windows 2000 Server running Apache 2.0.48, it didn't
> work for the .pl-scripts.
> I.e. "download.pl." instead of "download.pl" gave the output of the actual
> script.
In fact, I could not find any situation running pure apache where it occurs.
So I suspect the problem occurs only with the foreign resin handler which
seems to do its own mapping :-(
nd
Bill Stoddard
14/02/04, 16:45
Wang Yun wrote:
>
> TOPIC:
> ======
> Apache + Resin Reveals JSP Source Code to Remote Users And Any Users Can Access Resin Forbidden Directory ("/WEB-INF/")
>
> Description:
> ============
> Security vulnerability has been found in Windows NT/2000 Systems that have Apache 1.3.29 + Resin 2.1.12 installed. The vulnerability allows remote users view script Source Code And Access files in the Forbidden Directory.
>
> Exploits:
> =========
> http://apache/index.jsp%20
> It is possible to cause the Apache server to send back the content of index.jsp.
>
> http://apache/WEB-INF../
> It is possible to cause the Apache server to send back the list of "/WEB-INF/" Directory.
>
> Analyze:
> ========
> 1.Apache think "/WEB-INF../" unequal to "/WEB-INF/" So find this Directory by itself.
> 2."/WEB-INF/" Directory not Forbidden in Apache Config files.
> 3."d:\resin\doc\>cd WEB-INF.." legit in Windows Systems.
>
> Sorry for my poor english.
>
> lovehacker
> China
Don't put your jsp's under DocumentRoot. Same advice goes for CGI scripts, servlets, et. al.
Bill