News for hackers. Stuff that matters.
Re:A Taste of WebGPU in Firefox by MaxBarraclough on Thursday April 23, 2020 @12:29PM (#22957739)
I'm not suggesting any false dichotomy, I'm trying to reason about the likely security consequences given what we saw with WebGL in Firefox: serious security flaws in its implementation, with the features enabled in the browser by default. See my links above, one of which summarises with anyone running Firefox 4 with WebGL support is vulnerable to having malicious web pages capture screenshots of any window on their system.

My thoughts are along these lines:

    ┌────────────────────┬──────────────────────────┬──────────────────────────────┐
    │                    │  Secure implementation   │  Insecure implementation     │
    ├────────────────────┼──────────────────────────┼──────────────────────────────┤
    │ Opt-in             │  Minimal security impact │  Significant security impact │
    │ Enabled by default │  Minimal security impact │  Security disaster           │
    └────────────────────┴──────────────────────────┴──────────────────────────────┘
Re:A Taste of WebGPU in Firefox by AdmiralAsshat on Thursday April 23, 2020 @12:34PM (#22957794)
First time I've seen a decent-looking ASCII table in an HN comment. Well-done!
Re:A Taste of WebGPU in Firefox by MaxBarraclough on Thursday April 23, 2020 @12:40PM (#22957864)
Thanks, it's technically not an ASCII table, it's from the Unicode (single line) style of https://ozh.github.io/ascii-tables/
Re:A Taste of WebGPU in Firefox by fulafel on Thursday April 23, 2020 @04:09PM (#22960620)
Running firefox 4 (or any other comparably old browser), this would be the least of your security problems, it's not even RCE. The stream of discovered vulnerabilities is constant.
Re:A Taste of WebGPU in Firefox by MaxBarraclough on Thursday April 23, 2020 @05:00PM (#22961352)
What's your point? Do you really think I was suggesting that people are still running Firefox 4?

When WebGL was first implemented in Firefox - long ago - it shipped with serious security flaws. This struck many people as sadly predictable, as graphics APIs like OpenGL are not intended to be accessible from untrusted code. WebGPU seems awfully similar to WebGL in this respect: it's trying to wrap a low-level graphics API in a secure sandboxed API. This isn't the equivalent of a routine addition like a new feature in CSS.

Re:A Taste of WebGPU in Firefox by fulafel on Friday April 24, 2020 @12:04AM (#22964506)
The point was that seen from the future, old browser versions are always full of holes in all kinds of features, more in new features than old ones, we should fix the systemic problems that make browsers so ridden with vulnerabilities.

But yes I am guilty of some whataboutism here, WebGL did have some unique problems and WebGPU devs hopefully learn from them.