- 最終更新
- 2026/08/17
3秒でわかる
透明にした別サイトの画面を重ね、利用者に見えているボタンとは違うものを押させる攻撃。表示側のヘッダ設定で枠内表示を禁じて防ぎます。
30秒図解
もう少し詳しく
どういうものか
クリックジャッキングは、
押した本人は
なぜ必要か
一クリックで
具体例
攻撃側は
<style>
#bait { position: absolute; top: 120px; left: 40px; z-index: 1; }
iframe { position: absolute; top: 0; left: 0; width: 600px; height: 400px;
opacity: 0; z-index: 2; }
</style>
<button id="bait">無料で診断する</button>
<iframe src="https://example.com/settings"></iframe>防ぐのは
Content-Security-Policy: frame-ancestors 'self'
X-Frame-Options: SAMEORIGINExpress なら
つまずきやすいところ
自分の
古い
覚え方
「見えている

