navigator.sendBeacon / fetch 数据外传EMBEDDED

检查 iframe 自身 origin 中收集的信息和 referrer 是否可通过 sendBeacon 或 fetch 发送到外部。

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

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

<iframe src="https://xss-playground.com/embed/beacon-exfil?lang=zh" title="XSS Playground - navigator.sendBeacon / fetch 数据外传" width="600" height="420" loading="lazy" referrerpolicy="strict-origin-when-cross-origin"></iframe>

执行

document.referrer
-
navigator.userAgent
-
// 无日志

说明