6.6.18.6: Avoiding known security risks in the runtime environment

Securing the properties files

WebSphere Application Server depends on several configuration files created during installation. These files contain password information and should be protected accordingly. Although the files are protected to a limited degree during installation, this basic level of protection is probably not sufficient for your site. You should ensure that these files are protected in compliance with the policies of your site.

The files are found in the bin and properties subdirectories in the WebSphere <product_installation_root>. The configuration files include:

Note   Failure to adequately secure these files can lead to a breach of security in your WebSphere applications.

Securing properties files on OS/2

To secure the properties files on OS/2, follow this procedure for each file:

  1. Locate and right-click the file to be protected.
  2. On the resulting menu, click Properties.
  3. On the resulting dialog, click the Shares tab.
  4. Click the Manage Access button.
  5. Remove any users or groups who should not be granted access to the file.
  6. Add the users who should be allowed to access the file. At minimum, add the identity under which the administrative server runs.

Risks illustrated by example applications

The level of security appropriate to a resource varies with the sensitivity of the resource. Information considered confidential or secret deserves a higher level of security than public information, and different enterprises will assess the same information differently. Therefore, a security system needs to be able to accommodate a wide range of needs. What is reasonable in one environment can be considered a breach of security in another.

The following describes some user practices and their potential risks. When applicable, it uses components of the example application to illustrate the point.

Invoker Servlet

Purpose: The invoker servlet serves servlets by class name. For example, if you invoke /servlet/com.test.HelloServlet, the invoker will load the servlet class (if it is in its classpath) and execute the servlet.

Security consideration: By using this servlet, a user can access any other servlet in the application, without going through the proper channels. For example, if /servlet/testHello is a URI associated with com.test.HelloServlet, and if that URI is protected, user must be authenticated to invokes /servlet/testHello, but any user can invoke /servlet/com.test.HelloServlet, circumventing the security on the URI. This is a security exposure if you have secured servlets installed in the system.

Solution: Avoid installing this servlet in your configuration, or take the precautions described in article 4.2.1.2.3.1.

An application's error page

Purpose: In case of application errors, users are redirected to an error page associated with the Web application. This can be any type of Web resource to which customers should be redirected in case of an error.

Security consideration: This page should be unprotected. If it is protected, the server cannot authenticate the user from the context and therefore cannot send the user to the error page when an error occurs.

Solution: Do not secure these resources.

The web application "examples"

Purpose: This application is available as part of the default installation.

Security consideration: The servlets available in this application can export sensitive information, for example, the configuration of your server).

Solution: The "examples" Web application should not be installed in a production environment.

Avoiding other known security risks

This file addresses specific problem areas. As always, periodically check the product Web site Library page for the latest information. See also the product Release Notes.