This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a simple framebuster sample, we must prevent embedded iframes from ac…
…cessing parent windows. can we manually specify a realm from inside content-window.js ??
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |