Clipboard hijackEMBEDDED

Intercept the copy event and overwrite clipboard contents.

按 sandbox 策略的行为
策略预期结果
无 sandbox通过
sandbox="allow-scripts"通过
sandbox="" (最严)阻止
Embed 代码

此代码使用专用嵌入页面。粘贴到您的服务后检查渲染或拦截行为。

<iframe src="https://xss-playground.com/embed/clipboard-hijack?lang=zh" title="XSS Playground - Clipboard hijack" width="600" height="420" loading="lazy" referrerpolicy="strict-origin-when-cross-origin"></iframe>

실행

여기서 이 줄을 직접 선택해서 복사(Cmd/Ctrl+C) 해 보세요. 클립보드에 다른 내용이 들어갑니다.
// 로그 없음

해설