Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 203

Clickjacking

Reviewed byCybersecurity entrepreneur & security researcher

What is Clickjacking?

ClickjackingA UI-redress attack that tricks users into clicking on something different from what they perceive by overlaying or hiding a target page inside an attacker-controlled page.


Clickjacking embeds a sensitive page (for example, account settings, OAuth consent, payment confirmation) inside an iframe on a malicious site and visually disguises it — often through transparency, careful CSS overlays, or strategic positioning under decoy buttons. The user thinks they are interacting with the visible page, while their clicks, taps, or drags are actually delivered to the hidden frame, performing actions in their authenticated session.

The term was coined in 2008 by Jeremiah Grossman and Robert Hansen, who demonstrated framing Adobe Flash's settings manager to silently enable a victim's webcam and microphone. The defence that emerged, the X-Frame-Options header, was standardised as RFC 7034 (2013) and has since been superseded by the Content-Security-Policy frame-ancestors directive, which is more granular and supports multiple allowed origins. Variants keep evolving: cursorjacking, drag-and-drop data theft, and likejacking. In late 2024 researcher Paulos Yibelo published "DoubleClickjacking," which exploits the gap between the two events of a double-click to swap the underlying page after the first click, bypassing X-Frame-Options, frame-ancestors, and SameSite cookies because no cross-site frame is actually present at click time.

Defences combine framing controls (frame-ancestors 'self' or an explicit allowlist), explicit user-gesture and confirmation requirements for sensitive actions, disabling buttons until a brief delay after focus, and SameSite cookies to limit cross-context state.

flowchart TD
  A[Victim visits<br/>attacker page] --> B[Decoy UI:<br/>'Click to win']
  B --> C[Invisible iframe loads<br/>real target site]
  C --> D[Victim is logged in<br/>to target]
  B --> E[Transparent overlay<br/>aligns hidden button]
  E --> F[Victim clicks decoy]
  F --> G[Click lands on hidden<br/>'Approve' button]
  G --> H[Action runs in<br/>victim's session]

Examples

  1. 01

    A page tells users to "click here to win", with a transparent iframe over the button pointing to a social-network share-permission dialog.

  2. 02

    A pixel-perfect overlay tricks a user into clicking "Approve" on an OAuth consent screen for an attacker app.

Frequently asked questions

What is Clickjacking?

A UI-redress attack that tricks users into clicking on something different from what they perceive by overlaying or hiding a target page inside an attacker-controlled page. It belongs to the Attacks & Threats category of cybersecurity.

What does Clickjacking mean?

A UI-redress attack that tricks users into clicking on something different from what they perceive by overlaying or hiding a target page inside an attacker-controlled page.

How do you defend against Clickjacking?

Defences for Clickjacking typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for Clickjacking?

Common alternative names include: UI redress attack.

Related terms

See also