-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bypass via nested same-origin iframe #136
Comments
Fix seems to be block cross-origin contentWindow only allowing what is known to be safe. |
In a world where:
Then the answer to the question "Does this mean Google has a security issue?" is in fact YES. And the context of this project is around assuming a potential user of Snow wants to protect themselves against this class of issues, so again, this is a security issue. To be clear, in the world I describe, Google are expected to serve google.com/favicon.ico with an In MetaMask, currently being the main adopter of Snow, we take these issues seriously, which is why you can't frame anything under the MetaMask origin, including That being said, this isn't ideal. I would obviously prefer a better solution that requires less responsibility from the adopter. This is why we wish to end up in a place where we convince browsers to help out with some builtin solutions. But for now, I agree encouraging the adopter to set a |
Yeah for the browser extension I see you got Regarding the
Does work :) I agree with encouraging the adopter to set a |
This is an unrealistic assumption. There will be always plenty of endpoints with either missing the headers or the ones that are purposefully frameable. Even with that assumption, the below bypass works fine with both f=document.createElement('iframe');
f.hidden = true;
f.src='https://terjanq.me/xss.php?html=<iframe>';
f.onload = () => {
f.contentWindow[0].location='about:blank';
setTimeout(()=>{
f.contentWindow[0].alert(origin);
}, 500);
}
document.body.appendChild(f); |
The text was updated successfully, but these errors were encountered: