Java security bug found, patched

A security flaw within Java 2 has been identified and a patch is now available from Sun Microsystems, according to the company.

The security hole, which the company stated was a mistake in the creation of the Java 2 code and not in the Java security architecture itself, was discovered by Karsten Sohr, a graduate student at the University of Marburg, in Germany.

The flaw allows an attacker to create a booby-trapped Web page, so that when a victim views the page, the attacker can seize control of the victim's machine, possibly allowing the attacker to read and delete files and access data and applications, according to Gary McGraw and Edward Felten, authors of Java security books. McGraw and Felten, along with Sohr, notified Sun and Netscape of the flaw in mid-March.

"This hole serves to emphasise that security problems are likely to crop up in new releases of complex systems like Java, even when security is a major goal," McGraw said. "Under some circumstances, the component fails to check all of the code that is loaded into the JVM [Java virtual machine]. Exploiting the flaw allows the attacker to run code that breaks Java's type of safety mechanisms."

The flaw is in an essential security component of the JVM, according to McGraw and an attack program that exploits the flaw has been developed in the lab, in both applet and application form.

Sun admitted that "the bug allows code to get out of the sandbox under circumstances that it should not be allowed to," according to Maxine Erlund, senior engineering manager of Java security and networking in the JavaSoft division at Sun. However, Erlund added, the actual danger from the bug is low.

"The bug is difficult to find, so you'd have to be a real expert to find it. To be affected as a user, you would have to be cruising a Web site with the malicious applet on it," Erlund said. "The most important thing is not to panic. Although the bug is serious in technical terms -- it does pose a security risk ... it's not so serious in practical terms because you'd have to trip over it."

Analysts warn that any hole in a powerful language like Java should be a concern, however.

"The types of exploits that are possible within mobile code like Java and ActiveX can be extremely destructive and in some cases it can be hard to determine if they took place. For that reason, finding holes in Java and in mobile code can be very significant," said Abner Germanow, a senior analyst at International Data Corp. "It's great that the white hat community found it before the black hat community did."

Java 2 was released in December 1998. Sun is providing a patch for the flaw under "Production Releases" on its Web site at http://java.sun.com/products/jdk/1.2/. Netscape is also working on a fix for its systems.

Vulnerable versions

The security flaw exists in several current versions of the Java virtual machine, listed here. (1)-- Sun Java Development Kit 1.1-- Sun Java 2 Software Development Kit 1.2-- Netscape Navigator 4.x(1) Microsoft's latest JVM is not vulnerable to this attack.

Join the PC World newsletter!

Error: Please check your email address.

Struggling for Christmas presents this year? Check out our Christmas Gift Guide for some top tech suggestions and more.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Matthew Nelson

PC World

Most Popular Reviews

Follow Us

Best Deals on GoodGearGuide

Shopping.com

Latest News Articles

Resources

GGG Evaluation Team

Kathy Cassidy

STYLISTIC Q702

First impression on unpacking the Q702 test unit was the solid feel and clean, minimalist styling.

Anthony Grifoni

STYLISTIC Q572

For work use, Microsoft Word and Excel programs pre-installed on the device are adequate for preparing short documents.

Steph Mundell

LIFEBOOK UH574

The Fujitsu LifeBook UH574 allowed for great mobility without being obnoxiously heavy or clunky. Its twelve hours of battery life did not disappoint.

Andrew Mitsi

STYLISTIC Q702

The screen was particularly good. It is bright and visible from most angles, however heat is an issue, particularly around the Windows button on the front, and on the back where the battery housing is located.

Simon Harriott

STYLISTIC Q702

My first impression after unboxing the Q702 is that it is a nice looking unit. Styling is somewhat minimalist but very effective. The tablet part, once detached, has a nice weight, and no buttons or switches are located in awkward or intrusive positions.

Latest Jobs

Shopping.com

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?