News for hackers. Stuff that matters.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by MarkSweep on Friday April 30, 2021 @08:57PM (#27001760)
> if I have untrusted code running on my CPU, I've already lost

Don’t forget about JavaScript, a common way for people to run untrusted code on their computers. Not all of micro-architectural data sample are exploitable in JavaScript, but some are.

Re:New x86 micro-op vulnerability breaks all known Spectre d... by akersten on Friday April 30, 2021 @09:13PM (#27001872)
Yeah, JS is the only hairy part. I considered mentioning it, since I know it was going to come up. But luckily, all I've seen so far are basic demos (like leaky.page) that read data from a carefully-crafted array that the page itself populated. I've yet to be convinced that you could realistically exfiltrate meaningful data at any sort of scale with in-browser JS, especially now that more blatant bugs like Meltdown are fixed.

If anyone can show a proof-of-concept ("this page grabs your password manager extension's data") I'll eat my words. But I feel confident that most of these issues are purely academic and, while interesting, serve more to provide content for PhD theses than represent urgent hazards on the web.

Re:New x86 micro-op vulnerability breaks all known Spectre d... by userbinator on Friday April 30, 2021 @09:32PM (#27001994)
Indeed, I've been feeling indifferent about all these timing sidechannels ever since the very first ones (Spectre/Meltdown). The PoCs have not been particularly convincing to me, given that they are extremely contrived and rely on knowing the exact details of the system being exploited to such an extent that someone with those details would be better off with other ways in, and assumes those details haven't changed at all during the amount of time required to do the attack --- the nature of these side-channels is such that even the smallest change in environment can completely change the results.

In other words, if I choose a process on my system at random, and dump a few dozen bytes from it, I can technically claim to have leaked some data; but the use of that data to an attacker likely depends strongly on factors which are outside of the attacker's control. It's somewhat like finding a (real-world) key on the ground: you theoretically now have access to something you shouldn't have, but you have next to no idea what that something is.

But I feel confident that these issues are purely academic and, while interesting, serve more to provide content for PhD theses than represent urgent hazards on the web.

They also provide content for sensationalist clickbait articles and fuel the paranoia that drives society towards authoritarianism and furthers the war on general-purpose-computing, which IMHO is a much bigger issue to worry about.

Re:New x86 micro-op vulnerability breaks all known Spectre d... by Fnoord on Saturday May 01, 2021 @07:34AM (#27005411)
> Yeah, JS is the only hairy part. I considered mentioning it, since I know it was going to come up. But luckily, all I've seen so far are basic demos (like leaky.page) that read data from a carefully-crafted array that the page itself populated.

Only PoC says very little. If I were head of a nation state APT I'd look into exploiting this because attack surface of JS is high. I'd only use it targeted, for example on Microsoft Azure team as outlined in Darknet Diaries #78.

Re:New x86 micro-op vulnerability breaks all known Spectre d... by Wowfunhappy on Saturday May 01, 2021 @10:03AM (#27006390)
If a nation state wants to hack into my computer, I have absolute confidence they will succeed. They are not a part of my personal threat model.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by ben_w on Saturday May 01, 2021 @11:32AM (#27007078)
If they’re targeting me in particular, I agree.

If they’re targeting Joe and Jane Average, the long history of government tech procurement failures means I expect them to fail — fail dangerously, but fail.

Re:New x86 micro-op vulnerability breaks all known Spectre d... by brutal_chaos_ on Friday April 30, 2021 @11:42PM (#27002847)
To add more to the hairy part: WASM. And that's growing rapidly.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by kdma on Saturday May 01, 2021 @02:52AM (#27003939)
https://googleprojectzero.blogspot.com/2019/04/virtually-unl... one of the many public browser RCE. Or look for the ps5 jailbreaks, the browser is the common denominator for most systems and its leaky as hell given that JS is dynamically typed and everything gets JIT-ed to hell (https://webkit.org/blog/3362/introducing-the-webkit-ftl-jit/) most exploits I've seen are about tricking webkit into type mismatching + JIT "invalidation". WASM open this hole even wider
Re:New x86 micro-op vulnerability breaks all known Spectre d... by the-smug-one on Saturday May 01, 2021 @05:11AM (#27004656)
How would the statically typed WASM open an even wider hole? Assuming you mean that the size of wasm's hole is larger than js, not that their combined holes are larger than either one.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by sitkack on Saturday May 01, 2021 @12:04PM (#27007358)
Wasm has more control over time and memory access than JS does. From a capabilities model, it is more secure, but from a threat model due to side channels, Wasm is a more effective tool than JS.

This thread discusses SAB (shared array buffer) and Wasm side channels https://github.com/tc39/security/issues/3

Re:New x86 micro-op vulnerability breaks all known Spectre d... by emn13 on Saturday May 01, 2021 @02:15PM (#27008476)
But to compensate those tricky features are sandboxed much more rigorously than JS is, e.g. https://developer.chrome.com/blog/enabling-shared-array-buff... - no SAB without site isolation.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by ForOldHack on Saturday May 01, 2021 @04:24PM (#27009499)
Be afraid. Be very afraid, the hackers are reading this too, as well as the malevolent nation-states hell bent on hacking. I cannot show you a proof of concept right now, but I am betting that within a year, maybe even as quickly as six months. you will see this in the wild.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by baybal2 on Friday April 30, 2021 @09:13PM (#27001868)
Chrome had 7 exploits caught in the wild within 7 weeks in 2020.

I believe it is going towards JIT being disabled, or most severely limited.

Re:New x86 micro-op vulnerability breaks all known Spectre d... by userbinator on Saturday May 01, 2021 @12:26AM (#27003081)
It sounds like a dream, but going back towards interpreted JS instead of JIT may finally stem the insanity of bloat that JS has evolved in an environment of increasingly fast implementations.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by otabdeveloper4 on Saturday May 01, 2021 @01:02AM (#27003298)
The problem of Javascript bloat doesn't have a technical solution.

Javascript bloat exists because of a social problem: the guy who fixes the corporate webpage's javascripts is called a "webdesigner", and "webdesigners" are the lowest rung on the corporate IT ladder, maybe only a bit above first-tier techsupport.

If you want to make some sort of career you need to upgrade from "webdesigner" to "frontend developer", and that means cryptic, incomprehensible and pointless "frontend frameworks".

It provides to value to business or users, but management puts up with it because it fixes the problem of employee churn. (Frontend positions are a big pain in the ass.)

Re:New x86 micro-op vulnerability breaks all known Spectre d... by DangitBobby on Saturday May 01, 2021 @09:32AM (#27006161)
I posit something even simpler. JavaScript bloat exists because it's easy to learn and put something real on a screen for a newb, and it's a pleasure to write in. Writing these frameworks/libraries/websites/whatevers is literally its own reward, and the barrier to sharing tools is low. That, coupled with enthusiastic developers across the entire spectrum of niavete and experience finding new tools fun and exciting to develop and use, and you have an ecosystem with endemic bitrot. It feels absurd to have to say this, but the people who are a part of this ecosystem and contribute to the bloat do not despise the ecosystem the way HN people seem to. They don't see it as broken. It's not going away.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by spion on Monday May 03, 2021 @08:35AM (#27024248)
We do see it as broken, but we see the actual thing that is broken - the web as an application platform.

Since that isn't getting fixed any time soon, most people have tried to take matters into their own hands, with varying degrees of success.

Re:New x86 micro-op vulnerability breaks all known Spectre d... by MaxBarraclough on Saturday May 01, 2021 @06:24AM (#27005044)
> The problem of Javascript bloat doesn't have a technical solution.

It would go away in short order if Google rankings severely penalised it.

Re:New x86 micro-op vulnerability breaks all known Spectre d... by yjftsjthsd-h on Saturday May 01, 2021 @09:59AM (#27006363)
In fairness, that's not a technical solution.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by MaxBarraclough on Saturday May 01, 2021 @10:07AM (#27006437)
That's true.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by ksec on Sunday May 02, 2021 @02:45PM (#27017740)
>Javascript bloat exists because of a social problem

JS bloat exists because HTML Working Group along with the whole industry believes JS is the solution to everything. They believe everything on the web should be Web Apps, and completely neglect Web Page development. It was only in the recent 2 two years did we start seeing discussions to reverse course.

Re:New x86 micro-op vulnerability breaks all known Spectre d... by mort96 on Saturday May 01, 2021 @05:05AM (#27004626)
But JavaScript bloat is allowed to stay (by product managers, middle managers, UX designers, etc) because the website is still fast. If the JS bloat actually caused the site to become too slow on fast machines, people with power to change stuff would demand change.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by jarcane on Saturday May 01, 2021 @05:28AM (#27004738)
People with the power to change stuff thought Java applets were a good idea in 1995, when most computers in wide circulation could barely run the JVM at any acceptable speed.

Never trust the tech industry to make optimal decisions, you are only in for a bad time.

Re:New x86 micro-op vulnerability breaks all known Spectre d... by otabdeveloper4 on Saturday May 01, 2021 @10:52AM (#27006787)
Management can't make these sorts of decisions.

They can set metrics on quality, but those can be easily gamed. (E.g. measuring average TTFB for a site instead of the real wall time to show visible content for the user.)

Re:New x86 micro-op vulnerability breaks all known Spectre d... by mort96 on Saturday May 01, 2021 @12:25PM (#27007543)
Management has the power to say that something isn't good enough and make it a priority. They also have the power to hire employees or consultants if the current team isn't capable of doing it.

Project management _definitely_ has the power to dedicate time to fixing performance issues.

Metrics can be gamed, but certain metrics - such as time to interactive, and time to fully loaded - are fairly well in line with what users actually care about. Even if they're gamed, a project manager can say, "This still feels slow to use. Dedicate the next (sprint|cycle|month|whatever) to performance work."

Re:New x86 micro-op vulnerability breaks all known Spectre d... by anoncake on Saturday May 01, 2021 @11:00AM (#27006843)
Once JIT is disabled, webapps are no longer viable. Which means we can start to deprecate features content-based websites don't need, and eventually, JS itself.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by tannhaeuser on Saturday May 01, 2021 @03:51AM (#27004255)
No reason to insult web developers in general. The simpler explanation is that webapps exist because of an economical problem: that you can make more money (have lower barriers) by either recurring payments for services, or by selling your user's attention, or both.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by otabdeveloper4 on Saturday May 01, 2021 @10:54AM (#27006805)
I do lots of frontend development myself, so I'm a kind of "web developer" as well. And I'm insulting web frameworks, not webapps in general.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by spion on Monday May 03, 2021 @08:32AM (#27024226)
It is a technical problem. Fix the platform by enabling the writing of modular code with controlled, scoped imports and exports between html, css and JS, and you'll see the bloat go away.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by kaba0 on Saturday May 01, 2021 @04:00AM (#27004317)
That would pretty much instantly kill the web, no matter how lean they make websites.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by account42 on Tuesday May 04, 2021 @06:26AM (#27035914)
I assure you, there are large parts of the web that do not use excessive amounts of javascript.
Re:New x86 micro-op vulnerability breaks all known Spectre d... by kaba0 on Tuesday May 04, 2021 @06:32AM (#27035962)
An insignificant portion of a very huge thing can be large.