CyberGlossary

Attacks & Threats

Clickjacking

Also known as: UI redress attack

Definition

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.

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. Variants include cursorjacking, drag-and-drop attacks, and double-clickjacking. Defences require server-side controls on the target page: setting X-Frame-Options or, preferably, a Content-Security-Policy with frame-ancestors directive, plus user-interaction requirements for sensitive actions and SameSite cookies to limit cross-context state.

Examples

  • A page tells users to "click here to win", with a transparent iframe over the button pointing to a social-network share-permission dialog.
  • A pixel-perfect overlay tricks a user into clicking "Approve" on an OAuth consent screen for an attacker app.

Related terms