> -----Original Message-----
> From: Peter J. Holzer [mailto:hjp (at) wsr.ac (dot) at [email concealed]]
> Sent: Wednesday, February 11, 2004 6:50 AM
>
> 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."?
It's been done before - certainly in IIS, there was a bug where getting a
"filename.asp." URL gave you the source of the ASP script. Same for
"filename.asp:$DATA".
Alun.
~~~~
--
Texas Imperial Software | Find us at http://www.wftpd.com or email
1602 Harvest Moon Place | alun (at) texis (dot) com. [email concealed]
Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers.
Fax/Voice +1(512)258-9858 | Try our NEW client software, WFTPD Explorer.
> From: Peter J. Holzer [mailto:hjp (at) wsr.ac (dot) at [email concealed]]
> Sent: Wednesday, February 11, 2004 6:50 AM
>
> 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."?
It's been done before - certainly in IIS, there was a bug where getting a
"filename.asp." URL gave you the source of the ASP script. Same for
"filename.asp:$DATA".
Alun.
~~~~
--
Texas Imperial Software | Find us at http://www.wftpd.com or email
1602 Harvest Moon Place | alun (at) texis (dot) com. [email concealed]
Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers.
Fax/Voice +1(512)258-9858 | Try our NEW client software, WFTPD Explorer.
[ reply ]