Security Advisories and Notifications


Subject: Security Advisory (BEA08-80.04)
From: Oracle Corporation
Minor Subject: Patches available to prevent multiple cross-site scripting (XSS) vulnerabilities
Product(s) Affected: WebLogic Server and WebLogic Express

This security advisory (BEA08-80.04) contains the corrected remedy for this vulnerability on WebLogic Server and WebLogic Express versions, 10.0, 9.2, 9.1, 9.0, 8.1, 7.0 and 6.1. Please disregard security advisories BEA07-80.03 and its prior versions, as this advisory, BEA08-80.04 supersedes them.

Threat level: High
Although this requires careful orchestration and unintentional cooperation by a privileged user, other cross-site scripting attacks have been publicly documented and are widely known.

Severity: High
Can allow anonymous user to upgrade to administrative privileges.

Thanks to the diligence of several contributors, some areas were identified that could potentially cause a security vulnerability in certain versions of WebLogic Server and WebLogic Express. A patch is available to correct this problem (see Section II). Oracle treats potential security problems with a high degree of urgency and endeavors to take appropriate steps to help ensure the security of our customers' systems. As a result, Oracle strongly suggests the following actions:

I. Read the following advisory.
II. Apply the suggested action.
III. If you know of any additional users interested in future security advisories, please forward them the registration instructions included in this advisory.

I. Advisory

Background: Cross-Site Scripting (XSS) vulnerabilities are well documented in the industry. XSS vulnerability requires three parties:

  • A susceptible Web site.
  • A valid user of the Web site.
  • An attacker.

The attacker tricks the user (usually via misleading links on web pages or emails) to exploit the XSS vulnerability in the Web site. This allows the attacker to run arbitrary client-side (i.e. browser) scripts that execute as the identity of the valid user. Typically this is used to steal session cookies thereby allowing the attacker to impersonate the valid user. XSS vulnerabilities can arise due to bugs in the Web server or in applications running on it. This advisory resolves several possible approaches to exploiting this attack, mainly requiring access to the WebLogic Server console. In many cases, a properly locked down server will not be vulnerable to this sort of attack (see the information on lockdown in Section II).

Coding Advice: Any Web application can introduce XSS vulnerabilities. It is beyond the ability of WebLogic Server and Express to protect against this. Careful coding when programming Web applications is required to avoid these vulnerabilities. To this end, WebLogic Server and Express provide a utility class to defend against this vulnerability: weblogic.servlet.security.Utils. The Utils.encodeXSS() method will properly encode all key HTML syntax characters. The Javadoc for this method is available at:
http://edocs.bea.com/wls/docs81/javadocs/weblogic/servlet/security/Utils.html

For more information, see:
http://edocs.bea.com/wls/docs81/servlet/progtasks.html#160803

Caution About Existing Samples: Our samples are intended to provide a simple tutorial regarding a few specific features. They are not comprehensive guides to best practices. Many of them omit the use of the Utils.encodeXSS() method or other XSS preventative techniques in needed places and are hence vulnerable to XSS attacks.

The following versions of WebLogic Server and WebLogic Express are affected by this vulnerability

  • WebLogic Server 10.0 released through Maintenance Pack 1, on all platforms
  • WebLogic Server 9.2 released through Maintenance Pack 2, on all platforms
  • WebLogic Server 9.1 GA release, on all platforms.
  • WebLogic Server 9.0 GA release, on all platforms.
  • WebLogic Server 8.1 released through Service Pack 6, on all platforms.
  • WebLogic Server 7.0 released through Service Pack 7, on all platforms.
  • WebLogic Server 6.1 released through Service Pack 7, on all platforms.

II. SUGGESTED ACTION

Oracle strongly recommends the following course of actions.

WebLogic Server 10.0

  1. Upgrade to WebLogic Server and WebLogic Express 10.0 Maintenance Pack 1.
  2. Use the Smart Update tool to install the 10.0MP1 patch for CR345092.
  3. WebLogic Server 10.0 Maintenance Pack 2 will include the functionality in this patch.

WebLogic Server 9.2

  1. Upgrade to WebLogic Server and WebLogic Express 9.2 Maintenance Pack 2
  2. Use the Smart Update tool to install the 9.2MP2 patch for CR345092.
  3. WebLogic Server 9.2 Maintenance Pack 3 will include the functionality in this patch.

WebLogic Server 9.1

Use the Smart Update tool to install the 9.1 patch for CR345092.

WebLogic Server and WebLogic Express version 9.0

  1. Download and apply the 9.0 GA Combo patch #7824963 from OracleMetaLink as per the instructions below:
    • Select the Patches and Updates tab after logging in to OracleMetaLink.
    • Click Simple Search.
    • In the Search By field, select Patch Number from the list.
    • Enter the patch number. The patch number may be different for different product releases and platforms.
    • Select the platform (or choose generic as applicable)
    • Click Go.
    • Click Download to download the patch.
  2. Download and apply the patch #7825046 from OracleMetaLink as per the instructions below:
    • Select the Patches and Updates tab after logging in to OracleMetaLink.
    • Click Simple Search.
    • In the Search By field, select Patch Number from the list.
    • Enter the patch number. The patch number may be different for different product releases and platforms.
    • Select the platform (or choose generic as applicable)
    • Click Go.
    • Click Download to download the patch.
  3. Place the jar for the patch at the end of the PATCH_CLASSPATH.

WebLogic Server and WebLogic Express version 8.1

  1. Upgrade to WebLogic Server and WebLogic Express 8.1 Service Pack 6.
  2. Download and apply the patch #7825038 from OracleMetaLink as per the instructions below:
    • Select the Patches and Updates tab after logging in to OracleMetaLink.
    • Click Simple Search.
    • In the Search By field, select Patch Number from the list.
    • Enter the patch number. The patch number may be different for different product releases and platforms.
    • Select the platform (or choose generic as applicable)
    • Click Go.
    • Click Download to download the patch.
  3. Place the jar for the patch in the CLASSPATH before the weblogic.jar file.

WebLogic Server and WebLogic Express version 7.0

  1. Upgrade to WebLogic Server and WebLogic Express 7.0 Service Pack 7.
  2. Download and apply the patch #7825062 from OracleMetaLink as per the instructions below:
    • Select the Patches and Updates tab after logging in to OracleMetaLink.
    • Click Simple Search.
    • In the Search By field, select Patch Number from the list.
    • Enter the patch number. The patch number may be different for different product releases and platforms.
    • Select the platform (or choose generic as applicable)
    • Click Go.
    • Click Download to download the patch.
  3. Place the jar for the patch in the CLASSPATH before the weblogic.jar file.

WebLogic Server and WebLogic Express version 6.1

  1. Upgrade to WebLogic Server and WebLogic Express 6.1 Service Pack 7.
  2. Download and apply the patch #7825055 from OracleMetaLink as per the instructions below:
    • Select the Patches and Updates tab after logging in to OracleMetaLink.
    • Click Simple Search.
    • In the Search By field, select Patch Number from the list.
    • Enter the patch number. The patch number may be different for different product releases and platforms.
    • Select the platform (or choose generic as applicable)
    • Click Go.
    • Click Download to download the patch.
  3. Place the jar for the patch in the CLASSPATH before the weblogic.jar file.


III. REFERENCES

Oracle greatly appreciates the contributions from the following professional organizations for their assistance in investigating this matter:
  • ACROS Security
  • DV Bern AG
  • Application Security Inc
  • GomoR


SECURITY COMMUNICATIONS

Oracle strongly suggests that customers apply the remedies recommended in all our security advisories. Oracle also urges customers to apply every Service/Maintenance Pack as they are released. Service/Maintenance Packs include a roll-up of all bug fixes for each version of the product, as well as each of the prior Service/Maintenance Packs. Service/Maintenance Packs and information about them can be found at: http://www.oracle.com/technology/software/products/ias/bea_main.html

Note: Information about securing WebLogic Server and WebLogic Express can be found at http://edocs.bea.com/wls/docs103/security.html. Specific lockdown information is provided at http://e-docs.bea.com/wls/docs103/lockdown/index.html. We strongly encourage you to review this documentation to ensure your server deployment is securely configured.

As a policy, if there are any security-related issues with any Oracle product, Oracle will distribute an advisory and instructions with the appropriate course of action. Because the security of your site, data, and code is our highest priority, we are committed to communicating all security-related issues clearly and openly.

All previous advisories can be viewed at: http://www.oracle.com/technology/deploy/security/wls-security.

Additional users who wish to register for product advisory distribution should follow the registration directions at: http://www.oracle.com/technology/deploy/security/alerts.htm.

Security issues can be reported to Oracle by following the directions at: http://www.oracle.com/technology/deploy/security/alerts.htm.

Thank you,
Oracle Corporation