|
|
|
|
|
by adrianmonk
2127 days ago
|
|
> There isn't an "address bar" for iframes Maybe there should be? If it's important to know what site you're looking at in a top level page, the same thing should apply to an embedded one. Often when I learn about web security, it seems like the user agent abdicates responsibility to be an agent for the user. Probably a case where it's more obvious in hindsight why this is important, but it could still be retrofitted. Maybe there's a better way, but for example, a browser could make the address bar a breadcrumb widget using multiple URLs to depict the iframe nesting. |
|
How do you prevent a website from faking the address bar? The only reason that you can trust address bars right now is that the website can't draw outside the content frame. There's already attacks on mobile[1] involving fake address bars because the address bar can be hidden, allowing the site to draw a fake address bar in its place. The only secure way to do it would be to opening another window (like when you try to use sign in with google), but that still has the issue that lots of legacy sites won't use this security feature, so users will still happily enter in their credit card numbers.
[1] https://jameshfisher.com/2019/04/27/the-inception-bar-a-new-...