Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


September 12, 2002

Surprise: Microsoft's Java Implementation Is Full of Security Holes

RSS
Subscribe to Windows IT Pro | See More Windows NT 4.0 Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Jouko Pynnönen of Online Solutions in Finland discovered a series of severe security vulnerabilities in Microsoft's Java implementation. Some of the vulnerabilities let attackers run arbitrary code through Microsoft Internet Explorer (IE) and Outlook Express. According to a message posted to the NTBugTraq mailing list on September 9, Pynnönen discovered and reported to Microsoft as many as 10 such vulnerabilities during July and August.

Pynnönen said, "Some of these [vulnerabilities] allow file access on  [users' systems], some allow access to other resources, and some allow delivery and execution of arbitrary program code on the victim system. These attacks can be carried out when a Web page or mail message containing a hostile [Java] applet is viewed with Internet Explorer or Outlook. In this case the applet [can] upload any program code and start it. The code can [perform] any operations the user can [perform, such as] read or modify files, install or remove programs, etc."

The vulnerabilities are, for the most part, related to code contained in native Java classes--called methods--but some of the vulnerabilities are related to logic errors. Typically, methods are marked as public, protected, or private. Some of the vulnerabilities stem from the security context of various methods, where various methods are improperly exposed.

Pynnönen also said, "An Applet can't contain native methods for [what should be] obvious reasons, but many of the core Java classes contain them. For instance, all file operations are eventually [performed] by native methods. They are used to [perform] operations that aren't possible or practical to do in pure Java.  They may [also] be used

for speed-critical parts of the code. Native methods aren't bound by the Java security policies and can access the processor, operating system, memory, and file system. Security-wise, native methods are a weak link. Unlike ordinary Java code, they can contain traditional programming flaws [such as] buffer overflows. If an untrusted Java applet can invoke a native method [that contains] a security flaw, it may be able to escape its [security] sandbox and compromise the system."

Pynnönen said that according to his research, most of the vulnerabilities aren't found in Sun Microsystems' Java code, but instead stem from modifications that Microsoft made to the code. He tested Sun's Java plug-in for the vulnerabilities and found that none of them exist in the plug-in.

To date, Microsoft hasn't issued a patch to correct the problems, but users can protect themselves against exploits by disabling Java within IE until a patch is available. Another alternative for users who still want to use the functionality Java affords is to download Sun's Java Virtual Machine (VM) and use it instead. The VM works with Windows XP, Windows 2000, Windows NT, and Windows 9x.

In June, Microsoft said that because of a legal settlement with Sun, after January 1, 2004, the company can no longer make modifications to Sun's Java code, including security fixes. Microsoft said that due to the settlement, the company would not include Java with Windows after that date.

End of Article



Reader Comments
Security hole or not, try this:

-Install a retail copy of Windows XP Professional on a blank hard drive.
-Go to a web page that uses some Java so you get the "you must first install the Java VM" error message.
-Go to Sun's webpage and download their Java VM.
-Return to the Java-enabled web page and notice how long it takes for the Java applet to run.

To complete the experiment, blank the hard drive and reinstall Windows XP Pro. Go back to the same Java-enabled page but install the Microsoft Java VM instead of Sun's.

Oh, you _WILL_ notice the difference in how much faster the Microsoft JVM is than the Sun JVM. Repeated this experiment three times on an Intel Pentium III - 800MHz white box PC with 640MB of SDRAM on an Abit BH6 motherboard, 32MB Matrox G400 video card and a 6GB Western Digital "Caviar" hard drive using a Linksys NIC connected directly to a cable broadband Internet provider. However, if you still don't believe that Microsoft JVM is faster than the Sun JVM you can replicate this experiment with your own system and see it with your own eyes before you make the choice.

If you're a paranoid nut that thinks Microsoft can do no right and their competitors do no wrong, install the Sun JVM.

I'll take the allegedly buggy and dangerous Microsoft JVM because I want the speed, baby!

Scott McCollum September 12, 2002


I totally agree with Scott. I kept running into the same problem. And then I found that the MS Java is no longer available cuz they lost the suit against SUN. For God's sakes, if something works better, it should be available. If SUN can't make it run better, then let others do it. Also, try playing a game on Yahoo with Sun's Java (eg Pool) and see how messed up the fonts are. Then uninstall it, install MS Java and see how much better that is. Plus, the Sun Java is very unstable in that it will make your mouse cursor go crazy as if it has parkinsons. This is not just on one computer, happens on all computers, even where I work. Thank God I had the MS Java saved on a CD.

danish ahmad March 09, 2004


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
What You Need to Know About Microsoft's x64 Server Product Plans

What do Longhorn Server, Windows Compute Cluster Server, and Windows Vista have in common? The x64 platform. ...

Anti-Virus Vendors Prepare for War with Microsoft ... Again

When Microsoft announced its Windows Live OneCare security and PC health product over five years (as MSN OneCare), Symantec, McAfee, and the other consumer-oriented security vendors reacted with stunning vigor. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...


Security Whitepapers Sustainable Compliance: How to reconnect compliance, security and business goals

The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Related Events WinConnections and Microsoft® Exchange Connections

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format

Test Drive IT Solutions and Get Free Music Downloads
Solve your toughest IT problems with these free downloads and receive 5 free music downloads!


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home asp.netPRO Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement | Reprints and Licensing