Slashdot Mirror


Mac OS X Users Vulnerable To Major Java Flaw

FruitWorm writes in with word of a vulnerability in Java that has been patched by everyone but Apple. "Security researchers say that Mac OS X users are vulnerable to a critical, 6-month-old, remote vulnerability in Java, a component that is enabled by default in Web browsers on this platform. Julien Tinnes notes that this vulnerability differs from typical Java security flaws in that it is 'a pure Java vulnerability' and doesn't involve any native code. It affected not only Sun's Java but other implementations such as OpenJDK, on multiple platforms, including Linux and Windows. 'This means you can write a 100% reliable exploit in pure Java. This exploit will work on all the platforms, all the architectures and all the browsers,' Julien wrote. This bug was demonstrated during the Pwn2own security challenge this year at CanSecWest, but the details were not made public at that time. Tinnes recommends that Mac OS X users disable Java in their browsers until Apple releases a security update."

44 of 306 comments (clear)

  1. Java and not javascript by GreatDrok · · Score: 5, Informative

    I've disabled Java in Safari and doubt I'll see any difference since so few sites use Java applets these days. This is of course unrelated to Javascript which is much more disruptive when disabled.

    --
    "I have the attention span of a strobe lit goldfish, please get to the point quickly!"
    1. Re:Java and not javascript by Serious+Callers+Only · · Score: 4, Informative

      I've had Java disabled for years, and have only ever had to enable it for broadband speed test applets. Aside from that, and some upload plugins (though that's mostly flash or AJAX nowadays) client-side java just isn't used much on the web anymore.

      I doubt you'll notice the difference.

    2. Re:Java and not javascript by DrXym · · Score: 4, Informative
      Sites don't directly use Java but there are plenty of JNLP style apps. Also, JavaFX *may* spark some kind of mini-resurgence which means more sites use Java for video playback or random other things.

      I say may because Flex / Flash is pretty embedded and Microsoft is moneyhatting its way into the scene. Sun doesn't have money so its almost a charity case at this time, relying on good will from mobile phone companies and Java devs.

      Anyway, Apple's "support" of Java is pretty pathetic. They're usually a year or more behind the curve and its not acceptable.

    3. Re:Java and not javascript by BikeHelmet · · Score: 5, Insightful

      Anyway, Apple's "support" of Java is pretty pathetic. They're usually a year or more behind the curve and its not acceptable.

      You're absolutely right about that. Apple decided that they'd be better than Sun at creating a JVM for their OS, so they did it themselves.

      The result? PPC Macs are stuck on Java 1.5; Intel Macs have outdated, slow, and exploit vulnerable Java 1.6...

      I'm more inclined to let the company that specializes in that stuff deal with it - but then again, maybe it gave them much needed experience for their Rosetta technology.

    4. Re:Java and not javascript by RevRagnarok · · Score: 5, Informative

      I've had Java disabled for years, and have only ever had to enable it for broadband speed test applets.

      Then you are very lucky, and likely don't work for a ginormous company whose only way to not make things in ActiveX is to make them in Java. My timesheet program = Java. My Expense Report software = "Extensity" which seems to only like one version of the JVM. Lucky you!

      --
      I should put something clever here. Maybe someday.
    5. Re:Java and not javascript by kthreadd · · Score: 5, Interesting

      I'm more inclined to let the company that specializes in that stuff deal with it - but then again, maybe it gave them much needed experience for their Rosetta technology

      According to the Sun engineers I've talked to it all has to do with a really old license agreement between Apple and Sun that they can't change for now. Sun is forbidden to directly release Java for Mac OS X until the agreement expire or Apple decides to make a new agreement. The only practical solution they proposed was to use the BSD port of OpenJDK. You won't have the Aqua UI and I think you have to deal with X11, but you will have an overall better Java.

    6. Re:Java and not javascript by ThePhilips · · Score: 3, Insightful

      Very similar here.

      At home, I had removed all traces of Java like eons ago. Never had a problem. Only OO.o occasionally complains that there is no Java installed, but no crucial functionality is affected.

      In office, one of the corporate portals uses ActiveX and Java. Though Java applet is used apparently only during authentication, it still requires Java. (IOW, puny 20K applet wastes countless megabytes/gigabytes of disk space on hundred desktops.) Otherwise - no Java in sight.

      --
      All hope abandon ye who enter here.
    7. Re:Java and not javascript by esme · · Score: 4, Informative

      It looks like OpenJDK now runs on MacOSX:

      http://landonf.bikemonkey.org/static/soylatte/

    8. Re:Java and not javascript by EthanV2 · · Score: 5, Informative

      Though I'm not sure why this whole discussion is under the title "Mac OS X users vulnerable..." when as the submission says the issue affects everybody. Other than to start yet amother boring FUD/flamebait war, of course.

      Maybe it's because everybody else has patched it

      FruitWorm writes in with word of a vulnerability in Java that has been patched by everyone but Apple.

    9. Re:Java and not javascript by BrokenHalo · · Score: 5, Informative

      It looks like OpenJDK now runs on MacOSX:

      It does, but only with X11.

    10. Re:Java and not javascript by Serious+Callers+Only · · Score: 4, Insightful

      Then you are very lucky, and likely don't work for a ginormous company whose only way to not make things in ActiveX is to make them in Java.

      : ) Reason no 12939 not to work at a gigantic corporation. Having experienced working in large companies, I sympathise.

      The funniest thing about large companies using web-apps for internal software is that most of them produce web-apps which depend on technology which is not truly cross-platform (Active-X, using a certain JVM, depending on a certain browser, etc), thus removing most of the business benefit of using a web application in the first place.

    11. Re:Java and not javascript by Serious+Callers+Only · · Score: 4, Insightful

      But, because of this standardization, the internal development staff only needs to target one defined platform, they aren't really worried about cross-platform support.

      This works really well as a way to cut costs *for the IT department* in the short term. As to whether it cuts costs for the company as a whole (there's the lost productivity involved in enforcing a standard install that you alluded to, and the lack of choice of tools), is another matter, and I'm sure varies with the company/tech involved. Obviously some degree of standardisation is required when managing large numbers of computers, so I'd happily concede that point.

      But there is a bigger issue related to this strategy in the long term. In the long term, targeting one platform exclusively leads to the production of tools which are tied tighter and tighter to that platform. So it means you can never switch to a competitor; you can't even consider switching to a competitor unless you're willing to ditch all the internal software that you've built up which will only work on version X of system X. It becomes simply impossible for your business to even think about switching. You might even find that moving to a new version of an operating system has significant costs which you had not anticipated (an XP to Vista migration for example, or IE 6 to IE 8). These are not the normal costs of doing business, they are the costs of doing business if you choose to lock yourself too tightly to one platform.

      There is a reason that Microsoft pushed things like Active-X, .NET and IE for web apps, Sun pushes Java everywhere, Apple encourages web pages made for iPhones, etc. It is to tie developers/companies in to using just their products, and it is in the long-term interests of the tool provider, not the company using the tools to work with.

      Using web apps for internal software is a good way out of this conundrum, so long as you do not target a specific platform with them. Otherwise, you may as well be writing binary software tied to a specific version of one OS - the end result is the same - lock-in. I understand completely why, in the real world, these decisions are made, but if you look at the situation rationally they are not good investments of time/money over the long-term, and they undermine the very reasons for writing software as a web application in the first place.

    12. Re:Java and not javascript by bobdinkel · · Score: 3, Interesting

      I'd like to know more about this agreement between Apple and Sun. I did a bit of searching and couldn't find anything. Do you have more info? A link maybe?

      --
      A publicly traded company exists solely to make profits for shareholders.
    13. Re:Java and not javascript by obijuanvaldez · · Score: 3, Informative

      The funniest thing about large companies using web-apps for internal software is that most of them produce web-apps which depend on technology which is not truly cross-platform (Active-X, using a certain JVM, depending on a certain browser, etc), thus removing most of the business benefit of using a web application in the first place.

      Your experience may be different from mine, but the driving motivation behind using web applications for internal software has nothing to do with being cross platform but rather to do with ease of deployment. The business has a pretty tight control over what platforms are being used, they don't need to cater to any platform they haven't put in place. The real business benefit is not having to send out IT people to update each and every client machine for every update to the software.

    14. Re:Java and not javascript by foo+fighter · · Score: 3, Informative

      Apple decided that they'd be better than Sun at creating a JVM for their OS, so they did it themselves.

      That might have been the initial reason. Maybe.

      But Apple really, really wants developers to use Objective-C and Cocoa when they are creating software for OS X. From Apple's strategic perspective, why support an alternative platform (and Java is an alternative platform) that doesn't lead to great Mac software, especially great Mac-only software.

      And about that agreement between Sun and Apple that keeps Sun off OS X: now that Java is open sourced, what is keeping the community from creating and releasing an OS X-native client?

      --
      obviously no deficiencies vs. no obvious deficiencies
    15. Re:Java and not javascript by nxtw · · Score: 3, Informative

      It does, but only with X11.

      AWT/Swing may be limited to X11, but SWT applications can still use Carbon (or Cocoa using the in-development version.)

  2. Great interoperability by Chrisq · · Score: 5, Funny

    'This means you can write a 100% reliable exploit in pure Java. This exploit will work on all the platforms, all the architectures and all the browsers,'

    And the Java critics said total platform independence was impossible!

    1. Re:Great interoperability by x2A · · Score: 4, Funny

      Yay this is gonna be so much easier than trying to ship Wine with my viruses...

      --
      The revolution will not be televised... but it will have a page on Wikipedia
    2. Re:Great interoperability by AJ+Mexico · · Score: 3, Funny

      And the Java critics said total platform independence was impossible!

      Nonsense! For years Java apps have been producing platform-independent error messages on all platforms equally. Fortunately, the exploit will probably error out too!

      --
      Computers obey me.
    3. Re:Great interoperability by sootman · · Score: 4, Funny

      Am I the only one who first read that headline as "Mac OS X Users Vulnerable To Major Lava Flow"?

      --
      Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
  3. Instructions for turning off Java... by Anonymous Coward · · Score: 5, Informative

    In case you don't have OS X but want to pass on the instructions to relatives, etc:

    In Safari (version 4 beta):

    Safari->Preferences->Security->Web Content: Enable Java (uncheck)

    In Firefox (3.5 beta, probably the rest):

    Firefox->Preferences->Content->Enable Java (uncheck)

    I don't have any other browsers (opera, different versions, etc.) on hand, but it might be nice to add instructions in a reply...

  4. Re:why specify Mac OSX by Draek · · Score: 5, Informative

    If you had read the very first paragraph of the summary, you'd know that it's "a vulnerability in Java that has been patched by everyone but Apple."

    For all the other platforms, architectures and browsers the fix is "use a version of Java that's less than 6 months old". For OSX users, however, the only solution is to stop using it altogether.

    --
    No problem is insoluble in all conceivable circumstances.
  5. Pick and choose your quotes much? by Animaether · · Score: 3, Informative

    Very well...

    I choose this one...
    FruitWorm writes in with word of a vulnerability in Java that has been patched by everyone but Apple.

    So essentially... All Apple users who have left JAVA enabled, and all -other- users who have not yet patched their JAVA installations. Yes, that does include Microsoft Windows, flavor-of-the-month Linux, etc. users who decided to disable auto-updating - if any - of their JAVA installation.

  6. Design or implementation flaw? by pwilli · · Score: 5, Interesting

    I'd really like to know if this was/is a flaw in the structure/design of the JVM or just happened to be some kind of pitfall every major JVM-implementor fell into.

    The articles and bug reports are light on detail, I could only find out it is related to "Deserializing Calendar Objects" and allows the applet to execute stuff with the users rights (or probably more correct, the rights of the webbrowser who started the applet)., which sounds like an implementation problem to me. Was there some reference implementation all JVM-developers used for this specific functionality?

    1. Re:Design or implementation flaw? by Draek · · Score: 4, Informative

      This, gotten from the comments at TFA, has a bit more details on it.

      Apparently it's a mix of both, a structural problem with the fact it needs to grant the Calendar class special priviledges to access ZoneInfo objects, and merely a common pitfall in that nobody had thought to limit those priviledges before to *just* accessing the calendar.

      Beautiful stuff they used in the exploit, though, it's as if they actively tried to use every OOP-derived feature in Java on it at the same time ;)

      --
      No problem is insoluble in all conceivable circumstances.
    2. Re:Design or implementation flaw? by QuoteMstr · · Score: 4, Interesting

      technical details here.

      The gist of it that the Java Calendar code temporarily elevates its privileges in order to deserialize a ZoneInfo object. If you substitute your own object's serialization for the ZoneInfo, you can get the Java runtime to create any object you want. Some questions:

      1. Didn't anyone realize how dangerous arbitrary privilege elevation is?
      2. Didn't anyone think that it might be overkill to elevate privileges in order to read a timezone?
      3. How many other similar vulnerabilities are lurking in the standard library?
    3. Re:Design or implementation flaw? by bay43270 · · Score: 3, Interesting

      Good link. It should have been in the summary. It seems like a fairly obscure bug though. Here's an interesting quote:

      "I've mentioned that this was a class of vulnerabilities: the reason is that with this design, every time Java code deserializes an attacker-controlled input in a privileged context, it's a security vulnerability."

      Maybe it's just lack of imagination on my part, but I can't think of a good reason for a privileged app to deserialize objects from an untrusted source.

  7. Re:Why am I not surprised? by MobyTurbo · · Score: 4, Informative

    You've kinda just proven the OP's point. Snow Leopard is just prettying up what already exists.

    Snow Leopard is mainly a beneath-the-hood architectural upgrade. http://www.apple.com/macosx/snowleopard/ "Taking a break from adding new features..."

    That having been said, there's nothing on there about added security. I can tell you there are some rumors that things like more complete code page protection and address randomization will be in Snow Leo, but Apple's priorities concerning security are rather low; they rely heavily on security-through-obscurity, and one day if they're not careful it's going to bite them.

  8. To be expected by Shrike82 · · Score: 4, Interesting

    The (untrue) assumption that many people seem to hold that Macs are just invulnerable to anything bad happening has finally spread to Apple itself, and they're the last to patch this exploit. Since a lot of Mac advertising used to be based on "Macs don't get Viruses" you'd think they'd have been the first to patch this to maintain their reputation.

    Yes I know I'm probably going to get modded down immediately for saying this, but hell, it's the truth.

    --
    You can advertise in this sig from as little as £99.99 a month!
    1. Re:To be expected by oDDmON+oUT · · Score: 4, Interesting

      "The (untrue) assumption that many people seem to hold (is) that...", patching actually is a "best practice", when it's not.

      Marcus Ranum has a interesting and humorous take on patching that spells it out much better than I could.

      The short version:

      • Patching is a substitute for good design
      • Patching exists for the simple reason that there is a rush to get products out the door, rather than take the time to ensure that they are secure

      This is true of 99.9% of software in use.

      --
      Some days it's just not worth
      chewing through my restraints.
    2. Re:To be expected by foo+fighter · · Score: 3, Insightful

      Frak, someone always has to make this post, don't they?

      Of course OS X has security flaws: it's a modern, general purpose operating system.

      The fact remains that by many metrics it is much more secure than Windows. For one, there are no where near the number of malware in the wild targeting OS X as there are for Windows. Most people who run OS X have never, ever had to worry about contracting a virus, trojan, or worm. That is not the same thing as saying they never will, but it is a remarkable track record.

      I am concerned about Apple's slow response to newly identified flaws. Their lack of candor in discussing vulnerabilities, their potential impact on the platform, or details of its remediation in patches' release notes is also worrisome. They need to pick up their game if they want to keep that track record as the platform expands.

      --
      obviously no deficiencies vs. no obvious deficiencies
  9. Also disable Safari's 'Open"safe" files. by landonf · · Score: 4, Informative

    In addition to disabling Java support, Safari's 'Open "safe" files after downloading' must also be disabled to prevent websites from automatically loading a Java WebStart application via a JNLP file.

    I've also posted a demonstration of the vulnerability at http://landonf.bikemonkey.org/code/macosx/CVE-2008-5353.20090519.html

    --
    http://plausible.coop
  10. Re:Now patched? by landonf · · Score: 4, Informative

    No patch is currently available -- a fully patched 10.5.7 system remains vulnerable. See also http://landonf.bikemonkey.org/code/macosx/CVE-2008-5353.20090519.html

    --
    http://plausible.coop
  11. Not all OS X users at risk by oDDmON+oUT · · Score: 3, Interesting

    For the record, those running Firefox as their default browser, with NoScript installed, won't be affected* unless they *choose* to execute an unknown, untrusted binary within the browser.

    *At least the sample exploit at the top of the thread didn't execute for me, YMMV

    --
    Some days it's just not worth
    chewing through my restraints.
  12. Re:Now patched? by oDDmON+oUT · · Score: 3, Informative

    Nope. Patched to 10.5.7, with all updates, and the sample exploit would still run. Of course I use FF with NoScript so I had to allow it to run, which just goes to show that sometimes faster is not better

    --
    Some days it's just not worth
    chewing through my restraints.
  13. Oh I don't know... by Shivetya · · Score: 4, Interesting

    after meeting some Mac newbies I am think I can already see the iceberg. Two are friends, one of which called me out of the blue to tell me that he just bought his first Mac (an iMac actually). Well needless to say I get calls from both since I am the "mac expert" (Read: I had one longer than them).

    The simplest way to say it, they are more than happy to key in their password for anything that asks, even if they don't know what they are doing. After all, they are on a Mac, they don't have virus protection because it doesn't need it, so how is something bad going to get on the system. These are not normally dense people, well maybe they are proving me wrong.

    So I figure that someone out there will rely on this type of stupidity to get key loggers, bots, and the like, on Macs. The number of people out there who buy one because they think it makes them cool or smart cannot be underestimated.

    I do know one of these two did ditch firefox because they didn't like clicking the ad-block button to allow some sites. So it is just a matter of time.

    (and no, I do not run a AV or worry about it on either of my Macs)

    --
    * Winners compare their achievements to their goals, losers compare theirs to that of others.
    1. Re:Oh I don't know... by x2A · · Score: 3, Insightful

      In "the oldun days", computers used to come with books, instruction manuals, telling you how to use them. Nower days, OS vendors will jump through hoops to try and ensure that their users Do Not Have To Learn A God Damn Thing(tm)... and in some instances, inconsistent user interfaces actually prohibit learning (although I wouldn't call this common case). And this is the result.

      I'm not suggesting people should have to know all the nuts and bolts of the internals, but I'm sure there's a middle ground so this culture of "our users are stupid, we must protect their tiny brains" can be vanquished.

      (this is not limited to Apple/OSX by any means, although they do appear to me to be worse for it, this gap is closing fast)

      --
      The revolution will not be televised... but it will have a page on Wikipedia
    2. Re:Oh I don't know... by jimicus · · Score: 4, Informative

      As an agriculture monoculture, PCs were an easy infection target because of their uniformity and number. I wonder if, in an imaginary world where Win, Mac & Linux were split 30/30/30, you would still see 1/3 of the Windows malware? Hopefully not. Hopefully it'd be less.

      I hate to break it to you but I remember the days when there was no Windows monoculture and data was usually passed with floppy disks.

      Malware existed on all common desktop platforms back then. It couldn't spread as fast, but it certainly existed.

  14. Re:Now patched? by iwein · · Score: 4, Insightful

    try the 'say' invoking applet by Landon Fuller: http://is.gd/BpBp. That scared the crap out of me... what if it had invoked 'rm -rf ~'?

    --
    Show a man some news, distract him for an hour. Show a man some mod points, distract him for the rest of his life.
  15. Re:Chipset independent? by Anonymous Coward · · Score: 3, Insightful

    Does it matter? If the JVM has access to the filesystem and the network, that's all a virus writer needs.

  16. apple letting down java users.. by Anonymous Coward · · Score: 5, Informative

    Steve Jobs, JavaOne Keynote 2000:

    "We want to bring Java back to the desktop in a really big way. Iâ(TM)m here today to personally tell you we are working hard to make Mac the best Java delivery vehicle on the planet. The biggest thing we are doing is we are going to bundle Java 2 SE into every single copy of Mac OS X that we ship later on this year."

    WWDC 2006

    When is the next Java coming? We are following Sun's releases of Java SE 6 betas and other Java updates very closely.

    Steve Jobs, January 2007 (iPhone related):

    "Java's not worth building in. Nobody uses Java anymore. It's this big heavyweight ball and chain..."

    2008/05/01

    Apple (finally!) releases JDK 6 with 64 bit support only. Most apps won't run due to the lack of cocoa 64 bit libraries. 1 y/old notebooks left in the cold without 64bit support.

    1. Re:apple letting down java users.. by cshbell · · Score: 5, Interesting

      I don't see the point you're making. You might as well have contrasted nine-year disparate statements about RAM size. Over nine years, Apple's stance towards Java has changed; what's wrong with that? In 2000, Java seemed to have a wider path on the desktops than it does in 2009. Other languages and runtime environments have grown up around Java in the subsequent nine years, and to Apple's thinking, the other languages (such as Objective-C 2.0) allow for building better software than Java allows.

      Apple's stance appears to be, right or wrong, that Java on the desktop and mobile devices is no longer the best way to develop and deploy software, and thus, they've allowed the Java implementation in OS X to grow long in the tooth, and have outright declined to port it to the iPhone/iPod Touch OS.

  17. Re:There is no reason to have Java enabled by Ash-Fox · · Score: 4, Informative

    CERT has been telling users to disable Java in your web browser for years. If you haven't done so already, give it a shot. You probably won't miss it.

    First things I noticed after disabling it, restarting Firefox with my saved tabs:

    • Can't use my bank anymore
    • Citrix from the web doesn't work
    • Akamai download manager doesn't work
    • Website IRC chat no longer works
    • Dragon court no longer works

    At this point I got annoyed and turned Java back on.

    --
    Change is certain; progress is not obligatory.
  18. Re:Why am I not surprised? by singularity · · Score: 4, Informative

    Yeah, this page listing all of the security patches in every Apple update must surely not exist. You know, complete with links to knowledge base articles containing links to the CVE-IDs patched by that particular patch.

    Posts like yours are the reason that Slashdot needs a "-1, Factually Incorrect" moderation.

    I agree that Apple should have patched this a long time ago, but your argument that Apple does not care about security is just plan asinine.

    --
    - (c) 2018 Hank Zimmerman