Clickjacking/UI Redressing Attacks

What are Clickjacking/UI Redressing Attacks?

Clickjacking, also known as UI (User Interface) Redressing attacks, is a web security vulnerability that tricks users into interacting with a different webpage or clicking on something different from what they perceive. Attackers overlay deceptive elements on legitimate web pages, making users unknowingly perform actions on the attacker's hidden content.


Example of a Clickjacking Attack

An attacker might create a malicious webpage that positions a transparent iframe over a legitimate website's "Like" button. When a user visits the attacker's page and clicks what appears to be the "Like" button, they are actually clicking the hidden iframe, triggering a like action on a completely different site without their consent.


Prevention Measures

To prevent Clickjacking/UI Redressing attacks, consider these security measures: