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.

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

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

Matthew Nelson

PC World
Show Comments

Essentials

Lexar® JumpDrive® S57 USB 3.0 flash drive

Learn more >

Microsoft L5V-00027 Sculpt Ergonomic Keyboard Desktop

Learn more >

Mobile

Lexar® JumpDrive® S45 USB 3.0 flash drive 

Learn more >

Exec

Audio-Technica ATH-ANC70 Noise Cancelling Headphones

Learn more >

Lexar® Professional 1800x microSDHC™/microSDXC™ UHS-II cards 

Learn more >

Lexar® JumpDrive® C20c USB Type-C flash drive 

Learn more >

HD Pan/Tilt Wi-Fi Camera with Night Vision NC450

Learn more >

Budget

Back To Business Guide

Click for more ›

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

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.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?