by chickopozo · 13y ago · 0 comments
You should use a different domain as there are tricks to leverage arbitrary js on a subdomain.
Sandboxing is to help protect the client from arbitrary crap. It was never intended to protect the server.
And as for UI Redressing (aka ClickJacking) browsers that support the sandbox attribute must support X-Frame-Options.
Sure, a one new thing without the other new things it expects is bad, but older browsers won't support any of them and the old thing will still work.
So there is a scenario in which browser support for sandboxed frames could cause problems for preexisting websites.
if (parent && parent != window && (browser.msie || browser.opera || browser.mozilla || browser.chrome || browser.safari || browser.iphone)) {
document.getElementsByTagName('body')[0].innerHTML = '';
}
It cannot be bypassed with NoContent trick by the way. Because it removes body, not navigates the parentI understand that English is not everyone's first language, but I honestly had a hard time parsing the linked post.
Sandbox COULD be a good thing. Eventually it's evil