WEB 006 - Clickjacking

Captured: flag{cwap_clickjacking_no_frame_ancestors}

This page ships a sensitive one-click action and sends no X-Frame-Options or Content-Security-Policy: frame-ancestors header, so it can be framed and overlaid. A real PoC wraps this in a transparent iframe:

<iframe src="http://TARGET/clickjack" style="opacity:.0001;position:absolute;width:600px;height:400px"></iframe>

Fix: send frame-ancestors 'none'. Confirm the missing header with curl -I.


CWAP Prep Labs · HackXpert Coaching · The XSS Rat · authorized lab use only