pentesting, updated
Testing for clickjacking
Check whether the page can be framed by another site, letting an attacker overlay invisible controls on top of real content.
Goal
Confirm sensitive pages can’t be embedded in a third-party iframe.
How to test
curl -sI https://example.com | grep -iE "x-frame-options|content-security-policy"
Confirm in a browser by framing the page:
<iframe src="https://example.com/account/delete" width="800" height="600"></iframe>
What to look for
No X-Frame-Options and no frame-ancestors CSP directive — the page loads inside the iframe unmodified.
Notes
Prioritize this on pages with a sensitive one-click action (delete account, confirm payment) — those are what clickjacking actually weaponizes.
References
- OWASP WSTG-CLNT-08 — Testing for Clickjacking.