News for hackers. Stuff that matters.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by StevePerkins on Monday July 13, 2015 @10:44AM (#9878383)
I wish to God that Oracle would simply deprecate and discontinue browser-side Java applet support.

Whenever people see a headline like "Java Vulnerability Found!", it is virtually always referring to the client-side applet plugin. Yet 99% of readers don't understand that, and think that Java is insecure in general.

Whenever people see snark about Java installing the "Ask.com Toolbar", it is referring to the client-side JRE installer (i.e. applet plugin). That's virtually irrelevant to developers, because we install the full SDK which contains no crapware and never has. Yet 99% of readers don't understand that, and think that being a Java developer means dodging malware with every upgrade.

Java applets are basically the non-Microsoft business world's answer to ActiveX. A dead 1990's technology that no one has cared about in 15 years or more, which only still exists to support backwards-compatibility for some horrible crusty shops still running on XP or even NT/2000. No contemporary Java developer gives a fuck about applets, and by "contemporary" I mean "any greenfield development done since 9/11". However, we're all sick to death of having to defend our ecosystem against constant FUD, due to this horrible piece of obsolete legacy cruft.

Just kill it. Seriously.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by 1ris on Monday July 13, 2015 @10:56AM (#9878474)
I need java support in the Browser. Have you ever tried to use it? You have to do no less then 10 clicks with lots of warnings and restart the browser in order to activate it, and that's only for one site. And you have to repeat that for every website that uses java-applets.

It's a way easier to download a binary and execute that.

It's dead for the end-user for every meaningful definition of "dead".

Also ActiveX was the MS answer to Java, not the other way round.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by philbarr on Monday July 13, 2015 @11:02AM (#9878513)
> It's dead for the end-user for every meaningful definition of "dead".

Unfortunately not, there are MANY institutions that still rely on Java Applets.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by jessaustin on Monday July 13, 2015 @12:03PM (#9878953)
That's why this might be a noble thing for Oracle to do. Institutions around the world are harming their users using this tool, and it's possible Oracle could encourage them to stop doing that. (Although frankly just mentioning the possibility that an action might be the right thing to do, seems to make it less likely that Oracle would do it.)
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by iso8859-1 on Monday July 13, 2015 @03:40PM (#9880516)
Practically nobody is exploitable! Only signed Java applets on a whitelist can be run: https://www.java.com/en/download/help/jcp_security.xml

You must be either exaggerating or not up to date (not aware that not every applet is automatically run). I don't think anybody is getting harmed. What do you think a realistic attack scenario using Java applets looks like? You'll have to break RSA, or how are you going to fool the browser plugin to run your exploit?

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by jessaustin on Monday July 13, 2015 @05:14PM (#9881136)
GGP comment observed that many people can't avoid using Java applets. Others have observed that the Java people have to use for applets is often quite old, so it is perhaps as old as the Java I used the last time I had to use Java applets. I'm sure that very few of us are "up to date"; that's kind of the point. Perhaps there are strange applet fetishists who keep their Java package installs at the bleeding edge of postmodern Java applet specialness. Even so, forcing normal people to use Java applets is harming your users, because normal people turn it off.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by da_chicken on Monday July 13, 2015 @02:56PM (#9880200)
As recently as last year I've seen browser apps that require Java 1.3. As in they won't work with Java 1.4+. Until browsers kick Java out, Java applets aren't going anywhere.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by nikanj on Monday July 13, 2015 @05:44PM (#9881356)
"I can't think of any applications that couldn't be made with JS and html5, so institutions must have no reason to use Java besides wanting to harm their users"
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by jessaustin on Monday July 13, 2015 @06:03PM (#9881458)
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by nikanj on Monday July 13, 2015 @06:10PM (#9881498)
The thesis says nothing about access to the underlying hardware. Incidentally, Java has it and Javascript does not have it.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by GFK_of_xmaspast on Monday July 13, 2015 @06:32PM (#9881614)
Have you ever programmed in java or javascript.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by thesimpsons1022 on Monday July 13, 2015 @06:41PM (#9881648)
don't worry, its just a freshman that learned about the church-turing thesis a few weeks ago and wants to sound smart.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by thesimpsons1022 on Monday July 13, 2015 @06:40PM (#9881642)
k from now on write all your web apps in assembly.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by jessaustin on Thursday July 16, 2015 @04:29PM (#9899713)
Wait are you trying to say that java has less boilerplate than javascript?
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by 1ris on Monday July 13, 2015 @11:04AM (#9878530)
Yes, that's way I said "end-user". If you don't know what java is, this does not affect you.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by izacus on Monday July 13, 2015 @11:22AM (#9878667)
The only way to file a (mandatory under penalty of huge fines) monthly tax report for a business here where I live is a web service that requires Java (or ActiveX) to do a digital signature for filed documents. There is currently no alternative (JavaScript APIs for that do not exist). Same goes for all other digital banking - requests have to be cryptographically signed and Java is pretty much the only widely portable way to do it.

Is that "end-user" enough for you? All busness owners in the country and all other general population doing eGovernment?

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by ackalker on Monday July 13, 2015 @12:53PM (#9879310)
These governments and institutions should be called to task, PMs/ministers/MPs impeached if need be. Their negligence or refusal to act on this matter is a threat to national security. Literally.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by throwaway2048 on Monday July 13, 2015 @05:50PM (#9881392)
PMs impeeched over java applets? get real.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by philbarr on Monday July 13, 2015 @11:16AM (#9878612)
I don't understand - there are end-users in those institutions using java applets. They have to use java applets because their institutions mandate their use for anything from bug tracking software (yes really, I've seen it with my own eyes) to expenses software.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by 1ris on Monday July 13, 2015 @12:30PM (#9879140)
But almost all of these end-users have admins. People that activated java in the browser form them. And these can take care of the updates.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by philbarr on Monday July 13, 2015 @04:52PM (#9880990)
I'm still not sure what you're getting at here. It's a zero-day exploit. Updates won't help with that.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by 1ris on Tuesday July 14, 2015 @04:03AM (#9883424)
Java-applets in the internet are not used anymore as i explained. And if quite a few poeple use it in their intranets they don't care particular for a 0day. If their intranet is used to deploy these, everything is already lost.

Even if the webbrowser that displays the intranet applets is used to surf the internet it's not a attac surface as you have to whitelist every site that's able to use applets.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by reinhardt on Monday July 13, 2015 @07:06PM (#9881749)
If you live in Denmark, you are all but guaranteed to be an "end-user": https://en.wikipedia.org/wiki/NemID
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by kjetil on Tuesday July 14, 2015 @07:24AM (#9884041)
Since the Javascript NemID client was introduced last year, most users don't need Java anymore.

That's for OTP though, users with tokens or keyfile have to use the OpenSign applet still. Haven't seen any stats, but OpenSign usage is probably pretty small compared to standard NemID/OTP.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by pjmlp on Monday July 13, 2015 @04:15PM (#9880745)
> Also ActiveX was the MS answer to Java, not the other way round.

Except ActiveX goes back to Windows 3.1 and OLE 2.0.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by yuhong on Monday July 13, 2015 @04:12PM (#9880726)
Yea, this is exactly because of the security problems.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by xbryanx on Monday July 13, 2015 @11:01AM (#9878502)
One of those crufty little shops is ADP, one of the biggest payroll processors around. I hate that I have to use their applet crapstack, but it's not so simple to just turn it off.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by StevePerkins on Monday July 13, 2015 @11:19AM (#9878638)
Very true, but Step #1 is to declare it deprecated.

Look, Microsoft is still struggling to retire Windows XP, a 14-year old operating system that was end-of-life'd over six years ago. However, at least they've been TRYING... and sending clear signals that support won't extend indefinitely.

Oracle, however, hasn't even begun the official process of winding down applet support. So why should ADP, or any other "captive-audience", "bare-minimum" crapshop even consider putting migration plans on their long-term timeline?

Just say it's deprecated. You don't even have to commit to a fixed end-of-life date yet. Just start the ball rolling with a signal that remaining on applets into the 2030's won't be a viable long-term vision. It might well take a decade or more to fully wind it down, but the first step is simply signaling your intention to eventually do so.

At this point, it's hard to argue that benefit of perpetual applet support isn't outweighed by the harm that it inflicts on public mindshare for the rest of your platform. At least start signalling that this cruft is going away eventually, to change the narrative about Java overall being cruft in general.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by jsprogrammer on Monday July 13, 2015 @11:40AM (#9878807)
Why would Oracle voluntarily cut into their support revenue?
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by StevePerkins on Monday July 13, 2015 @11:52AM (#9878883)
As I just indicated above, they should do so because the support revenue stemming from applets is surely outweighed by the damage to their brand overall.

However, given that Oracle still pushes the Ask.com toolbar in their consumer-facing installer, it does seem clear that they are not yet concerned about that calculus.

Perhaps if Microsoft's open-source, cross-platform changes to .NET makes them a more significant threat in a few years... or if maybe some newer emerging non-JVM language starts to gain traction in the enterprise... then Oracle will be pressed to drop its complacency. That is indeed a very slow-moving world, but Oracle practically radiates a "We Couldn't Care Less" vibe, and that would seem to make it vulnerable to disruption at some point.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by jsprogrammer on Monday July 13, 2015 @02:53PM (#9880184)
>they should do so because the support revenue stemming from applets is surely outweighed by the damage to their brand overall.

'Surely'?

If that were the case, why wouldn't Oracle have already done so?

Why don't you assume that Oracle has already run the numbers on how much they collect from enterprise contracts to support all manner of legacy technologies (including applets) and choose to exploit it? A good portion of Oracle exists just to service that revenue stream.

You want them to also drop another revenue stream (Ask/Yahoo co-branding) because of the "damage to their brand overall" from a co-branded installer? Sounds like a good way to give Larry a chuckle.

I doubt many who care about the terrible JRE installer would suddenly start sending cash Oracle's way because they removed the Ask/Yahoo bundle.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by shemnon42 on Monday July 13, 2015 @12:55PM (#9879323)
> However, given that Oracle still pushes the Ask.com toolbar

They don't do that anymore. http://www.pcworld.com/article/2940688/java-installer-ditche...

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by z92 on Monday July 13, 2015 @01:21PM (#9879505)
And have replaced Ask with with Yahoo.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by michaelt on Monday July 13, 2015 @12:07PM (#9878975)
Because of the shame and brand damage of making such a terrible product? And because people who want to call themselves professional engineers have a moral obligation not to knowingly fuck things up for their users too badly?

A car company shouldn't sell a car with defective brakes, even if the defect was great for replacement airbag sales.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by mike_hearn on Monday July 13, 2015 @02:48PM (#9880128)
> Because of the shame and brand damage of making such a terrible product?

From the article: this is the first Java zero day in two years.

Now how many other products we use all the time have had no zero days found for two years? Chrome? Windows? No.

What's more, it's not totally clear that this is even a problem in Java itself, seeing as it apparently relies on a Windows-specific common controls library exploit? There aren't enough details in the report to say, but it seems likely that this is somehow (ab)using AWT to trigger a bug in Microsoft's code.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by jsprogrammer on Monday July 13, 2015 @02:30PM (#9879997)
>Oracle

>the shame and brand damage of making such a terrible product

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by qu4z-2 on Monday July 13, 2015 @10:15PM (#9882459)
I agree. If anything, owning Java is a brand improvement, based on my (admittedly limited) experience with other Oracle products. But that's just my personal opinion.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by cmdkeen on Monday July 13, 2015 @01:18PM (#9879483)
Look at Microsoft receiving multi million dollar payments for continued XP support, there's the potential for more support revenue by announcing the intention to EOL.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by boobsbr on Monday July 13, 2015 @02:25PM (#9879958)
One of the companies I worked for used an applet to load data from a webapp and insert it into an Access 1.0 DB file in the users hard drive.

After exporting the data, the user would have to run a really old gov't program (to which the Access DB file belonged) to upload the data to a legacy server, over X.25 (click an icon on the desktop).

The most important requirement is to use the DB file installed in the user's hard drive (always same directory, no way to change it): can't generate new ones because the gov't program stores some cryptic arcane data in it, and even though we could reverse engineer it, we wouldn't be legally covered if we sent the wrong cryptic data.

Second requirement is: users are ignorant, don't know how to save files and how to navigate directory trees, 'computers = magic' to them.

How would you address this situation?

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by tokenizerrr on Monday July 13, 2015 @02:34PM (#9880034)
Have them download and run a desktop program. You could even write it in Java and also bundle a jre within an exe for actually better overall experience for windows users.

The Web only goes so far.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by boobsbr on Monday July 13, 2015 @02:56PM (#9880203)
> Have them download and run a desktop program. You could even write it in Java and also bundle a jre within an exe for actually better overall experience for windows users.

Yeah, it would work. Could even have used Java Web Start.

The webapp would have to be developed as a web service with a desktop client (and maybe a web client as well), as the data created by different users, with different roles, and in different office buildings, had to be shared.

Is it OK to bundle the JRE in a closed-source program, though?

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by astrange on Monday July 13, 2015 @03:26PM (#9880423)
It is not only OK but expected to distribute the JRE with your apps.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by bmir-alum-007 on Monday July 13, 2015 @03:45PM (#9880549)
Yeap. It's preferred to vendor a JRE (non-system JRE) inside your app (which is basically just extracting it to some dir you always control), which doesn't conflict with whatever else is on the box (no registry settings, /etc/profile or common locations like /usr/some/unix/path/to/system/jre ), and auto-update your app which includes updating the JRE. This is how to deploy a supportable app, which reduce support tickets about "you broke our apps, our IT department is going to call our VPs and is going to call your VPs" and pre-sales issues like "we can't buy this because we can't change JRE versions."

https://www.java.com/en/download/faq/distribution.xml#eula

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by logicallee on Monday July 13, 2015 @03:11PM (#9880318)
>One of the companies I worked for used an applet to load data from a webapp and insert it into an Access 1.0 DB file in the users hard drive...After exporting the data, the user would have to run a really old gov't program (to which the Access DB file belonged) to upload the data to a legacy server, over X.25 (click an icon on the desktop)....

> How would you address this situation?

Well, first I would sign up for a github account. You know steps two and three.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by logicallee on Monday July 13, 2015 @08:16PM (#9882060)
I just noticed this got downvoted. What I meant is that in a situation like that it's really time to polish your github and linkedin, so you can quickly get a different job. If it's a fragile legacy system with Access 1.0 (!) and a bunch of external requirements you aren't allowed to touch, how much of a change can you make?
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by kyllo on Monday July 13, 2015 @11:28AM (#9878714)
I wish to God that Oracle would simply deprecate and discontinue browser-side Java applet support.

Oracle's flagship ERP product is Applet-based, so I doubt that's going to happen anytime soon.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by pkolaczk on Monday July 13, 2015 @01:46PM (#9879695)
Killing it might be hard as long as companies like Cisco base their products on it. We tried a dozen of teleconferencing programs and none was able to beat Cisco Webex Java applet. Ugly? Maybe. Slow to start up? Indeed. But just works on anything (Windows/Max/Linux/Android etc.) and doesn't spin up the fans in my laptop to 100% like Google Hangout does.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by krzyk on Monday July 13, 2015 @03:25PM (#9880416)
Nope, Webex it doesn't work on: * Android (tested 4.4.4, app opens chrome on a page that asks to install the same app, when opening with firefox it says that it is not supported) - why app would open a browser is beyond me * Linux 64bit - screen shared by others is not visible
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by mcdougle on Monday July 13, 2015 @11:11AM (#9878573)
My company just transitioned to a Java applet-based time clocking/PTO/etc. management application.

The first time I opened it and it brought up the little Java prompt, I was like, "Really?"

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by malkia on Monday July 13, 2015 @12:51PM (#9879288)
I hope it's not kronos. That one always started with the bereavement days shown.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by mcdougle on Monday July 13, 2015 @01:47PM (#9879706)
Yep, it's Kronos.

Fortunately, I only need to use it when I request PTO. I feel sorry for the hourly employees that use it several times a day.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by colechristensen on Monday July 13, 2015 @01:57PM (#9879779)
A _lot_ of really shitty "web interfaces" which are actively supported/created/updated for enterprise products use java applets. They are universally pretty terrible (as are, in my opinion/experience _most_ user interfaces running on any JVM).

Lots of companies and lots of developers give lots of fucks about Java web UIs. Because Java programmers are commodity programmers. Everyone knows the language and inexperienced programmers can be productive in it without any great risks. (Not to say that there should be any strong association between knowledge and usage of JVM tech and competence, it's just anything that reaches that depth of adoption is bound to have lots of ... mediocrity)

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by jebblue on Tuesday July 14, 2015 @12:43AM (#9882938)
>> They are universally pretty terrible (as are, in my opinion/experience _most_ user interfaces running on any JVM).

Including web or just client side? If the same UI's that you consider terrible on the JVM were ported to say, well pick any language/platform and ported exactly but using your preferred language and platform features; would the interfaces now be better since they are implemented on your desired language/platform?

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by bsder on Monday July 13, 2015 @07:51PM (#9881935)
> some horrible crusty shops still running on XP

Um, some shops still running on XP have a good reason to do so--generally some piece of hardware that the vendor never found worth the time to update the device driver.

The fact that Vista and later broke device driver compatibility with XP is THE single thing preventing those of us who would like to upgrade to a newer OS from doing so.

Microsoft thought that breaking compatibility with things like Visual Basic 6 and XP device drivers would force people to upgrade. Instead, it caused people to put a stake into the ground and never upgrade ever again.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by rm_-rf_slash on Monday July 13, 2015 @12:53PM (#9879311)
Ugh, how I envy your reason. Unfortunately, I work in higher education, where things move at an agonizing pace. As such, I end up having to use a lot of Java applets just for the sake of compatibility with the framework the college has been using for over a decade (Adobe ColdFusion). So, as much as I'd love to kill Java applets, I still rely on them. Sadly, this is a case where culture will have to change before tech will get its chance.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by bcg1 on Monday July 13, 2015 @02:13PM (#9879880)
You're probably right... at the very least, they should re-brand the applet container because it does create massive amounts of FUD.

As others have noted this is really a Windows issue, not an inherent flaw in Java. And as you note it seems to be a problem in the applet plugin, not necessarily the standalone J2SE runtime. It should be possible/obvious/necessary to install the two separately on Windows.

With the advent of things like NaCl, Emscripten, and WebAssembly these things should not be necessary anymore. Undoubtedly these new technologies will be able to properly sandbox untrusted obfuscated compiled code perfectly and should immediately supplant things like applets.

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by MichaelGG on Monday July 13, 2015 @11:02AM (#9878517)
You can't. Plenty of expensive software runs a Java UI, browser hosted. Though, they often need older JVM versions as they don't run with the latest update.

I don't think Java is enabled by default in any install, is it? So what's the risk?

Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by giancarlostoro on Monday July 13, 2015 @11:16AM (#9878607)
It usually is, at least that's been my experience on Windows. I have to usually disable it myself after installing the JRE, because I know where that game is going (usually ends up being disabled by Firefox automatically eventually).
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by JupiterMoon on Monday July 13, 2015 @12:08PM (#9878977)
In some countries banks seemingly used to have to use Java for online banking (may not be the case anymore).
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by fernandotakai on Monday July 13, 2015 @12:11PM (#9879009)
my bank in brazil still uses a java applet for "security measures". i complained about a thousand times but they still think it's more secure to use a java applet than using nothing.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by z3t4 on Monday July 13, 2015 @06:31PM (#9881604)
It's absurd that the official Java runtime for Windows comes with crapware and spyware ... Ohh, your program requires me to install Java? Then I think I'll pass. Just include the runtime (around 140mb) and your customers won't know or care that they are using Java!
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by jebblue on Tuesday July 14, 2015 @12:49AM (#9882954)
Cookies are the hidden spyware far worse then ticking a checkbox that asks if you want to install something.
Re:First Java Zero-Day Attack in Two Years Targets NATO and ... by Istof on Monday July 13, 2015 @12:23PM (#9879094)
Plain java software can also have exploits made for them but they are not as widespread so it is not as common or not worth the trouble