-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
240 additions
and
46 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
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
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
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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
web-security/supplyments/clickjacking-example/attacker.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,45 @@ | ||
<html> | ||
<head> | ||
<title>Attacker web page</title> | ||
<script type="text/javascript"> | ||
function win_open() { | ||
window.open("attacker.html"); | ||
} | ||
/* framebluster */ | ||
/* if (top.location != self.location) | ||
top.location = self.location; */ | ||
</script> | ||
<style type="text/css"><!-- | ||
*{ | ||
margin:0; | ||
padding:0; | ||
} | ||
body { | ||
background:#ffffff; | ||
} | ||
.button | ||
{ | ||
padding:5px; | ||
background:#6699CC; | ||
left:275px; | ||
width:120px; | ||
border: 1px solid #336699; | ||
} | ||
#content { | ||
width: 200px; | ||
height: 200px; | ||
margin-top: 50px ; | ||
margin-left: 50px; | ||
} | ||
//--></style> | ||
|
||
</head> | ||
<body> | ||
<div id="content"> | ||
<h1>Attacker</h1> | ||
<form action="attacker.html"> | ||
<input type="button" class="button" value="Go to the attacker!" onclick="javascript:win_open()"> | ||
</form> | ||
</div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions
73
web-security/supplyments/clickjacking-example/clickjacking.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,73 @@ | ||
<html> | ||
<head> | ||
<title>Trusted</title> | ||
<script> | ||
|
||
/* framebluster */ | ||
|
||
/* window.onbeforeunload = function () | ||
{ | ||
return "Asking the user nicely"; | ||
}*/ | ||
|
||
function win_open() { | ||
window.open("attacker.html"); | ||
} | ||
</script> | ||
|
||
<style type="text/css"><!-- | ||
*{ | ||
margin:0; | ||
padding:0; | ||
} | ||
body { | ||
background:#ffffff; | ||
} | ||
.button | ||
{ | ||
padding:5px; | ||
background:#6699CC; | ||
left:275px; | ||
width:120px; | ||
border: 1px solid #336699; | ||
} | ||
#content { | ||
width: 200px; | ||
height: 200px; | ||
margin-top: 50px ; | ||
margin-left: 50px; | ||
} | ||
#clickjacking | ||
{ | ||
position: absolute; | ||
left: 0px; | ||
top: 110px; /* from 110 to 50 */ | ||
opacity:0.0; /* from 0.0 to 0.5 */ | ||
} | ||
//--></style> | ||
|
||
</head> | ||
<body> | ||
<h1>Example 1: onMouseUp</h1> | ||
<a onMouseUp="win_open()" | ||
href="trusted.html"/> | ||
Go to the Trusted!</a> | ||
</br> | ||
</br> | ||
<h1>Example 2: iframe</h1> | ||
<div id="content"> | ||
<h1>Trusted</h1> | ||
<input type="button" class="button" value="Go to the trused!"> | ||
</div> | ||
<iframe id="clickjacking" src="attacker.html" width="200" height="200" scrolling="no" frameborder="none"> | ||
</iframe> | ||
</br> | ||
</br> | ||
<h1>Example 3: cursorjacking</h1> | ||
<img src="cursorjacking.jpg" alt="cursorjacking" height="400" width="800"/> | ||
</br> | ||
</br> | ||
<h1>Example 4: autofill</h1> | ||
<img src="autofill.jpg" alt="autofill" height="400" width="500"/> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,8 @@ | ||
<html> | ||
<head> | ||
<title>Trusted</title> | ||
</head> | ||
<body> | ||
<p>This website is trusted!</p> | ||
</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