-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
188 lines (174 loc) · 6.32 KB
/
index.html
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html>
<head>
<title>Identity Leak</title>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Check if your browser leaks your identity">
<meta property="image" content="http://webkay.robinlinus.com/webkay-logo-large.png" />
<meta property="author" content="Check if your browser leaks your identity - Auto-fill phishing demo" />
<meta property="og:title" content="Check if your browser leaks your identity - Auto-fill phishing demo" />
<meta property="og:image" content="http://webkay.robinlinus.com/webkay-logo-large.png" />
<meta property="og:image:url" content="http://webkay.robinlinus.com/webkay-logo-large.png" />
<meta property="og:site_name" content="Check if your browser leaks your identity - Auto-fill phishing demo" />
<meta property="og:type" content="article" />
<meta property="og:author" content="https://facebook.com/RobinLinus" />
<meta property="fb:pages" content="451189218422617" />
<meta property="fb:profile_id" content="451189218422617" />
<meta property="og:url" content="https://robinlinus.github.io/autofill-phishing/" />
<meta property="fb:app_id" content="1527795287522439" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Check if your browser leaks your identity - Auto-fill phishing demo">
<meta name="twitter:image" content="http://webkay.robinlinus.com/webkay-logo-large.png" />
<meta name="twitter:description" content="Check if your browser leaks your identity - Auto-fill phishing demo">
<meta name="twitter:creator:id" content="4675481071">
<meta name="author" content="Robin Linus" />
<style type="text/css">
body{
background: #82B1FF;
text-align: center;
color: white;
font-family: sans-serif;
padding-top: 24px;
padding-bottom: 40px;
line-height: 20px;
}
form{
margin: 0 auto;
width: 90%;
max-width: 720px;
}
#name{
display: inline-block;
width: 100%;
font-size: 24px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
box-shadow: none;
border-radius: 3px;
box-sizing: border-box;
background: #448AFF;
color: white;
text-align: center;
padding: 12px;
border: none;
border-bottom: solid 2px #82B1FF;
-webkit-transition: border 0.3s;
transition: border 0.3s;
}
#name:focus {
border-bottom: solid 2px #F48FB1;
}
#innocent{
margin-top: 64px;
}
#innocent span{
font-size: 11px;
}
#pwnd{
margin-top: 80px;
-webkit-transition: transform 500ms;
transition: transform 500ms;
transform: scale(0.01);
-webkit-transform: scale(0.01);
height: 20px;
}
#pwnd input{
background: none;
border: none;
display: inline-block;
padding: 8px;
margin: 0;
}
a{
color: white;
text-decoration: none;
}
a:hover{
text-decoration: underline;
}
#explain{
text-align: left;
}
footer {
margin-top: 64px;
padding: 16px;
font-size: 16px;
text-align: center;
margin-bottom: 49px;
}
</style>
</head>
<body>
<h2>Auto-fill Phishing Demo</h2>
<noscript><h1>Javascript must be enabled!</h1><style>h1{margin-top: 80px;}form{display: none;}</style></noscript>
<form autocomplete="on">
<div id="explain">
This is a simple demonstration of a security issue in most browser's Auto-fill feature.<br>
It is inspired by <i><a href="https://www.theguardian.com/technology/2017/jan/10/browser-autofill-used-to-steal-personal-details-in-new-phising-attack-chrome-safari" target="_blank">a recent publication</a></i> and designed to demonstrate this issue to less tech-savvy users.<br> <b>(Firefox Desktop and iOS Safari are immune from this issue)</b>
</div>
<div id="innocent">
<h3>Start typing or click to use autofill:</h3>
<input id="name" name="name" type="text" placeholder="Your Name" autofocus tabindex="1" required autocomplete="name">
<br><span>(None of your data will leave your device)</span>
</div>
<div id="pwnd">
<h1>Identity leaked!</h1>
Did you notice all those hidden fields?<br><br>
<h4>Your Names</h4>
<input id="firstname" name="firstname" type="text" >
<input id="lastname" name="lastname" type="text">
<h4>Your Email</h4>
<input id="email" name="email" type="text" id="email">
<h4>Your Job</h4>
<input id="company" name="company" type="text">
<h4>Your Address</h4>
<input id="street" name="street" type="text" id="street">
<input id="postal" name="postal" type="text">
<input id="city" name="city" type="text">
<input id="country" name="country" type="text">
<h4>Your Phone Number</h4>
<input id="phone" name="phone" type="text">
<h4>Credit Card Info</h4>
<input id="cc_number" type="text" name="cc_number">
<input id="cc_month" type="number" name="cc_month">
<input id="cc_year" type="number" name="cc_year">
<input id="cc_cvv" type="number" name="cc_cvv">
<br><br>
<div><strong>Always be suspicious when you use auto-fill!</strong><br>
Your browser may fill fields that are hidden from you.
</div><br><br><br>
<a href="https://github.com/RobinLinus/autofill-phishing" target="_blank">This demo is open source.</a><br><br><br><br>
</div>
</form>
<a href="https://robinlinus.github.io"><footer>Built with ♥ by RobinLinus</footer></a>
<script type="text/javascript">
var q = function(id){
return document.getElementById(id);
}
q('name').oninput=function(){
debounce(function(){
if(q('email').value || q('email').value){
var pwnd =q('pwnd').style;
pwnd.height='auto';
pwnd.transform='scale(1)';
document.activeElement.blur();
} else {
q('pwnd').style.transform='scale(0.01)';
}
})
}
var timer = null;
function debounce(callback){
if(timer){
clearTimeout(timer);
}
timer = setTimeout(callback,500);
}
</script>
<iframe style="position:fixed;bottom:0;left:0;z-index:10;" src="https://robinlinus.github.io/share-the-love/#msg=Check if your browser leaks your identity&url=https://robinlinus.github.io/autofill-phishing/&twitter=robin_linus&github=robinlinus/autofill-phishing" height="50" width="100%" frameborder="0"></iframe>
</body>
</html>