Autoplay media / forced fullscreen
Autoplay sound video, call requestFullscreen, and observe what gets through.
sandbox ポリシー別の挙動
| ポリシー | 想定結果 |
|---|---|
| sandbox 未指定 | 部分動作 |
sandbox="allow-scripts" | 部分動作 |
sandbox="" (最も厳格) | ブロック |
Embed スニペット
このスニペットは埋め込み専用ページを使用します。自サービスに貼り付けてレンダリング/ブロックの挙動を確認してください。
<iframe src="https://xss-playground.com/embed/autoplay-media?lang=ja" title="XSS Playground - Autoplay media / forced fullscreen" width="600" height="420" loading="lazy" referrerpolicy="strict-origin-when-cross-origin"></iframe>
실행
// 로그 없음
해설
- 최신 브라우저는 muted 자동재생만 기본 허용합니다. 소리 있는 자동재생은 사용자 제스처(클릭/탭) 가 필요합니다.
- 풀스크린도 사용자 제스처가 필요합니다. iframe 이라면 추가로
allow="fullscreen"또는sandbox가 없어야 동작합니다. - 공격 가치는 낮지만, 풀스크린 + 가짜 로그인 폼 조합은 사용자를 깊게 속일 수 있는 패턴입니다.