Security Advisories and Notifications


Security Advisory: (BEA04-64.00)

From: Oracle Corporation

Minor Subject: Patches available to protect Web Applications

Product(s) Affected: WebLogic Server and WebLogic Express

Threat level: Low
Relies on the use of a relatively obscure portion of the Servlet 2.3 specification in the Web application's deployment descriptor.

Severity: Low
A successful exploitation can result in some application security being bypassed.

Recently a problem was identified that could potentially cause a security vulnerability in certain versions of WebLogic Server and WebLogic Express. Patches are available to correct this problem (see Section II). BEA System treats potential security problems with the highest degree of urgency and does everything possible to ensure the security of all customer assets. 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 below.

I. Advisory

This vulnerability can occur when a Web application has specified a role of name * in a <role-name> tag contained within a <security-constraint> tag. The following code text from a web.xml file exhibits the problematic use of *:

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>myProtectedResourec</web-resource-name>
            <url-pattern>/my/secure/urls</url-pattern> 
        </web-resource-collection>
        <auth-constraint>
           <role-name>*</role-name>
        </auth-constraint>
    </security-constraint>

The Servlet 2.3 specification (section SRV.13.3) specifies that a role name of * "is a compact syntax for indicating all roles in the web application". However, WebLogic Server implements it as a compact syntax for any user. This difference means that users who have no defined roles in a Web application can still access resources protected with a role name of *.

The provided patch alters the default behavior of the Web container so that it now interprets * as defined in the Servlet specification.

The following versions of WebLogic Server and WebLogic Express are affected by this vulnerability
  • WebLogic Server and WebLogic Express 8.1, released through Service Pack 2, on all platforms
  • WebLogic Server and WebLogic Express 7.0, released through Service Pack 5, on all platforms

II. SUGGESTED ACTION

Oracle strongly recommends the following course of actions.

For WebLogic Server and WebLogic Express version 8.1 or WebLogic Server and WebLogic Express version 7.0
  • Remove the * role name from all web.xml files where the intended meaning of * was to restrict users who are not in roles defined in the current Web application. Replace this with a <role-name> tag for each role defined in the web.xml file.

Or

For WebLogic Server and WebLogic Express version 8.1
  • Upgrade to Service Pack 2 and download and apply the patch #7823759 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.

    WebLogic Server version 8.1 Service Pack 3 will include the functionality in this patch.


For WebLogic Server and WebLogic Express version 7.0
  • Upgrade to Service Pack 5 and download and apply the patch #7823750 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.

    WebLogic Server version 7.0 Service Pack 6 will include the functionality in this patch.


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