Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
a simple framebuster sample, we must prevent embedded iframes from ac…
Browse files Browse the repository at this point in the history
…cessing parent windows. can we manually specify a realm from inside content-window.js ??
  • Loading branch information
lloyd committed Oct 29, 2010
1 parent 37da2fc commit b5ae774
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ui/frame_buster/index.html
@@ -0,0 +1,15 @@
<html>
<head>
<title>WebbyFox</title>

</head>
<body >
<p>
I'm the outer frame. you better now pwn me.
</p>

<iframe src="inner-page.html" width="400" height="100" border="2" >
</iframe>

</body>
</html>
12 changes: 12 additions & 0 deletions ui/frame_buster/inner-page.html
@@ -0,0 +1,12 @@
<html>
<head>
<title>WebbyFox</title>

</head>
<body>
I'm the inner frame. you've been pwned!
<script type="text/javascript">
if (top != self) top.location.replace(self.location.href);
</script>
</body>
</html>

0 comments on commit b5ae774

Please sign in to comment.