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.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Matthew Nelson

PC World
Show Comments

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Matthew Stivala

HP OfficeJet 250 Mobile Printer

The HP OfficeJet 250 Mobile Printer is a great device that fits perfectly into my fast paced and mobile lifestyle. My first impression of the printer itself was how incredibly compact and sleek the device was.

Armand Abogado

HP OfficeJet 250 Mobile Printer

Wireless printing from my iPhone was also a handy feature, the whole experience was quick and seamless with no setup requirements - accessed through the default iOS printing menu options.

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?