News for hackers. Stuff that matters.
Re:Meltdown and Spectre by sveme on Thursday January 04, 2018 @11:11AM (#16071436)
If I understand it correctly (not entirely sure), an adversary needs to have code running on a system to exploit either attack - would Javascript running in a browser be in principle sufficient to be able to exploit this, or are there some mitigations (sandboxes?) in place to prevent this from happening?

Edit: Okay, found this post from yesterday: https://blog.mozilla.org/security/2018/01/03/mitigations-lan...

Thanks for the reply!

Re:Meltdown and Spectre by ckuehl on Thursday January 04, 2018 @11:15AM (#16071466)
From the Spectre paper:

> As a proof-of-concept, JavaScript code was written that, when run in the Google Chrome browser, allows JavaScript to read private memory from the process in which it runs (cf. Listing 2).

https://spectreattack.com/spectre.pdf

Re:Meltdown and Spectre by paulhodge on Thursday January 04, 2018 @11:51AM (#16071811)
Yes javascript is sufficient.

I think Spectre is theoretically possible with just untrusted data (not just untrusted code).

It would need an existing trusted program that has a branch-predicting loop like the one in the paper. The attacker would feed untrusted data into the loop and then observe secrets through cache timing.

It's weird code, so it's probably unlikely an existing program would have it, but it's not outside the realm of possibility. The attacker would also need a high-precision way to measure the timing of the operation, which also might be hard to find in an existing program, but not impossible.

Just something else to keep you awake at night!

Re:Meltdown and Spectre by kllrnohj on Thursday January 04, 2018 @12:37PM (#16072217)
They need code execution to observe that cache timing, though, and they need to prime the branch predictor and cache.
Re:Meltdown and Spectre by paulhodge on Thursday January 04, 2018 @01:09PM (#16072529)
I think the branch predictor can be primed with well-crafted data? (start off with a long series of 0s for X)

For the other aspects like getting the cache timing, that does seem harder. I don't really know if it's feasible in practice.

Re:Meltdown and Spectre by mkagenius on Thursday January 04, 2018 @12:06PM (#16071939)
Re:Meltdown and Spectre by derekp7 on Thursday January 04, 2018 @11:14AM (#16071455)
Yes, and one of the mitigations is to reduce the precision / accuracy of certain timer calls in Javascript.