Earlier quoted context omitted.
Re: http://lcamtuf.coredump.cx/switch/ , couldn't browsers simply do a better job of showing the address when window.location.href is 'data:text/html;-peak.us/banking_interface/' or any other data URL? Re: malicious sites linking back to a parent that opened the, could browsers not also disable cross-origin .opener?
Sure...but that is another thing that needs to be added to all browsers; it begins to feel like a game of whack-a-mole. In the end, browsers rely on an admittedly fragile premise...the only thing that guarantees your current location is a persistent awareness of what domain you are on. Most of the time that works for savvy users (normal users have no fighting chance/nor should they be expected to have to do this). Bu…
Target=”_blank” is an underestimated vulnerability
21–30 of 56 posts
Re: Target=”_blank” is an underestimated vulnerability
#22I reported this issue to Google, Facebook and GitHub. Google and Facebook were not interested and GitHub was already working on a fix.
Re: Target=”_blank” is an underestimated vulnerability
#23I guess this is the trick 99% of porn sites use to do "pop-unders" now. Shouldn't the fix for this be in the browers?
Re: Target=”_blank” is an underestimated vulnerability
#24Re: Target=”_blank” is an underestimated vulnerability
#25Twitter's t.co links seem to mitigate this by issuing a 301 to the actual link thus fixing the `window.opener.location` vulnerability. I wonder if the reasons for implementing this are related or just good riddance :)
Re: Target=”_blank” is an underestimated vulnerability
#26It would make scam pages much more expensive while still allowing most legitimate use. And it would be consistent with existing security policies.
Re: Target=”_blank” is an underestimated vulnerability
#27It seems like there's an easy fix... infer 'rel=noopener' by default on every https site that opens an http site. Or just don't allow http pages to redirect https pages. It would make scam pages much more expensive while still allowing most legitimate use. And it would be consistent with existing security policies.
Re: Target=”_blank” is an underestimated vulnerability
#28For anyone that wants to see this in action: - Open a website, let's say google.com - Open a console and type in `window.open(" http://xkcd.com")` - Disable your popup blocker and do it again. - Open a console in the new xkcd window and type in `window.opener.location = " https://news.ycombinator.com/user?id=Cpoll"` Note that Google quietly turned into my profile page. Now, imagine that it instead turned into malicio…
If the attacker can run the javascript you mentioned, they've already run.
Re: Target=”_blank” is an underestimated vulnerability
#29Re: Target=”_blank” is an underestimated vulnerability
#30It seems like there's an easy fix... infer 'rel=noopener' by default on every https site that opens an http site. Or just don't allow http pages to redirect https pages. It would make scam pages much more expensive while still allowing most legitimate use. And it would be consistent with existing security policies.