News for hackers. Stuff that matters.
Re:Blocking Top-Level Navigations to Data URLs for Firefox 58 by chriswarbo on Thursday November 30, 2017 @07:07PM (#15820840)
Does anyone have a (non-malicious) example of this sort of "attack"? I don't quite get it; some people are mentioning Javascript, but the description sounds more like a phishing, e.g. `data:text/html;base64,MyBank.com/account/xxxxx`

Presumably such leading junk is hidden in the rendered page, making the user think they're on MyBank.com?

Re:Blocking Top-Level Navigations to Data URLs for Firefox 58 by tetromino_ on Thursday November 30, 2017 @07:19PM (#15820921)
See https://twitter.com/tomscott/status/812265182646927361

The phishers are using a URL like `data:text/html,https://example.com/account/xxxxx (lots of spaces here) <script>/* phish phish phish */</script>`

You won't see that scary <script> in the URL unless your browser window is super-wide.

Re:Blocking Top-Level Navigations to Data URLs for Firefox 58 by gruez on Thursday November 30, 2017 @07:17PM (#15820906)
>Presumably such leading junk is hidden in the rendered page, making the user think they're on MyBank.com?

it's even simpler than that, they add a bunch of spaces after the "fake" url to pad out the actual payload so it doesn't show in the urlbar. any issues with the page content can be fixed with document.write or whatever.

Re:Blocking Top-Level Navigations to Data URLs for Firefox 58 by Grollicus on Friday December 01, 2017 @05:37AM (#15823087)
I know of a website that decrypts all its content clientside and uses this (i think) as a mechanism for a user to download his own attachments.

The Idea is that the whole website could be a static file somewhere and the webserver is only a key value store that has no idea what it is saving. Doesn't work that way currently because file:/// doesn't allow ajax calls to somewhere else but that's a solveable problem.

Generally, every download that gets generated clientside by the JS is hit by this

Re:Blocking Top-Level Navigations to Data URLs for Firefox 58 by fzzzy on Friday December 01, 2017 @08:30AM (#15823645)
This does not affect downloads of data urls, only navigation to data urls.