[33664] in bugtraq

home help back first fref pref prev next nref lref last post

Re: Apache Http Server Reveals Script Source Code to Remote Users And Any Users Can Access The Forbidden Directory ("/WEB-INF/")

daemon@ATHENA.MIT.EDU (Peter J. Holzer)
Thu Feb 12 17:52:50 2004

Date: Wed, 11 Feb 2004 13:49:30 +0100
From: "Peter J. Holzer" <hjp@wsr.ac.at>
To: bugtraq@securityfocus.com
Message-ID: <20040211124930.GD23401@wsr.ac.at>
Mail-Followup-To: bugtraq@securityfocus.com
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-md5;
	protocol="application/pgp-signature"; boundary="vni90+aGYgRvsTuO"
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.44.0402091347210.29142-100000@charmed.internetsolver.com> <20040205191254.23852.qmail@www.securityfocus.com>

--vni90+aGYgRvsTuO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2004-02-05 19:12:54 -0000, Wang Yun wrote:
> Analyze:
> =3D=3D=3D=3D=3D=3D=3D=3D
> 1.Apache think "/WEB-INF../" unequal to "/WEB-INF/" So find this Director=
y by itself.=20
> 2."/WEB-INF/" Directory not Forbidden in Apache Config files.=20
> 3."d:\resin\doc\>cd WEB-INF.." legit in Windows Systems.

On 2004-02-09 13:48:18 -0600, Dave Weis wrote:
>=20
> On 5 Feb 2004, Wang Yun wrote:
> > TOPIC: =3D=3D=3D=3D=3D=3D Apache + Resin Reveals JSP Source Code to Rem=
ote Users And
> > Any Users Can Access Resin Forbidden Directory ("/WEB-INF/")
>=20
> This doesn't seem to affect Solaris or Linux installations of Apache &=20
> Resin.

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."?

	hp

--=20
   _  | Peter J. Holzer      | Shooting the users in the foot is bad.=20
|_|_) | Sysadmin WSR / LUGA  | Giving them a gun isn't.
| |   | hjp@wsr.ac.at        |	-- Gordon Schumacher,
__/   | http://www.hjp.at/   |     mozilla bug #84128

--vni90+aGYgRvsTuO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iQDQAwUBQCok2lLjemazOuKpAQGzvgXTB6u/C7ZGY5y0/YsLY+3TyvEHkNxLo/rW
7K7L7vrBtoUbrDrn0R6mVY6EhPVYQGrF0kgphsZ3AD5ZBgybUCX45jN3kFownEHF
dcMV3Atyws41ZS42NmL/iAlcK5vhIgl1d+rE22A94Qjd3zHV993DEGblQisv0/NM
H3Fb2euIcvke1nEAepV7Lpeg33fHu4aC4herbI8jOK/x6Xym4jRaFdSl8bKKm1Nw
FcI9purCnJDraE2+VNXsPwTxPA==
=yGIm
-----END PGP SIGNATURE-----

--vni90+aGYgRvsTuO--

home help back first fref pref prev next nref lref last post