5 ms·
It's actually this bit from farther down that surprised me the most: > 56 percent of exploits blocked in Q3 use Java vulnerabilities. So much for the idea of
by ajross 14y ago
It's actually this bit from farther down that surprised me the most:
> 56 percent of exploits blocked in Q3 use Java vulnerabilities.
So much for the idea of a managed language runtime being inherently more secure...
- MichaelGG 14y agoThe runtime isn't written in a managed language, and that's where most of the vulnerabilities happen, right? The holes aren't in application code, but in _running arbitrary code_, which the JVM fails to do safely. The surface area exposed is larger, because you're allowing the browser to download and run arbitrary programs, something you don't do with unmanaged languages very much. Edit: Also, just consider how much worse it'd be if Java apps were re-written in a language that allows buffer overflows. Enterprises already cannot get security right; even generating SQL queries results in problems. No way would those teams deal with yet another layer of security issues. Hell, I've dealt with commercial teams writing in C++ thinking a buffer overflow has "something to do with network rate limiting."
- deleted 14y ago[deleted]
- 0x0 14y ago> "The runtime isn't written in a managed language, and that's where most of the vulnerabilities happen, right?" At least some of those Java vulnerabilities are logic errors in the sandboxing/securitymanager parts that are supposed to prevent applets from accessing privileged APIs, and those checks are usually implemented inside the actual java.* standard library classes, in the Java language.
- lucian1900 14y agoIt is inherently more secured in the same context. The JVM applet sandbox has to stand up to random code off the internet, whereas native code is almost only installed explicitly. Remember ActiveX and how it was worse than Java applets?
- jlgreco 14y agoIt seems to me that the only reason we put up with JVM applets (whereas anyone suggesting we put up with people ActiveX would rightfully be laughed down these days) is because of that steady monotonous stream of crap about how much better Java is for security. It has dropped our collective paranoia far too low.
- jebblue 14y agoJava is or was until very recently as anyone who has used it since 1995 will know and remember. Recent issue have arisen, hopefully Oracle is going to get its track record up to what Sun's was. Until then, a few bad recent reports for Java 7 will not wipe out decades of countless security reports for all of Windows Operating System and many relied upon Windows applications. Java applets are still far more efficient and far more powerful and have far greater operability with Java web server software than even HTML5 will have.
- jongalloway2 14y agoHistory and hopefully don't really factor into a thoughtful analysis of current security issues.
- jebblue 14y agoAre you saying history in general is not pertinent to analysis? Is your rule only true for security issues or you do you feel that way about everything?
- ______ 14y agoUnfortunately places like Korea still require ActiveX support because it's used by all online shopping, government, etc pages (and is required by law in many cases)... http://www.koreaittimes.com/story/21504/internet-powerhouse-korea-%E2%80%9Cactivex-controls%E2%80%9Daddict http://www.koreaittimes.com/story/21504/internet-powerhouse-...
- meaty 14y agoWell CLR seems to be OK so I think this is down to the implementation rather than the concept.
- aidenn0 14y agoFewer browsers will run CLR code, so harder to do a drive-by.
- rhplus 14y agoThat's not true. All four major browsers can run CLR code through Silverlight [1] and depending on the statistics you use, the installation base for the plugin is in the same ballpark as Java, somewhere between 65% and 75% [2]. StatOwl even has Silverlight slightly ahead of Java at 69.7% vs 70.0% [3]. Of course, these are desktop stats. On mobile, it's a different story. [1] http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx http://www.microsoft.com/getsilverlight/Get-Started/Install/... [2] http://en.wikipedia.org/wiki/Microsoft_Silverlight#Adoption http://en.wikipedia.org/wiki/Microsoft_Silverlight#Adoption [3] http://riastats.com/ http://riastats.com/ [4] http://www.statowl.com/custom_ria_market_penetration.php http://www.statowl.com/custom_ria_market_penetration.php
- tptacek 14y agoThe problem mostly isn't the runtime itself, but instead the various 3rd party modules (all of which are written in late-90's-era C/C++) that get hooked up to the JVM. For instance, the Quicktime API for Java exposed scalar integers, intended to be "opaque", but in fact raw memory locations. The JVM is good. The Java Applet Plugin, on the other hand, is a problem.
- ajross 14y agoWell, sure. But I think that's maybe missing my point -- a managed runtime needs "holes" in it to do its job, which exposes the security problems of the rest of the system via inevitably leaky abstractions. The point was that the managed runtime does nothing to address this, it has to drill down to a C API at some point (or deeper, consider a similar hole in a shader compiler or video codec accelerator). And contrast with alternative affirmative/MAC-based sandboxing schemes like Chrome's NaCl, or OS-level stuff using SELinux/AppArmor. These don't require a managed runtime at all, and yet appear ("appear" being a critical point of courses) to solve this problem in a more robust way.
- tptacek 14y agoSo, you're right of course, but I just want to point out that the JVM is very very widely used in another setting other than applets where it has a much better track record: serverside web applications. I'm not sure we really know how to secure a desktop application / fat client platform yet.
- pjmlp 14y agoThe best way would be a sandoxing model like SELinux/AppArmor/GateKeeper coupled with a microkernel.
- ujdtyhf 14y agoYet you are viewing this page a with browser that loads and automatically executes untrusted JavaScript code under managed runtime.
- 14y ago
- AlexDanger 14y agoSo the question remains - how best to run Java on a Windows machine and minimise your risk? I've got Win7/64, service packs up to date, java autoinstaller thing....what else can I do?
- josteink 14y agoSet your browser to never auto-launch plugins, but require click to play. If you're not already using ad-block, you will be amazed by how much it improves the performance of your general internet-surfing. So, besides security mindedness, there are already other good reasons for doing it.