News for hackers. Stuff that matters.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by Renaud on Tuesday August 04, 2015 @08:26AM (#10002891)
I've removed Flash entirely from my computers. I was afraid that it would degrade my experience, but I'm barely missing it.

Sure there are a few sites that insist on using flash for video or some old games, but I'm ok with that sacrifice.

Flash has been a tool of evil for too long: either storing permanent cookies for tracking or as a tool to exploit vulnerabilities in itself or its host.

There is nothing on the web today that should require flash. Using it for adverts is especially egregious considering that it remains a major vector of attack despite all attempts at fixing it.

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by georgerobinson on Tuesday August 04, 2015 @12:20PM (#10004373)
I don't know if you use Google Chrome, but Adobe Flash Player in sandboxed in Chrome as a Native Client module.

All interaction between a Native Client module, the host process, and the host the operating system must be mediated via the PPAPI (Pepper API). Native Client has a set of rules which are enforced via the validator to ensure that untrusted code (that is Adobe Flash itself) cannot jump, load or store outside to addresses outside the sandbox. More information on how Native Client does this can be found in the links below.

Note: you should be familiar with the x86 and x86-64 instruction set for it to make much sense.

Nevertheless, here is some more information:

[1] https://support.google.com/chrome/answer/108086?hl=en-GB

[2] http://www.eecs.harvard.edu/~greg/cs255sp2004/wahbe93efficie...

[3] http://static.googleusercontent.com/media/research.google.co...

[4] http://static.googleusercontent.com/media/research.google.co...

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by justizin on Tuesday August 04, 2015 @12:43PM (#10004516)
> I don't know if you use Google Chrome, but Adobe Flash Player in sandboxed in Chrome as a Native Client module.

That is, indeed, smart, but I stopped using Chrome on the basis that I don't want to use a browser that is developed by a company whose customers are advertises and for whom I am the product. :/ I was an early Chrome adopted and I saw the tide turning a way I didn't like.

I've actually been pretty happy with Safari and ClickToFlash plugin of late, I'm not as worried about sandboxing it when I only use it in a couple of places behind AdBlockPlus.

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by georgerobinson on Tuesday August 04, 2015 @12:56PM (#10004615)
I don't use Chrome either. I like Firefox - even if it is less secure (in principle) than Chrome (no process separation between domains or sandboxing of plugins).

The reason Native Client exists extends well beyond Adobe Flash Player. Native Client exists to enable your browser to run native code from any website (think compiled C and C++ code) without it being able to compromise the security of your machine.

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by justinschuh on Tuesday August 04, 2015 @06:39PM (#10006737)
Flash in Chrome uses PPAPI plus some private APIs that were necessary to support Flash-specific features. It absolutely does not use a strict PPAPI sandbox and does not run under NaCl. To explain some differences, the Flash plugin is not bound to Web origins like NaCl plugins are, because Flash cannot strictly follow the Web origin model. And there are platform differences as well, such as on Windows where Flash requires GDI access but for other sandboxed content we block the entire win32k subsystem (including GDI).

My advice for security conscious people is to enable click-to-play in Chrome for Flash content, because it has a featureset and legacy dependencies that prevent it from ever being sandboxed as strongly as other content.

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by georgerobinson on Wednesday August 05, 2015 @02:57AM (#10008330)
> Flash in Chrome uses PPAPI plus some private APIs that were necessary to support Flash-specific features

Thanks for the authoritative reply!

If Flash doesn't run under NaCl why use the PPAPI? Wouldn't libc be much more convenient, since you don't have to port Flash to the PPAPI?

Furthermore, I would imagine using the PPAPI directly wouldn't do much to enforce security since Flash can do whatever it likes in it's virtual address space, including jumping past checks and assert instructions in the PPAPI?

If Flash doesn't run under NaCl, does it run under the same user and privilege as Chrome?

Finally, can you comment on this quote from http://krebsonsecurity.com/2015/07/adobe-to-patch-hacking-te...:

> Several reports on Twitter suggested the exploit could be used to bypass Google Chrome‘s protective “sandbox” technology

It's frustrating that there is no source. However, the above quote would suggest that Flash runs inside NaCl. Is this factually incorrect?

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by justinschuh on Wednesday August 05, 2015 @10:07AM (#10009754)
> If Flash doesn't run under NaCl why use the PPAPI? Wouldn't libc be much more convenient, since you don't have to port Flash to the PPAPI?

I think you might have a few misconceptions. Chrome employs an outer process sandbox using OS primitives like seccomp-bpf on Linux and token restrictions on Windows. This process level sandboxing is what we use for running all untrusted content in Chrome. NaCl runs inside this outer sandbox as well, but it also applies an inner sandbox enforcing code flow integrity by verifying binaries against a subset of allowed instructions. PPAPI provides a portability layer that also serves to broker access to resources for any of Chrome's sandboxing mechanisms. So, something like PPAPI is needed for any sandboxed Chrome code, regardless of the sandboxing mechanism.

> Furthermore, I would imagine using the PPAPI directly wouldn't do much to enforce security since Flash can do whatever it likes in it's virtual address space, including jumping past checks and assert instructions in the PPAPI?

PPAPI isn't a security layer. As I mentioned above, it's a portability layer that can be used to broker resource access to sandboxed code. And PPAPI Flash is definitely sandboxed; it's just in a process sandbox that doesn't have the additional restrictions of NaCl's CFI sandbox. To explain a bit more, sandboxing in general isn't a binary state. Rather, there are varying degrees of restrictions that can be employed depending on the content, and in the case of Flash there are certain implementation details and legacy requirements that prevent it from running under the full set of restrictions that Chrome can apply to other content.

> If Flash doesn't run under NaCl, does it run under the same user and privilege as Chrome?

No, as I mentioned above Flash is sandboxed and runs at a severely reduced privilege. However, depending on the platform Flash may run at slightly greater privilege than Chrome runs e.g. Web content. And on all platforms, the Flash sandbox is less restrictive than the NaCl CFI sandbox (mostly due to the absence of CFI, but there are a few other differences as well).

>> Several reports on Twitter suggested the exploit could be used to bypass Google Chrome‘s protective “sandbox” technology

> It's frustrating that there is no source. However, the above quote would suggest that Flash runs inside NaCl. Is this factually incorrect?

The Hacking Team leaks included a Windows kernel escalation exploit against font parsing code exposed by Windows GDI. The vulnerability has since been fixed by Microsoft, but it was previously exposed to any process that could access GDI, which includes Flash in Chrome (and every other browser for that matter).

This also highlights the point I made earlier about varying degrees of sandboxing on different platforms, because Chrome doesn't expose GDI to Web content. Rather, Chrome uses a capability present in Windows 8 and above to disconnect the win32k subsystem from sandboxed Web processes, shutting off GDI and all other Win32 attack surface entirely. However, the same approach is not viable for Flash because the Windows version of Flash is coupled very tightly with GDI.

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by scurvy on Tuesday August 04, 2015 @03:17PM (#10005584)
Exploits have broken out of the sandbox before using OS-level security holes. The sandbox is not anywhere near 100% effective. If you feel safe using Flash in Chrome because of the sandbox, you might want to re-evaluate.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by georgerobinson on Tuesday August 04, 2015 @03:46PM (#10005770)
Can you expand as that? Did they break out via the service runtime, or through an implementation defect in the validator?

I recall that Chris Rohlf presented an implementation defect in one of the two at a Black Hat conference some years back, but the sandboxing is otherwise solid.

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by scurvy on Tuesday August 04, 2015 @04:07PM (#10005927)
They don't go into detail, but Google confirms you can break out of the sandbox by coupling a Flash exploit with an OS exploit.

http://krebsonsecurity.com/2015/07/adobe-to-patch-hacking-te...

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by funkyy on Tuesday August 04, 2015 @10:11AM (#10003467)
Just fyi and for others to see, you can remove flash cookies by going to this url: http://www.macromedia.com/support/documentation/en/flashplay...

This is a good solution for people that cannot work without flash.

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by ketralnis on Tuesday August 04, 2015 @12:31PM (#10004450)
It is a "solution", but not a good solution.

Spying on me by default, and claiming that periodically removing the cookies you've already used to do it on an essentially secret website is sufficient, is not a good solution.

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by DatBear on Tuesday August 04, 2015 @02:16PM (#10005190)
So do you not use browsers then? Cookies are enabled by default in most browsers as well. And you can just as easily figure out how to remove flash cookies as browser cookies.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by ketralnis on Tuesday August 04, 2015 @05:16PM (#10006335)
1. it's not nearly as hidden

2. am I not allowed to dislike both things?

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by forloop on Tuesday August 04, 2015 @08:46AM (#10003006)
Though you got downvoted, you're correct! Even the people of HN are overcome with be-positive-bias, when faced with technical questions. Flash is junk!

I disabled it after Brian Krebs tried living without Flash successfully—and reported on it. It's been awesome! If I need Flash, I open a different browser. Easy.

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by andy_ppp on Tuesday August 04, 2015 @09:16AM (#10003163)
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by jorgecastillo on Tuesday August 04, 2015 @09:12AM (#10003145)
>If I need Flash, I open a different browser.

If I need Flash, I open a different user account!

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by Retr0spectrum on Tuesday August 04, 2015 @09:34AM (#10003252)
If I need flash, I load up a VM.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by forloop on Tuesday August 04, 2015 @09:16AM (#10003161)
Some things aren't fungible, though.

Where possible, I do, as well!

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by kachnuv_ocasek on Tuesday August 04, 2015 @09:23AM (#10003196)
If I need Flash, I go to an Internet café or a library.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by LastZactionHero on Tuesday August 04, 2015 @09:57AM (#10003383)
I've never seen a 'be-positive-bias' in HN.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by ams6110 on Tuesday August 04, 2015 @10:41AM (#10003642)
In general I agree with you, but reliably whenever anyone complains about sites that require javascript or flash to load, people will respond that javascript (or to a lesser degree, flash) is required in the modern web and if you don't have it enabled by default you are some kind of wierd paranoid luddite.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by brobinson on Tuesday August 04, 2015 @12:27PM (#10004424)
I uninstalled Flash and just pop open Google Chrome for the occasional site which needs Flash. I'm surprised by the number of sites which have HTML5 fallback for when Flash is not present now. It's a far cry from what it was a year ago.

After flipping whatever switch in about:config that enabled HD Youtube video in the HTML5 player in Firefox last year, I haven't really had any use for Flash at all.

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by drzaiusapelord on Tuesday August 04, 2015 @09:43AM (#10003311)
I did the same thing. I have Chrome configured as my "work browser" and have flash set to click to play, due to legacy software concerns. I almost never click on flash applets. I also have Firefox setup as my "personal" browser and never bothered to install flash. I can't say I'm missing anything.

It would be nice if browser vendors got together and announced a Flash EOL on their platforms. On that day Flash becomes a strict click-to-play option by default with big warnings to undo it. Then eventually a tombstoning of Flash where its disabled outright and perhaps only enabled via some registry/config hackery that's user unfriendly but sysadmin/enterprise friendly.

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by stephengillie on Tuesday August 04, 2015 @10:45AM (#10003667)
It's frustrating that VMWare is moving toward Flash as a management platform. Their entire 5.5 web console is in Flash.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by timboslice on Tuesday August 04, 2015 @10:48AM (#10003698)
Why flash? What advantages do they get with flash that outweigh the negatives?

https://www.youtube.com/watch?v=31g0YE61PLQ

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by illicium on Tuesday August 04, 2015 @01:24PM (#10004825)
VMWare probably has a bunch of enterprise customers stuck using IE7-9, so a modern HTML5 SPA for the admin interface is prohibitively expensive to write and maintain.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by mshenfield on Tuesday August 04, 2015 @10:11AM (#10003465)
One huge site that still uses Flash is HBO Go. Surprising considering most other big streaming video services (Netflix, Youtube, Vimeo) have moved or are moving to HTML5.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by ce4 on Tuesday August 04, 2015 @11:44AM (#10004136)
> Sure there are a few sites that insist on using flash for video or some old games, but I'm ok with that sacrifice.

I use this generic downloader (despite its name) for the few flash video sites that i use. Works great for many sites.

https://rg3.github.io/youtube-dl/

Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by rtkwe on Tuesday August 04, 2015 @10:21AM (#10003514)
The biggest area it's still important for me in my daily use is live streaming video. Most players are still flash.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by agumonkey on Tuesday August 04, 2015 @09:50AM (#10003356)
If browsers had a native 'push url to external program' I wouldn't miss most of the web.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by justizin on Tuesday August 04, 2015 @12:48PM (#10004549)
They do, it's called a protocol handler, this is how video worked in the 90s.
Re:Hackers Exploit 'Flash' Vulnerability in Yahoo Ads by agumonkey on Tuesday August 04, 2015 @01:51PM (#10005008)
:) Good point, I never really investigated how to leverage them under linux because of program requiring a tty... Still good reminder.