Note: This is an archival copy of Security Sun Alert 200072 as previously published on http://sunsolve.sun.com.
Latest version of this security advisory is available from http://support.oracle.com as Sun Alert 1000056.1.
Article ID : 1000056.1
Article Type : Sun Alerts (SURE)
Last reviewed : 2007-07-09
Audience : PUBLIC
Copyright Notice: Copyright © 2010, Oracle Corporation and/or its affiliates.

Java Runtime Environment Does Not Securely Process XSLT Stylesheets Contained in XML Signatures



Category
Security

Release Phase
Resolved

Product
Java 2 Platform, Standard Edition

Bug Id
6519471

Date of Resolved Release
10-JUL-2007

Impact

The Java XML Digital Signature implementation that is included in the JDK and JRE 6 release does not securely process XSLT stylesheets contained in XSLT Transforms in XML Signatures. This could lead to the execution of arbitrary code with the permissions of the application processing XML signatures that include these XSLT stylesheets.

Sun acknowledges with thanks, Brad Hill of iSEC Partners, for bringing this issue to our attention.


Contributing Factors

This issue can occur in the following releases (for Windows, Solaris, and Linux):

  • JDK and JRE 6 Update 1 and earlier

Note: SDK and JRE 5.0 and 1.4.x are not affected by this issue. (The XML Digital Signature implementation was not included in SDK and JRE 5.0 and 1.4.x releases).

For this vulnerability to be exploited, a trusted application needs to process an XML signature with an XSLT stylesheet that contains malicious content. This vulnerability cannot be exploited through an untrusted applet or untrusted Java Web Start application.

To determine the default version of the JRE on a system for Solaris and Linux, the following command can be run:

    % java -version

(The above command only determines the default version. Other versions may also be installed on the system).

To determine the default version of the JRE on a system for Windows:

  1. Click "Start"
  2. Select "Run"
  3. Type "cmd" (starts a command-line)
  4. At the prompt, type "java -version"

(The above command only determines the default version. Other versions may also be installed on the system).


Symptoms

There are no predictable symptoms that would indicate the described issue has been exploited.


Workaround

There is no workaround for this issue. Please see the Resolution section below.


Resolution

This issue is addressed in the following releases (for Windows, Solaris, and Linux):

  • JDK and JRE 6 Update 2 or later

Java SE 6 is available for download at the following link:

http://java.sun.com/javase/downloads/index.jsp

Java SE 6 Update 2 for Solaris is available in the following patches:

  • Java SE 6 update 2 (as delivered in patch 125136-02 or later)
  • Java SE 6 update 2 (as delivered in patch 125137-02 or later (64bit))
  • Java SE 6_x86 update 2 (as delivered in patch 125138-02 or later)
  • Java SE 6_x86 update 2 (as delivered in patch 125139-02 or later (64bit))

Note: When installing a new version of the product from a source other than a Solaris patch, it is recommended that the old affected versions be removed from your system. For more information, please see the installation notes on the respective java.sun.com download pages.



References

125136-02
125137-02
125138-02
125139-02




Attachments
This solution has no attachment