News for hackers. Stuff that matters.
Re:Planet Shadertoy by FraKtus on Sunday February 25, 2018 @03:10AM (#16457800)
Are there examples where this model has been abused to steal real data?
Re:Planet Shadertoy by jburgess777 on Sunday February 25, 2018 @09:00AM (#16458973)
A long time ago, a bug in Firefox let a screenshot be taken of data outside the browser window:

"This issue allows attackers to capture screen shots of private or confidential information"

https://blog.mozilla.org/security/2011/06/16/webgl-graphics-...

Re:Planet Shadertoy by FraKtus on Sunday February 25, 2018 @11:39AM (#16459708)
I suppose this is more about reading another texture than the one you are supposed to use. GPU memory is flat, and there is no concept of process memory up there.
Re:Planet Shadertoy by jsheard on Sunday February 25, 2018 @08:56AM (#16458955)
In the early days of WebGL some browsers leaked information via uninitialized GPU memory, so an attacker could potentially read texture data left behind by other processes.

Todays WebGL implementations take care to wipe new memory allocations with zeros before letting the untrusted script do anything with them though.

Re:Planet Shadertoy by FraKtus on Sunday February 25, 2018 @11:48AM (#16459756)
That's the same than starting a process and mallocing some memory; you will have the garbage of the previous process... Because you have no idea who owned that memory and what it was used to it would be hard to build something on top of that. This being said it's not a bad idea to zero stuff when you start to use them.