top.location forced redirectEMBEDDED

Replace the entire parent window from inside an iframe. The classic test for sandbox allow-top-navigation.

sandbox ポリシー別の挙動
ポリシー想定結果
sandbox 未指定動作
sandbox="allow-scripts"ブロック
sandbox="" (最も厳格)ブロック
Embed スニペット

このスニペットは埋め込み専用ページを使用します。自サービスに貼り付けてレンダリング/ブロックの挙動を確認してください。

<iframe src="https://xss-playground.com/embed/top-redirect?lang=ja" title="XSS Playground - top.location forced redirect" width="600" height="420" loading="lazy" referrerpolicy="strict-origin-when-cross-origin"></iframe>

실행

// 로그 없음

해설