clickjacking / Browser Security / UI Redressing
Clickjacking: UI Redressing
Clickjacking places a framed interface beneath decoy content so a visible click can activate a different control. The hosted lab demonstrates browser framing defenses with a mock account action.
Open demoHow It Works
- A page embeds another interface in a frame and places it over a decoy control.
- A visitor clicks what appears to be the decoy, while the frame receives the input.
- The hosted lab presents a mock account action protected by browser framing policy; it stores no account data.
Defensive Mitigation
- Send Content-Security-Policy with a restrictive frame-ancestors directive, such as 'none' or an explicit trusted-origin allowlist.
- Use X-Frame-Options: DENY or SAMEORIGIN as a compatibility fallback for older browsers.
- Set authentication cookies with an appropriate SameSite policy as defense in depth; do not rely on it as the framing control.