3 ms·
Looks like `iframe sandbox` has been supported in major browsers for around 10 years though, including IE10.
by seanwilson 3y ago
Looks like `iframe sandbox` has been supported in major browsers for around 10 years though, including IE10.
- cxr 3y agoThat doesn't change the fundamental character of sandbox being one part of a defense-in-depth strategy instead of being the first-last-and-only line of defense. When you begin using and relying on a security-related feature in a way it was never designed to be used, then you are playing with fire and arguably already compromised. Browser vendors can change their implementation at any time on the basis that newer releases still satisfy the intent. Example: what approach are you using in your hypothetical to actually get the cell contents into the iframe?
- deleted 3y ago[deleted]
- seanwilson 3y ago> in a way it was never designed to be used Most of the evolution of web dev can be described as people pushing the boundaries of what browsers were meant to do until standards caught up. I think iframes for running untrusted content is very standard now (https://caniuse.com/iframe-sandbox https://caniuse.com/iframe-sandbox) with a lot of well supported safe guards built-in like treating the iframe as its own origin. Obviously defense-in-depth is a good idea and you should be careful when setting up iframes, but if there's a good chance `iframe sandbox` is going to break in later browser releases, there's a lot of stuff you couldn't do anymore. Even with CSP, it would only reduce but not eliminate what an attacker could do.
- cxr 3y ago> if there's a good chance `iframe sandbox` is going to break in later browser releases That's not what I said. Can you answer the question?: What approach are you using in your hypothetical to actually get the cell contents into the iframe?