Hacker Newsnew | comments | ask | jobs | submitlogin
Flash Crash (Warning, may crash your browser) (dempsky.org)
173 points by zain 215 days ago | comments


31 points by davidu 215 days ago | link

If it crashes you:

$ lynx --dump http://flashcrash.dempsky.org/

   If you are reading this from a browser using Adobe's Flash Player
   plug-in (i.e., if you see a blue rectangle below), it will probably
   crash within the next few seconds. :-(
   [EMBED]

     "Regarding crashing, I can tell you that we don't ship Flash with
     any known crash bugs, and if there was such a widespread problem
     historically Flash could not have achieved its wide use today,"
     Lynch wrote. "Addressing crash issues is a top priority in the
     engineering team, and currently there are open reports we are
     researching in Flash Player 10."
     [1]Adobe Defends Flash, Calls Apple Uncooperative

   This page exploits a bug that I reported to Adobe in September 2008,
   and has affected every release of Flash on every platform since then.
   Despite numerous email exchanges with the Flash product manager about
   the bug, the bug report being hidden from the public for "security"
   reasons, and Adobe CTO Kevin Lynch's claims otherwise, it continues to
   be an issue.
     * [2]Original Bugtraq posting
     * [3]CVE-2008-4546
     * [4]Link to Adobe JIRA bug report (not accessible to the public
       anymore)
     _________________________________________________________________

   Email: Matthew Dempsky <[5]matthew@dempsky.org>; Twitter: [6]@mdempsky
References

   1. http://www.pcmag.com/article2/0,2817,2358815,00.asp
   2. http://www.securityfocus.com/archive/1/archive/1/496929/100/0/threaded
   3. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4546
   4. http://bugs.adobe.com/jira/browse/FP-677
   5. mailto:matthew@dempsky.org
   6. http://twitter.com/mdempsky

-----

1 point by jdowdell 214 days ago | link

Player team update here, 6pm Saturday Pacific: http://blogs.adobe.com/emmy/archives/2010/02/flash_bug_repor...

-----

28 points by jdietrich 215 days ago | link

Within fifteen seconds of Flash Crash crashing my Flash, my laptop's fan stopped for the first time today. I think I might just uninstall flash.

-----

1 point by sjs 214 days ago | link

https://addons.mozilla.org/en-US/firefox/addon/433

http://rentzsch.github.com/clicktoflash/

https://chrome.google.com/extensions/detail/cdngiadmnkhgemki...

-----

16 points by chaosmachine 215 days ago | link

Put a warning in the title, please. Blind linking to a browser crashing demo is not cool.

Edit: Thanks.

-----

5 points by cmelbye 215 days ago | link

ClickToFlash for the win.

-----

63 points by m104 215 days ago | link

Much praise to the Google Chrome team for handling this sort of thing gracefully.

-----

21 points by ramchip 215 days ago | link

And much praise to the Opera team for just not crashing in the first place. I can zoom in the blue square, move around, etc. and the page is still fine after a minute or so leaving it open.

-----

2 points by Niten 214 days ago | link

Can anyone enlighten me on this? I noticed the same thing:

* Viewing this page in Firefox 3.6 on Windows caused Flash to crash, taking the browser down with it.

* Viewing it in Chrome on the same machine caused the Flash plugin subprocess to crash, resulting in an error message in Chrome.

* However, no crash occurred in Opera. This despite the fact that 32-bit Opera on Windows does not appear to use isolated subprocesses for running NSAPI plugins.

So what's going on here? Does Opera use some sort of in-process isolation to protect the browser from its plugins? Or is there perhaps some quirk of running in the Opera environment that caused this Flash crash not to be triggered like it was in Firefox and Chrome?

-----

1 point by vimalg2 212 days ago | link

Adobe Flash on Opera/Linux has always been quirky , crashy and all-round unreliable for me in the past. So, I use Opera as my pure-HTML+javascript browser, with ALL plugins, sound, animation, and Java plugins turned off in Global preferences.

Going off-topic [Opera praise]: These settings instantly turn Opera into the most stable and shockingly scalable 'Research and reference' browser I've used. I only use Firefox3.5.x solely for web-dev, Google Apps, heavy-JS Web 2.0 apps, and Flash-enabled sites of course (with Flashblock as first-line-defence).

-----

3 points by vimalg2 214 days ago | link

This is excellent. But I wish I could see an error/warning message a la Chrome.

However, i did notice a perceptible bump in memory usage via the System Monitor panel applet. The POC probably exploits a known Memory-allocation bug.

[Currently running Opera 10.10/i686 Linux] Edited: Grammar

-----

1 point by tlrobinson 214 days ago | link

Chrome doesn't crash either, just the plugin in a separate process.

Same with the latest versions of Safari, except it takes down all instances of Flash, even those in other pages, which is obviously inferior.

-----

1 point by oconnore 214 days ago | link

Konqueror stays open too!

-----

21 points by cmelbye 215 days ago | link

Yeah, it also looks like Safari's recent improvements in terms of plugins that they introduced in Snow Leopard have successfully prevented this problem from taking down the whole browser.

-----

1 point by wehriam 214 days ago | link

How recent? 4.0.4 crashed for me.

-----

4 points by FluidDjango 214 days ago | link

NOTE: I generally browse with ClickToFlash active in Safari. That of course prevented the crash (until I clicked).

With Safari 4.0.4 (ClickToFlash turned off) the browser was fine but the Flash plug-in died, and Safari informed me:

> Flash Player (Safari Intenet plug-in) quit unexpectedly. > This report will be sent to Apple automatically.

PS: 10.6.2, FWIW

-----

5 points by cmelbye 214 days ago | link

You need to have at least Snow Leopard, I believe. Apple recently moved plugins to separate processes, which prevents the entire browser from crashing. Flash will crash, but it won't take down the whole browser.

-----

1 point by ubernostrum 213 days ago | link

Except IIRC this wasn't about security or stability; it was because they went 64-bit on everything and needed a way to have the 64-bit apps and 32-bit plugins interact sanely.

-----

1 point by wehriam 214 days ago | link

The Firefox nightly (3.7a1pre) also crashed.

-----

4 points by Brushfire 215 days ago | link

It handles it less gracefully than I would have assumed. If you are running flash in multiple Chrome windows, this will corrupt ALL of them, instead of just the one visiting the page linked above. Wasnt one of Chrome's huge selling features the idea of memory independence?

-----

19 points by Groxx 215 days ago | link

Memory independence + plugin that isn't designed to run multiple processes = plugin that can only run in one process. Imagine if Flash, forced into running twice, tried to read and write from the same cookie / any other kind of data, without any concurrency tools of any kind.

Chrome has to run Flash how Flash wants to be run, because doing otherwise could cause massive problems with any plugin. This is part of why it took so long for them to make Chrome, resolving the memory independence desires with the needs of plugins requires giving some things up. It was either roughly all plugins in existence, or allow the same process to interact with multiple tabs / windows.

-----

1 point by wheels 215 days ago | link

This sounds a bit fishy to me. Of course Flash can be run from multiple processes simultaneously since it naturally runs inside of multiple browsers simultaneously, and I assume Chrome has some internal (socket based?) IPC that they're using anyway...

-----

8 points by InclinedPlane 214 days ago | link

Flash on multiple browsers has completely separate cookie and data stores. Flash on a single browser has a single cookie and data store. Without introducing a complex forking/merging infrastructure for that data (which only Adobe would be able to create anyway) you're stuck with a single process for the plugin for all of the tabs in a single browser.

-----

9 points by brettnak 214 days ago | link

Flash actually has one cookie & data store. It exists between browsers.

You can see your flash cookies at this website:

http://www.macromedia.com/support/documentation/en/flashplay...

You'll notice that they are the same no matter what browser you use.

-----

3 points by keltex 214 days ago | link

This page crashed flash for me! Wow!

-----

2 points by Groxx 214 days ago | link

Part of the difficulty is that this problem applies to all plugins. Flash may be able to handle it just fine, in which case it could just be a poor plugin, but what about any other plugin out there?

Heck, Firefox uses a lock-file in your profile to prevent multiple instances from running. What's to stop a plugin from requiring such a file, writing / reading it frequently, and having no error handling because it's only designed to run singly? Ultimately, you either harden the separations to run multiple instances of it, breaking many in the process and possibly damaging data irrecoverably, or you just let the plugin decide and have backwards compatibility, which is hugely important for a browser.

-----

1 point by pyre 214 days ago | link

Interestingly enough the "libflashplugin.so" bar popped up on Gmail for me the last time that all my Flash instances crashed. I never realized that GMail used Flash. (The bar only seemed to pop up on tabs that were using Flash, not all tabs had the warning at the top)

-----

2 points by freebsd_dude 214 days ago | link

Gmail uses flash for the file upload progress bar when adding an attachment. Will HTML5 allow developers to add this feature?

-----

1 point by Groxx 214 days ago | link

Don't know about HTML5 (I can hope), but it can be accomplished with JS + hidden iframe for uploading. I think it requires querying the server for the progress, but I could be wrong there.

-----

2 points by scommab 214 days ago | link

Flash is also used to make that popping sound when you get a gtalk message.

-----

1 point by SpoonMeiser 214 days ago | link

It is? Why?

-----

2 points by windsurfer 215 days ago | link

Flash is to blame for that one.

-----

3 points by chaosprophet 215 days ago | link

Firefox 3.7a also handles this quite well, with a 'A plugin crashed' message.

-----

5 points by vito 215 days ago | link

Firefox 3.6 on Ubuntu x64, Flash v10.0.32.18ubuntu1, seems to survive. Chrome survives too, unsurprisingly. Come to think of it, doesn't Firefox have plugin crash safety in place now?

Midori does insta-crash though.

-----

2 points by icco 215 days ago | link

ff 3.5 on a similar setup crashes. 3.6 was when ff made itself less vulnerable to this sort of thing, following webkit's and chrome's ideas on isolating plugins.

-----

1 point by mmastrac 215 days ago | link

Are you sure that's in 3.6? My 3.6 build doesn't have the "dom.ipc.plugins.enabled" key in about:config.

I'm pretty sure it'll be landing in 3.7. Here's the tracking bug that shows what's left to fix on it: https://bugzilla.mozilla.org/show_bug.cgi?id=539055

-----

8 points by itistoday 215 days ago | link

You know this whole Flash debacle is a real shame because Flash, at least the concept of Flash, is really a great idea with lots of potential.

Flash allows people to create wonderful things (just visit newgrounds.com) but Adobe's lack of commitment to improving it is dragging it down and could be its unfortunate downfall.

-----

7 points by barnaby 214 days ago | link

No it's not. No it doesn't.

Flash is a terrible concept just like Java Applets were a terrible concept, and its only potential is annoying advertisements, slow splash pages that keep away return visitors, and browser crashes.

-----

4 points by keltex 214 days ago | link

Steps to get Adobe to fix this bug:

1) Create a flash ad with this bug. Set to go off randomly 2) Put ad in a low-cost adwords campaign

-----

6 points by kprobst 215 days ago | link

IE8 does not crash. Chrome handles the crash and shows a message. Firefox dies.

-----

3 points by grinich 215 days ago | link

ClickToFlash for Safari/Webkit on Mac is one of the best add-ons I've found.

http://clicktoflash.com/ http://github.com/rentzsch/clicktoflash

-----

2 points by philwelch 215 days ago | link

Yes, but oddly it seems to circumvent Safari's protective spawning of Flash to a separate process when it does load. When I clicked the browser-crashing Flash app, it actually crashed Safari, and Activity Monitor never picks up the separate Flash process anymore.

-----

3 points by chrisbolt 214 days ago | link

Are you sure you're not running Safari in 32-bit mode? The separation is only set up when Safari is running in 64-bit. That setup worked fine for me; clicking the plugin loaded it, and a few seconds later it crashed and turned into the block without crashing Safari.

-----

1 point by philwelch 214 days ago | link

It turns out I was running Safari in 32 bit mode. I have no idea how that got changed, though.

-----

2 points by grinich 214 days ago | link

You could have changed it a while back to work with another pluging. For example, video/voice chat for Gmail only works in 32-bit Safari.

-----

1 point by epochwolf 214 days ago | link

Using the webkit nightlies and regular Safari on Snow Leopard with ClickToFlash installed, I just shows a blue ? box and a crash report.

-----

3 points by chanux 215 days ago | link

FlashBlock for Firefox. https://addons.mozilla.org/en-US/firefox/addon/433

-----

3 points by Groxx 215 days ago | link

Yup, crash on mine. WebKit nightly on OSX, everything up-to-date. Thankfully, it just crashes the plugin (though it holds up the browser for a bit), everything keeps working.

-----

16 points by 37prime 215 days ago | link

It seems Flash 10.1 beta is not affected by this bug.

-----

4 points by maweaver 215 days ago | link

The linked bug report lists it as fixed in Flash Player 10 - 10_1_51_66, so that sounds right.

-----

6 points by catch23 215 days ago | link

I guess the Adobe CTO missed this one...

-----

2 points by freebsd_dude 215 days ago | link

Why are Flash's bugs only a problem when when Steve Jobs mentions it? Is Flash really a problem or are we just overcome by Job's reality distortion field?

Flash does stuff that HTML cannot currently do. In this respect hackers should thank Adobe as Flash helped move applications off the desktop and onto the web. When HTML5 has matured, the gaps in HTML will be filled and unless Flash has something new to offer, it will be time for give it a heartfelt goodbye.

Adobe's saving grace is that it released FABridge - you can use Flash for things its good at Ajax for everything else. Then when HTML5 has matured you wont have to rewrite everything.

-----

4 points by cracell 215 days ago | link

The issue is that Flash seems to be getting worst. And we see a light at the end of the tunnel (new features being added to browsers to do what we use Flash for).

So the building of frustration with Flash over time, a general dislike of closed systems, and a light at the end of the tunnel has combined into the general "fuck you flash" feelings that seem to have sprang up over the last few months in developers. Which is awesome! As the web needs to outgrow proprietary plugins.

-----

1 point by freebsd_dude 214 days ago | link

"As the web needs to outgrow proprietary plugins."

I agree. What bothers me is all this "frustration" showing only after Steve Jobs mentions it. I highly doubt his reason for bashing Adobe is due to his love for open web standards --

What I dont get is how hackers can side with Apple against Adobe given the iPhone App store mess... The model of the App store is against everything the open web stands for -- I think hackers should be more upset with Apple than Adobe.

-----

5 points by zurcociremer 215 days ago | link

Weird, it doesn't crash on me here. I'm using Opera 10.10 browser on OS X 10.6.2

-----

2 points by metamemetics 215 days ago | link

Opera and Internet Explorer 8 display the page without crashing.

-----

1 point by rajat 215 days ago | link

On Snow Leopard and Safari, the browser doesn't crash, but the Flash player crashes.

-----

1 point by Dbug 215 days ago | link

It's crashing for me with Snow Leopard 10.5.2 on a Core Duo (32 bit obviously) and Safari Version: 4.0.4 (6531.21.10) Build Info: WebBrowser-65312110~2 Code Type: X86 (Native) Parent Process: launchd [157]

PlugIn Path: /Library/Internet Plug-Ins/Flash Player.plugin/Contents/MacOS/Flash Player PlugIn Identifier: com.macromedia.Flash Player.plugin PlugIn Version: 10.0.42 (1.0.4f348472)

Date/Time: 2010-02-05 22:06:52.926 -0800 OS Version: Mac OS X 10.6.2 (10C540)

-----

3 points by strongsauce 215 days ago | link

How do we downvote for linking to the actual crash with no warning.

-----

2 points by ax0n 215 days ago | link

Flag it. Linking to a page that links to the crash demo with appropriate disclaimer? cool. Putting a warning in the submission title would have worked, too.

-----

4 points by catch23 215 days ago | link

there's a warning now

-----

2 points by Dbug 215 days ago | link

I confirmed the crash on iCab 5.0.7 Mac, Firefox 3.6 Mac, Safari 4.0.4 Mac and Firefox 3.5.7 under Ubuntu 9.10 in Virtual Box 3.1.2. (Using latest updated Snow Leopard)

-----

1 point by Dbug 215 days ago | link

Opps that was iCab 4.0.7

-----

4 points by perekk 215 days ago | link

Opera 10.10 WinXP doesn't crash :-)

-----

1 point by vimalg2 212 days ago | link

Yes, Opera/Windows handles Flash surprisingly well. The secret sauce is a mystery.

-----

1 point by electromagnetic 215 days ago | link

It's always nice to see bugs are addressed quickly . . . which Is why I'm not really surprised, Adobe products have always had a clunky feel to me and Flash was genuinely a product destined for them.

-----

4 points by oldball 215 days ago | link

This isn't new either. Matthew posted this over a year ago.

-----

1 point by jrockway 215 days ago | link

Yay for writing software in C. It crashes really fast!

-----

1 point by yread 214 days ago | link

Hm great! Now every malware writer has a code that crashes flash. Let's hope Adobe releases the fix before there are exploits

-----

1 point by joeyo 214 days ago | link

Didn't crash Gnash, but I'm not sure if it rendered "properly" either (I just saw a blue rectangle.)

-----

1 point by papersmith 215 days ago | link

Seems fine with flash 10.1 beta 2, Safari on Mac.

-----

1 point by arnorhs 214 days ago | link

Mine didn't crash... ????

-----

1 point by sscheper 215 days ago | link

Well, it works.

-----

-4 points by radley 215 days ago | link

Sorry, nothing happened. Firefox on OSX.

Prolly the worst [anti-Flash] troll post so far.

-----

1 point by cracell 215 days ago | link

Crashed for me on Firefox 3.6 OS X 10.6. Google Chrome 4.0 gracefully handled it through (only the Flash Plugin crashed)

-----

1 point by bad_user 214 days ago | link

Yay, the "works on my machine" syndrome ... love it :-)

-----

-2 points by radley 215 days ago | link

[Updated for technical clarity, rather than refuting bias]

Reading the original article, the issues seems to be with AVM1, the portion of the Flash Player dedicated to legacy Flash (v8 and older). Flash Player was updated in 2006 to include AVM2 and that's been Adobe's focus ever since.

Translation for HTML people: it's like pointing out IE6 bugs that still show up in IE7.

This is nothing more than an out of date flame post.

(Downvoters: have you actually looked at the nature of the bug?)

-----

6 points by evgen 215 days ago | link

Adobe's CTO claimed that they don't ship versions of Flash that are known to crash. The bug this triggers is more than a year old and the only versions it does not crash is the most recent _beta_ version of Flash. The post merely points out the deception in Lynch's claims.

-----

-3 points by radley 215 days ago | link

I updated my post to explain why the bug is irrelevant.

-----

6 points by Dbug 215 days ago | link

Anything, including corrupt files, that can crash it is relevant because it is also a security vulnerability.

-----

-1 points by radley 215 days ago | link

By my understanding, there will always be lots of ways to intentionally crash a browser. I know very little about crash-related security vulnerabilities, so I didn't see this threat as relevant.

-----

3 points by scommab 214 days ago | link

I think you might be thinking of locking up the browers, rather then crashing it. You can easily create a javascript program that will run a loop that will make your browser non-reactive.

But this is very different the plugin actually crashes. The security issues comes in to play because when the plugin crashes it is doing something it wasn't designed to do. So (in theory) someone malicious could take this crash and make the flash player do something specific it wasn't designed to do like run some code outside of it's sandbox. Which obviously would be a very big deal.

This is different then the lock up/DoS case where a product is doing what it is meant to do, but will just take a very long time (maybe forever) to finish it.

-----

5 points by stevenwei 215 days ago | link

Considering it's still occurring in the most recent release of Flash Player 10, I'd say it's nothing like pointing out IE6 bugs at all.

If they had actually fixed that bug in the Flash plugin and people were using older versions, then you might have a point.

-----

3 points by radley 215 days ago | link

The bug has to do with loading 5+ year old Flash 7/8 swfs.

A better analogy would be he's making a stink about a Carbon bug for obsolete OS 8/9 apps. Carbon still ships with OSX and serves the same purpose as AVM1 in Flash Player: basic (but not perfect) backwards-compatibility for legacy code.

-----

2 points by stevenwei 215 days ago | link

I'm surprised that more priority hasn't been put into fixing it though. A bug that crashes the browser out in the wild for a year and a half? Someone malicious could do some pretty obnoxious things with it.

Incidentally this use case isn't completely unheard of. There is still a lot of AS2 content out there that companies haven't bothered to migrate to AS3 yet (for whatever reason).

-----

1 point by bad_user 214 days ago | link

If you don't have the resources for fixing old known bugs, then you should remove backwards compatibility, especially since bugs are caused by buffers/stack overflows / segmentation faults ... which could lead to unauthorized code executed on your machine. How else do you think botnets are made?

-----




Lists | RSS | Search | Bookmarklet | Guidelines | FAQ | News News | Feature Requests | Y Combinator | Apply | Library

Analytics by Mixpanel