News for hackers. Stuff that matters.
Re:More Intel speculative execution vulnerabilities by scandinavian on Wednesday November 13, 2019 @03:39AM (#21522108)
There have been more Chrome/Firefox 0-days than speculative execution vulnerabilities exploitable in Javascript (0). Sure, there is a chance that the Chrome/Firefox teams missed something, but there have been sighted no exploits since the release (of spectrev1) and the browser fixes.

It's not a crazy threat model to have on a personal PC, the risk is so very minimal. If your threat model is that strict you shouldn't be running JS anyway.

Re:More Intel speculative execution vulnerabilities by dijit on Wednesday November 13, 2019 @04:03AM (#21522254)
What are you even talking about? the introduction to this problem came with a proof-of-concept _IN JAVASCRIPT_.[0]

Session keys, private keys, passwords and all other kinds of access tokens that your system is using, it's the next worst thing from remote code execution.

Your browser runs so much untrusted code that it's really unreasonable, and yes, we should definitely be pushing back hard on this. But it's probably the most stupid thing you can do to disable these mitigations because they're not just theoretical, they're real, they're here and everyone knows about them.

This is like anti-vaxx philosophy. "the risk is low"; well, maybe the risk is low because of herd immunity, it's not feasible to run these attacks as they'll be obvious to those who have the mitigations in place (100% CPU), but if there's a 0.00000001% return then it becomes profitable to exploit, just like mail spam.

Do not fucking turn off these mitigations on desktop computers, they are too complex and run untrusted code all the time. Unless you can work without javascript and I doubt you can because the web today is basically unusable without it.

If you have a database which is only accessible internally, you can disable the mitigations, because those things are hit hardest by the mitigations and do not run untrusted code.

But really, your desktop is running untrusted code _a lot_. Please do not do this, not only for your own sake but for everyones sake. Don't make it profitable for malicious agents to run these attacks.

[0]: https://www.reddit.com/r/javascript/comments/7ob6a2/spectre_...

Re:More Intel speculative execution vulnerabilities by dang on Wednesday November 13, 2019 @04:14PM (#21529649)
Can you please not post in the flamewar style to HN, regardless of how right you are or feel you are? It degrades the site and provokes worse from others, and we need better than that here. Also, it poisons any good information in your comment.

https://news.ycombinator.com/newsguidelines.html

Re:More Intel speculative execution vulnerabilities by scandinavian on Wednesday November 13, 2019 @04:24AM (#21522371)
From the comment in your link:

> It's missing the entire actual implementation of the Spectre attack, which requires analysis of read times to see if you're hitting the processor cache or not.

"analysis of read times" is what the browsers "fixed" to mitigate the attacks (and site isolation later). Again, there has been no working attacks on updated browsers.

Please feel free to link an example of one though, I will gladly admit I'm wrong. You just seem to frankly have no idea how the exploits actually work though (did you actually read the code in the reddit post?), so I suspect that this conversation will be a waste of time.

Re:More Intel speculative execution vulnerabilities by dijit on Wednesday November 13, 2019 @05:21AM (#21522622)
The browser mitigation’s only work with the kernel mitigation’s. Neither is working well without the other. And yes. I’m very well versed on this topic.
Re:More Intel speculative execution vulnerabilities by scandinavian on Wednesday November 13, 2019 @05:35AM (#21522683)
>The browser mitigation’s only work with the kernel mitigation’s.

That's just not true. The timer precision doesn't have anything to do with the kernel mitigations.

Re:More Intel speculative execution vulnerabilities by dijit on Wednesday November 13, 2019 @05:58AM (#21522822)
The timing precision thing by itself doesn't twarte anything, it just makes the attacks harder or take more time.

The browser vendors themselves said this; and it's not a permanent solution as tech such as Stadia and WebVR rely on high precision timers.

But, whatever man, I'm telling you that it's stupid and you want to bury your head in the sand.

You just make these attacks more likely; I'm not going to be impacted except for a few trillion CPU cycles of idiots trying to exploit me.

You're the one who puts their entire digital life on the line by eking out 5% performance.

Re:More Intel speculative execution vulnerabilities by scandinavian on Wednesday November 13, 2019 @06:16AM (#21522908)
>The timing precision thing by itself doesn't twarte anything, it just makes the attacks harder or take more time.

Oh, so it just takes more time, so you have knowledge of an exploit? Fine, show me any PoC or similar bypassing the lower accuracy and site isolation.

You are such a big part of the problem with how this whole class of exploits have been handled. No technical knowledge, just spewing stuff like "You're the one who puts their entire digital life on the line", when we there is no indication that anything like that can transpire.

Please stop spreading misinformation.

Re:More Intel speculative execution vulnerabilities by dang on Wednesday November 13, 2019 @05:18PM (#21530271)
Personal attacks are not ok on HN and we ban accounts that do that, so please don't do that—regardless of how wrong another comment is or you feel it is.

https://news.ycombinator.com/newsguidelines.html

Re:More Intel speculative execution vulnerabilities by dijit on Wednesday November 13, 2019 @09:10AM (#21524195)
Except that the Spectre paper already takes degraded timers into account and suggests to use a Web Worker thread that increments a value in a loop as a replacement.

This is not misinformation, _you_ are spreading "certainty" of safety surrounding a dangerous idea.

https://spectreattack.com/spectre.pdf

Even if I was wrong, and very wrong, why the hell would you choose to be less safe? this whole thread chain is absolutely baffling. Buy an AMD CPU or leave the mitigations on. Everything else is needlessly opening yourself up.

Re:More Intel speculative execution vulnerabilities by scandinavian on Wednesday November 13, 2019 @09:33AM (#21524482)
>Except that the Spectre paper already takes degraded timers into account and suggests to use a Web Worker thread that increments a value in a loop as a replacement.

Yeah, which was why SharedArrayBuffer was disabled when spectrev1 was released. It is still disabled in Chrome if site-isolation is disabled and it's still disabled in firefox.

You should really know all this if you are so very well versed in the subject.

>Even if I was wrong, and very wrong, why the hell would you choose to be less safe? this whole thread chain is absolutely baffling. Buy an AMD CPU or leave the mitigations on. Everything else is needlessly opening yourself up.

I don't run without migrations. I commented on the original parent comments threat model and that I think it's perfectly logical. And I maintain this, if your threat model is so strict, that you are afraid of speculative execution vulnerabilities hitting you through javascript, you should not run JS at all, as regular js 0days have hit while no actual speculative execution browser exploits have hit.

Re:More Intel speculative execution vulnerabilities by dijit on Wednesday November 13, 2019 @10:43AM (#21525337)
“Threat model is so strict” is weird to say when any ad network can access any and all memory on your desktop potentially.

That’s a very wide attack scope.

Re:More Intel speculative execution vulnerabilities by scandinavian on Wednesday November 13, 2019 @11:11AM (#21525722)
You have misunderstood how the browser attacks work. They are limited to the memory assigned to the browser process. If site-isolation and the other browser mitigations were somehow bypassed, an ad-network would potentially be able to read some data from other loaded tabs.

You can't use the speculative execution vulnerabilities to just read all system memory using a javascript exploit. Like the exploit that is the topic of this post can't be used in a browser at all, as you are limited to what the JIT executes, you can't just execute TSX instructions in a browser.

You might be thinking of when you have native code execution.

Re:More Intel speculative execution vulnerabilities by saurik on Wednesday November 13, 2019 @11:37AM (#21526036)
The website covers a handful of things, and the RIDL exploits don't require special instructions.

> We leak a string from another process using Javascript and WebAssembly in the SpiderMonkey engine.

Re:More Intel speculative execution vulnerabilities by scandinavian on Wednesday November 13, 2019 @12:03PM (#21526388)
> We leak a string from another process using Javascript and WebAssembly in the SpiderMonkey engine.

They leak in flight data, using a detached spidermonkey engine, patched to make performance.now() return rdtscp at a rate of 1B/s while the victim application is spamming a load string instruction as fast as possible.

This does not allow:

>any ad network can access any and all memory on your desktop

This allows any ad-network to access random bits on the cache line. If the timing mitigation didn't already fix this, it seems impossible to me to get anything useful from it, the precision and bitrate is just too low (which is why the exploit just spams load instructions in a while 1 loop).

>and the RIDL exploits don't require special instructions.

Weird, in the new addendum it says it uses TSX, and in the PoC it uses XBEGIN. Must be a mistake.

[dead]
Re:More Intel speculative execution vulnerabilities by brewdad on Wednesday November 13, 2019 @10:29AM (#21525180)
I just read your username. Well played.
[dead]
Re:More Intel speculative execution vulnerabilities by dang on Wednesday November 13, 2019 @04:16PM (#21529667)
Could you please stop taking HN threads further into flamewar? It breaks the site rules and we need better than that here.

https://news.ycombinator.com/newsguidelines.html

Re:More Intel speculative execution vulnerabilities by jotm on Wednesday November 13, 2019 @04:20AM (#21522343)
Ha, I had the same thought, comparing this to antivaxxers.

The downsides are of course, infinitely lower (stolen password vs disability or death), but yeah the similarity is there.

We've yet to see a real world attack using any of these, however.

Re:More Intel speculative execution vulnerabilities by Grangar on Wednesday November 13, 2019 @05:48AM (#21522745)
Browser 0-days still often run on user priviledges. The moment you get code-execution on a vulnerable Intel CPU that turns into hardware level access.

And like the other commenter said, there are also JS implementations.

Re:More Intel speculative execution vulnerabilities by MiroF on Wednesday November 13, 2019 @09:37AM (#21524542)
> There have been more Chrome/Firefox 0-days than speculative execution vulnerabilities exploitable in Javascript (0).

sure dude, sure

Re:More Intel speculative execution vulnerabilities by scandinavian on Wednesday November 13, 2019 @09:51AM (#21524720)
Chrome: CVE-2019-13720, CVE-2019-5786 Firefox: CVE-2019-11707/CVE-2019-11708

Your turn. Link the speculative execution 0days.

Re:More Intel speculative execution vulnerabilities by MiroF on Thursday November 14, 2019 @09:07AM (#21535412)
Here's an example of post-mitigation reading of protected memory using Javascript and Spectre https://alephsecurity.com/2018/06/26/spectre-browser-query-c...

I think it's just silly that you would rely on browser mitigations like disabling high precision timers when that's obviously just a hack.

Re:More Intel speculative execution vulnerabilities by scandinavian on Thursday November 14, 2019 @11:54AM (#21536955)
As is said in the PoC, it does not bypass index masking and site-isolation. They read data already available to the code they are executing. They did show that the timer resolution mitigation is not 100% effective, which is well known and why it is not the only mitigation.

That's not a speculative execution browser 0day, as it doesn't work in updated browsers and it never has (or I guess it works if you want to leak data you could just console.log). Could you post an actual 0day instead?