postMessage spoofingEMBEDDED

Send forged messages to the parent via parent.postMessage. If the parent skips event.origin validation, it can trust attacker-crafted payloads.

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

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

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

실행

target origin
// 로그 없음

해설