This chapter describes the actions that Oracle recommends you to implement for ensuring the security of your production environment.
This chapter includes the following sections:
SSL clients start the SSL handshake by connecting to the server. As part of the connection, the client sends the server a list of the cipher suites it supports.
A cipher suite is an SSL encryption method that includes the key exchange algorithm, the symmetric encryption algorithm, and the secure hash algorithm. A cipher suite is used to protect the integrity of a communication. For example, the cipher suite called RSA_WITH_RC4_128_MD5 uses RSA for key exchange, RC4 with a 128-bit key for bulk encryption, and MD5 for message digest.
The server selects a mutually-supported cipher suite from the list supplied by the client for the client and server to use for this session.
However, an incorrectly configured client might specify a set of cipher suites that contain only null ciphers.
A null cipher passes data on the wire in clear-text. (An example of a cipher suite with a null cipher is TLS_RSA_WITH_NULL_MD5.) Using a null cipher makes it possible to see the SSL messages by using a network packet sniffer. In essence, SSL is used but does not provide any security.
The server selects the null cipher only when it is the only cipher suite they have in common.
If the server selects a null cipher from the client's cipher suite list, the log contains the following message: "SSL has established a session that uses a Null cipher."
This message is output only when the server has selected a null cipher from the client's list.
Note:
If there is any potential whatsoever that an SSL client might use a null cipher to inappropriately connect to the server, you should check the log file for this message. It is recommended that new client configurations be given extra attention with respect to the use of a null cipher to ensure that they are properly configured.It is unlikely that an existing client configuration would suddenly start using null ciphers if it had not been doing so previously. However, an existing client configuration that is unknowingly configured incorrectly could be using null ciphers.
Other SSL errors unrelated to null ciphers are possible as well, and each will display an appropriate error message in the log.
For information on configuring SSL, see "Configuring SSL" in Administering Security for Oracle WebLogic Server. For information on viewing log files, see "View and configure logs" in the Oracle WebLogic Server Administration Console Online Help.
As of release 10g Release 3 (10.3), WebLogic Server includes an Administration Console control to prevent the server from using a null cipher.
The Allow Unencrypted Null Cipher control, which is available in the WebLogic Server Administration Console by selecting Servers > ServerName > Configuration > SSL > Advanced, determines whether null ciphers are allowed. By default, this control is not set and the use of a null cipher is not allowed on the server. In such a configuration, if the SSL clients want to use the null cipher suite (by indicating TLS_RSA_WITH_NULL_MD5 as the only supported cipher suite), the SSL handshake will fail.
If you set this control, the null cipher suite (for example, TLS_RSA_WITH_NULL_MD5) is added to the list of supported cipher suites by the server. The SSL connection has a chance to use the null cipher suite if the client wants to do so. If the null cipher suite is used, the message will be unencrypted.
Caution:
Do not set this control in a production environment unless you are aware of the implications and consequences of doing so.This control is also exposed as a system runtime parameter, weblogic.security.SSL.allowUnencryptedNullCipher
, and as an AllowUnencryptedNullCipher
attribute on the SSLMBean.
A WebLogic Server production environment is only as secure as the security of the machine on which it is running. It is important that you secure the physical machine, the operating system, and all other software that is installed on the host machine.
Note:
FIPS mode is supported for JSSE via the RSA provider.To enable FIPS in JSSE, follow these steps:
Put the cryptojFIPS.jar
jar (WL_HOME
/server/lib/cryptojFIPS.jar
) in the classpath, ahead of cryptoj.jar
. For example, you could add cryptojFIPS.jar
to the PRE_CLASSPATH
variable in the server start script, typically startWebLogic.cmd/sh
).
Enable the RSA JSSE provider, as described in "Using the RSA JSSE Provider in WebLogic Server" in Administering Security for Oracle WebLogic Server.
FIPS 140-2 is a standard that describes U.S. Federal government requirements for sensitive, but unclassified use.
The following are recommendations for securing a WebLogic Server host in a production environment. Also check with the manufacturer of the machine and operating system for recommended security measures.
Important:
WebLogic domain and server configuration files should be accessible only by the operating system users who configure or execute WebLogic Server.Table 3-1 Securing the WebLogic Server Host
Security Action | Description |
---|---|
Physically secure the hardware. |
Keep your hardware in a secured area to prevent unauthorized operating system users from tampering with the deployment machine or its network connections. |
Log out of the Administration Console before navigating to a non-secure site. |
If you are logged on to the WebLogic Server Administration Console, be sure to log out completely before browsing to an unknown or non-secure Web site. |
Secure networking services that the operating system provides. |
Have an expert review network services such as e-mail programs or directory services to ensure that a malicious attacker cannot access the operating system or system-level commands. The way you do this depends on the operating system you use. Sharing a file system with other machines in the enterprise network imposes risks of a remote attack on the file system. Be certain that the remote machines and the network are secure before sharing the file systems from the machine that hosts WebLogic Server. |
Use a file system that can prevent unauthorized access. |
Make sure that the file system on each WebLogic Server host can prevent unauthorized access to protected resources. For example, on a Windows computer, use only NTFS. |
Set file access permissions for data stored on disk. |
Set operating system file access permissions to restrict access to data stored on disk. This data includes, but is not limited to, the following:
For example, operating systems such as Unix and Linux provide utilities such as umask and chmod to set the file access permissions. At a minimum, consider using "umask 066", which denies read and write permission to Group and Others. |
Set file access permissions for data stored in persistent store. |
Set operating system file access permissions to restrict access to data stored in the persistent store. When using a synchronous write policy of The default persistent store maintains its data in a |
Limit the number of user accounts on the host machine. |
Avoid creating more user accounts than you need on WebLogic Server host machines, and limit the file access privileges granted to each account. On operating systems that allow more than one system administrator user, the host machine should have two user accounts with system administrator privileges and one user with sufficient privileges to run WebLogic Server. Having two system administrator users provides a back up at all times. The WebLogic Server user should be a restricted user, not a system administrator user. One of the system administrator users can always create a new WebLogic Server user if needed. Important: WebLogic domain and server configuration files should be accessible only by the operating system users who configure or execute WebLogic Server. See the recommendation regarding creating one operating system user with access rights that are limited to WebLogic resources. Review active user accounts regularly and when personnel leave. Background Information: Some WebLogic Server configuration data and some URL (Web) resources, including Java Server Pages (JSPs) and HTML pages, are stored in clear text on the file system. A sophisticated user or intruder with read access to files and directories might be able to defeat any security mechanisms you establish with WebLogic Server authentication and authorization schemes. |
For your system administrator user accounts, choose names that are not obvious. |
For additional security, avoid choosing an obvious name such as "system", "admin", or "administrator" for your system administrator user accounts. |
Safeguard passwords. |
The passwords for user accounts on production machines should be difficult to guess and should be guarded carefully. Set a policy to expire passwords periodically. Never code passwords in client applications. |
Do not include unencrypted passwords in command lines. |
Several WebLogic Server commands, including WLST and When entering commands that require an unencrypted password, whether in a command window or script, take the following precautions to ensure that the passwords are entered securely:
For more information about passing user credentials securely in scripts, see the following topics:
|
On each host computer, give only one user account access to WebLogic resources (in addition to the two system administrator users who also have access privileges). |
Important: WebLogic domain and server configuration files should be accessible only by the operating system users who configure or execute WebLogic Server. No other operating system user (apart from the system administrators) should have read, write, or execute access to WebLogic Server product files nor to your domain files. On each WebLogic Server host computer, use the operating system to establish a special user account (for example,
This protection limits the ability of other applications that are executing on the same machine as WebLogic Server to gain access to WebLogic Server files and your domain files. Without this protection, some other application could gain write access and insert malicious, executable code in JSPs and other files that provide dynamic content. The code would be executed the next time the file was served to a client. Knowledgeable operating system users may be able to bypass WebLogic Server security if they are given write access, and in some cases read access, to the following files:
Everything that uses the persistent store, such as JMS SAF files, has sensitive data that should be protected from read access as well as from write access. The persistent store supports persistence to a file-based store or to a JDBC-enabled database. If you use the file store to store files on WebLogic Server, the applications can be stored anywhere. You must remember the locations of all of the files in order to protect them from read and write access. If you use the JDBC store to store applications, make sure to properly secure the database by protecting it from read and write access. For more information on using the persistent store, see "Using the WebLogic Persistent Store" in Administering Server Environments for Oracle WebLogic Server. |
Configure the Password Validation provider immediately after configuring a new WebLogic domain |
The Password Validation provider, which is included with WebLogic Server, can be configured with several out-of-the-box authentication providers to manage and enforce password composition rules. Consequently, whenever a password is created or updated in the security realm, the corresponding authentication provider automatically invokes the Password Validation provider to ensure that the password meets the composition requirements that are established. For information about how to configure and use the Password Validation provider, see "Configuring the Password Validation Provider" in Administering Security for Oracle WebLogic Server. |
To bind to protected ports on UNIX, configure WebLogic Server to switch user IDs or use Network Address Translation (NAT) software. |
On UNIX systems, only processes that run under a privileged user account (in most cases, root) can bind to ports lower than 1024. UNIX systems allow only one system administrator (root) user. However, long-running processes like WebLogic Server should not run under these privileged accounts. Instead, you can do either of the following:
|
Do not run Web servers as |
When you run a Web server on Unix systems — such as Apache HTTP Server, Microsoft IIS, or Sun Java System Web Server — make sure of the following:
Taking these steps helps ensure that unprivileged users cannot insert code that can potentially be executed by the Web server. |
Do not develop on a production machine. |
Develop first on a development machine and then move code to the production machine when it is completed and tested. This process prevents bugs in the development environment from affecting the security of the production environment. |
Do not install development or sample software on a production machine. |
Do not install development tools on production machines. Keeping development tools off the production machine reduces the leverage intruders have should they get partial access to a WebLogic Server production machine. Do not configure the WebLogic Server sample applications on a production machine. When the installation program prompts you to select an installation type:
|
Enable security auditing. |
If the operating system on which WebLogic Server runs supports security auditing of file and directory access, Oracle recommends using audit logging to track any denied directory or file access violations. Administrators should ensure that sufficient disk space is available for the audit log. |
Consider using additional software to secure your operating system. |
Most operating systems can run additional software to secure a production environment. For example, an Intrusion Detection System (IDS) can detect attempts to modify the production environment. Refer to the vendor of your operating system for information about available software. |
Apply operation-system patch sets and security patches. |
Refer to the vendor of your operating system for a list of recommended patch sets and security-related patches. |
Install the latest minor releases, patch set updates, and maintenance packs. |
If you are responsible for security related issues at your site, register your WebLogic Server installation with My Oracle Support. You can create a My Oracle Support account at It is recommended that you obtain and apply Patch Set Updates (PSUs) for security related fixes and other fixes. For information about Patch Set Updates (PSUs), see Patching with OPatch. If you have an installation of WebLogic Server 10g Release 3 (10.3) or earlier, you can obtain important security updates from the BEA Security Advisories Archive Page at In addition, you are advised to apply each maintenance pack and minor release as soon as it is released. Maintenance packs and minor releases, which are available from My Oracle Support, include a roll-up of all bug fixes for each version of the product. To report potential security issues, you may do either of the following:
|
Do not run WebLogic Server in development mode in a production environment. |
Production mode sets the server to run with settings that are more secure and appropriate for a production environment. Caution: Note the following:
For more information about development mode and production mode, see "Domain Modes" in Understanding Domain Configuration for Oracle WebLogic Server. For information about how to change the WebLogic Server instances in a domain to run in production mode, see "Change to production mode" in the Oracle WebLogic Server Administration Console Online Help. You can also enable production mode using the WebLogic Scripting Tool by setting |
Secure your JNDI root context |
Group |
When designing network connections, you balance the need for a security solution that is easy to manage with the need to protect strategic WebLogic resources. The following table describes options for securing your network connections.
Table 3-2 Securing Network Connections
Security Action | Description |
---|---|
Use hardware and software to create firewalls. |
A firewall limits traffic between two networks. Firewalls can be a combination of software and hardware, including routers and dedicated gateway machines. They employ filters that allow or disallow traffic to pass based on the protocol, the service requested, routing information, packet content, and the origin and destination hosts or networks. They can also limit access to authenticated users only. The WebLogic Security Service supports the use of third-party Identity Assertion providers, which perform perimeter-based authentication (Web server, firewall, VPN) and handle multiple security token types/protocols (SOAP, IIOP-CSIv2). For more information, refer to "Perimeter Authentication" in Understanding Security for Oracle WebLogic Server. For more information about using firewalls with WebLogic Server, refer to "Security Options for Cluster Architectures" in Administering Clusters for Oracle WebLogic Server. |
Use WebLogic Server connection filters. |
Instead of, or in addition to, using hardware and third-party software to create firewalls, consider using WebLogic Server connection filters to limit network traffic based on protocols, IP addresses, and DNS node names. Connection filters are most appropriate when the machines in a WebLogic Server domain can access each other without going through a firewall. For example, you might use a firewall to limit traffic from outside the network, and then use WebLogic Server connection filters to limit traffic behind the firewall. See "Using Connection Filters" in Administering Security for Oracle WebLogic Server. |
Use a domain-wide Administration Port for administrative traffic. |
An Administration Port limits all administrative traffic between server instances in a WebLogic Server domain to a single port. When the server is run without an Administration Port, an application can inadvertently transmit confidential server configuration on the wire in clear-text. Running the server with an Administration Port significantly reduces the chances of this happening. Furthermore, having an Administrative Port configured is helpful should a Denial of Service (DoS) attack occur because the resources for handling requests for, and the limitations on Administration Port requests are separate from those of the rest of the server. When used in conjunction with a connection filter, you can specify that a WebLogic Server instance accepts administrative requests only from a known set of machines or subnets and only on a single port. Enabling the Administration Port requires clients to interact with the Administration Console using SSL which protects sensitive data from being sniffed on the wire by an attacker and protects against some cross site scripting attacks. See "Configure the domain-wide administration port" and "Enable configuration auditing" in the Oracle WebLogic Server Administration Console Online Help. |
Secure the embedded LDAP port. |
To protect the embedded LDAP port against brute force attacks, close off the embedded LDAP listen port using a connection filter in a single server configuration. While this does not protect the embedded LDAP port in a multiple server configuration, the default connection filter implementation supports filtering based on the source IP address which should be used to allow access only from servers that are part of the domain. As a result, only the machines in the domain can access the LDAP port. For more information on using connection filters, see "Using Network Connection Filters" in Developing Applications with the WebLogic Security Service. |
Do not enable remote access to the JVM platform MBean server. |
The JDK provides an MBean server (the platform MBean server) and a set of MBeans that contain monitoring information about the JVM. You can configure the WebLogic Server Runtime MBean Server to run as the platform MBean server, which enables JMX clients to access the JVM MBeans and WebLogic Server MBeans from a single MBean server connection. Remote access to the platform MBean server can be secured only by standard JDK security features (see If it is essential that remote JMX clients have access to the JVM MBeans, Oracle recommends that you access them through the WebLogic Server Runtime MBean Server. See "Registering MBeans in the JVM Platform MBean Server" in Developing Manageable Applications Using JMX for Oracle WebLogic Server. |
When enabling SNMP, be sure to restrict access to port numbers by using firewalls and other network security measures. |
The Simple Network Management Protocol version 2 (SNMPv2), which is supported by WebLogic Server in versions 6.x through 11g Release 1 (10.3.1), lacks security. By default, SNMP is disabled in WebLogic Server. However, once you enable SNMP, the SNMPv2 protocol forces certain potential security problems to occur on the SNMP service, including unauthorized access and Denial of Service attacks. To limit these security problems when SNMPv2 is enabled, make sure that your network is secure and that the firewall is configured to restrict access to the ports in your WebLogic Server environment. For more information, see Monitoring Oracle WebLogic Server with SNMP. |
Make sure configuration settings for complete message timeout are sized appropriately for your system. |
To reduce the potential for Denial of Service (DoS) attacks, make sure that the complete message timeout parameter is configured properly for your system. This parameter sets the maximum number of seconds that a server waits for a complete message to be received. The default value is 60 seconds, which applies to all connection protocols for the default network channel. This setting might be appropriate if the server has a number of high-latency clients. However, you should tune this to the smallest possible value without compromising system availability. If you need a complete message timeout setting for a specific protocol, you can alternatively configure a new network channel for that protocol. For information about displaying the Administration Console page from which the complete message timeout parameter can be set, see "Configure protocols" in the Oracle WebLogic Server Administration Console Online Help. |
On UNIX systems, set number of file descriptors appropriately for your system. |
On UNIX systems, each socket connection to WebLogic Server consumes a file descriptor. To optimize availability, the number of file descriptors for WebLogic Server should be appropriate for the host machine. By default, WebLogic Server configures 1024 file descriptors. However, this setting may be low, particularly for production systems. Note that when you tune the number of file descriptors for WebLogic Server, your changes should be in balance with any changes made to the complete message timeout parameter. A higher complete message timeout setting results in a socket not closing until the message timeout occurs, which therefore results in a longer hold on the file descriptor. So if the complete message timeout setting is high, the file descriptor limit should also be set high. This balance provides optimal system availability with reduced potential for DoS attacks. For information about tuning the number of available file descriptors, consult your UNIX vendor's documentation. |
Most Web applications use a database to store their data. Common databases used with WebLogic Server are Oracle, Microsoft SQL Server, and Informix. The databases frequently hold the Web application's sensitive data including customer lists, customer contact information, credit card information, and other proprietary data. When creating your Web application you must consider what data is going to be in the database and how secure you need to make that data. You also need to understand the security mechanisms provided by the manufacturer of the database and decide whether they are sufficient for your needs. If the mechanisms are not sufficient, you can use other security techniques to improve the security of the database, such as encrypting sensitive data before writing it to the database. For example, leave all customer data in the database in plain text except for the encrypted credit card information.
The WebLogic Security Service provides a powerful and flexible set of software tools for securing the subsystems and applications that run on a server instance. The following table provides a checklist of essential features that Oracle recommends you use to secure your production environment.
Table 3-3 Securing the WebLogic Security Service
Security Action | Description |
---|---|
Deploy production-ready security providers to the security realm. |
The WebLogic Security Service uses a pluggable architecture in which you can deploy multiple security providers, each of which handles a specific aspect of security. By default WebLogic Server includes its own security providers that provide a complete security solution. If you have purchased or written your own security providers:
|
Use SSL, but do not use the demonstration digital certificates in a production environment. |
To prevent sensitive data from being compromised, secure data transfers by using HTTPS. WebLogic Server includes a set of demonstration private keys, digital certificates, and trusted certificate authorities that are for development only. Everyone who downloads WebLogic Server has the private keys for these digital certificates. Do not use the demonstration identity and trust. Refer to "Configure keystores" in the Oracle WebLogic Server Administration Console Online Help and "Configuring SSL" in Administering Security for Oracle WebLogic Server. |
Make sure that WebLogic Server enforces security constraints on digital certificates. |
When communicating by SSL, by default WebLogic Server rejects any digital certificates in a certificate chain that do not have the Basic Constraint extension defined by the Certificate Authority. This level of enforcement protects your Web site from the spoofing of digital certificates. Make sure that no server startup command includes the following option, which disables this enforcement:
For more information about this option, see "SSL Certificate Validation" in Administering Security for Oracle WebLogic Server. In your development environment, you might have disabled the enforcement of security constraints to work around incompatibilities with demonstration digital certificates that WebLogic Server provided in releases prior to 7.0 Service Pack 2. Make sure you enable this feature in your production environment. |
Verify that host name verification is enabled to avoid man-in-the-middle attacks. |
By default, the WebLogic SSL implementation validates that the host to which a connection is made is the intended or authorized party. However, during the implementation of WebLogic Server at your site, you might have disabled host name verification. To enable host name verification, see "Configure a custom host name verifier" in the Oracle WebLogic Server Administration Console Online Help. Refer to "Using Host Name Verification" in Administering Security for Oracle WebLogic Server. Background Information: A man-in-the-middle attack occurs when a machine inserted into the network captures, modifies, and retransmits messages to the unsuspecting parties. One way to avoid man-in-the-middle attacks is to validate that the host to which a connection is made is the intended or authorized party. An SSL client can compare the host name of the SSL server with the digital certificate of the SSL server to validate the connection. The WebLogic Server HostName Verifier protects SSL connections from man-in-the-middle attacks. |
Restrict the size and the time limit of requests on external channels to prevent Denial of Service attacks. |
To prevent some Denial of Service (DoS) attacks, WebLogic Server can restrict the size of a message as well as the maximum time it takes a message to arrive. The default setting for message size is 10 megabytes and 480 seconds for the complete message timeout. Oracle recommends that you:
To configure these settings for the HTTP, T3, and IIOP protocols refer to the following tasks in the Oracle WebLogic Server Administration Console Online Help: See also "Reducing the Potential for Denial of Service Attacks" in Tuning Performance of Oracle WebLogic Server. Background Information: A DoS attack leaves a Web site running but unusable. Hackers deplete or delete one or more critical resources of the Web site. To perpetrate a DoS attack on a WebLogic Server instance, an intruder bombards the server with many requests that are very large, are slow to complete, or never complete so that the client stops sending data before completing the request. |
Set the number of sockets allowed to a server to prevent DoS attacks. |
To prevent some DoS attacks, limit the number of sockets allowed for a server so that there are fewer than the number of sockets allowed to the entire process. This ensures that the number of file descriptors allowed by the operating system limits is not exceeded. Even after the server's limit is exceeded, administrators can access the server through the Administration Port. You can configure this setting using the MaxOpenSockCount flag. In the Oracle WebLogic Server Administration Console Online Help, see "Servers: Configuration: Tuning". |
Configure WebLogic Server to avoid overload conditions. |
Configure WebLogic Server to avoid overload conditions in order to allow WebLogic Server sufficient processing power so that an administrator can connect to it and attempt to correct the problem in case the server comes under heavy load. Because communication over administration channels is not prevented when the system is overloaded, administrators can always connect regardless of any current overload condition. In case of heavy load, the administrator should bring the server into the admin state, locate the offending user, and then prevent that user from overloading the server with requests. To configure WebLogic Server to avoid overload conditions, set the shared capacity attribute in the overload protection MBean. The setting you choose for this attribute is the threshold after which no more non-administrator requests are accepted by WebLogic Server. For more information on overload conditions, see "Avoiding and Managing Overload" in Administering Server Environments for Oracle WebLogic Server. |
Configure user lockouts and login time limits to prevent attacks on user accounts. |
By default, the WebLogic Security Service provides security against dictionary and brute force attacks of user accounts. If during development you changed the settings for the number of invalid login attempts required before locking the account, the time period in which invalid login attempts have to take place before locking the account, or the amount of time the user account is locked, review the settings and verify that they are adequate for your production environment. Note: User lockout is effected by the WebLogic Security Service on a per-server basis. For example, a user who has been locked out of an application hosted on a given Managed Server (or cluster) is not necessarily locked out of the Administration Console. Likewise, a user who has been locked out of the Administration Console is not necessarily prevented from attempting to log in to an application hosted on a Managed Server. See "Protect user accounts" in the Oracle WebLogic Server Administration Console Online Help. Background Information: In a dictionary/brute force attack, a hacker sets up a script to attempt logins using passwords out of a "dictionary." The WebLogic Server user lockout and login settings can protect user accounts from dictionary/brute force attacks. |
If you use multiple Authentication providers, be sure to set the JAAS control flag correctly. |
If a security realm has multiple Authentication providers configured, configure the order and precedence of each provider by setting the JAAS control flags. See "Set the JAAS control flag" in the Oracle WebLogic Server Administration Console Online Help. |
Enable security auditing. |
Auditing is the process of recording key security events in your WebLogic Server environment. When the Auditing provider that the WebLogic Security Service provides is enabled, it logs events in You enable an Auditing provider in the WebLogic Server Administration Console on the Security Realms > RealmName > Providers > Auditing page. See "Configure Auditing providers" in the Oracle WebLogic Server Administration Console Online Help. Note: Using an Auditing provider might adversely affect the performance of WebLogic Server even if only a few events are logged. Review the auditing records periodically to detect security breaches and attempted breaches. Noting repeated failed logon attempts or a surprising pattern of security events can prevent serious problems. If you develop your own custom Auditing provider and would like more information on posting audit events from a provider's Mbean, refer to "Best Practice: Posting Audit Events from a Provider's MBean" in Developing Security Providers for Oracle WebLogic Server. |
Ensure that you have correctly assigned users and groups to the default WebLogic Server security roles. |
By default, all WebLogic resources are protected by security policies that are based on a default set of security roles. Make sure you have assigned the desired set of users and groups to these default security roles. Refer to "Users, Groups, And Security Roles" in Securing Resources Using Roles and Policies for Oracle WebLogic Server. |
Create no fewer than two user accounts with system administrator privileges. |
One of the system administrator users should be created when the domain is created. Create other user(s) and assign them the Having at least two system administrator user accounts helps to ensure that one user maintains account access in case another user becomes locked out by a dictionary/brute force attack. |
Although much of the responsibility for securing the WebLogic resources in a WebLogic Server domain fall within the scope of the server, some security responsibilities lie within the scope of individual applications. For some security options, the WebLogic Security Service enables you to determine whether the server or individual applications are responsible. For each application that you deploy in a production environment, review the items in the following table to verify that you have secured its resources.
Note:
The HTTP Publish-Subscribe server included in WebLogic Server has specific lockdown steps, which are described in "Using the HTTP Publish-Subscribe Server" in Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server.Table 3-4 Securing Applications
Security Action | Description |
---|---|
Determine which deployment model secures your Web applications and EJBs. |
By default, each Web application and EJB uses deployment descriptors (XML files) to declare its secured resources and the security roles that can access the secured resources. Instead of declaring security in Web application and EJB deployment descriptors, you can use the Administration Console to set security policies that secure access to Web applications and EJBs. This technique provides a single, centralized location from which to manage security for all Web applications and EJBs. You can combine these two techniques and configure WebLogic Server to copy security configurations from existing deployment descriptors upon the initial deployment of a URL (Web) or EJB resource. Once these security configurations are copied, the Administration Console can be used for subsequent updates. Refer to "Options for Securing Web Application and EJB Resources" in Securing Resources Using Roles and Policies for Oracle WebLogic Server. |
Set the |
When a request on a web application is redirected to another location, the Host header contained in the request is used by default in the Location header of the response. Because the Host header can be spoofed — that is, corrupted to contain a different host name and other parameters — this behavior can be exploited to launch a redirection attack on a third party. To prevent the likelihood of this occurrence, set the For more information, see " |
Use JSP comment tags instead of HTML comment tags. |
Comments in JSP files that might contain sensitive data and or other comments that are not intended for the end user should use the JSP syntax of |
Do not install uncompiled JSPs and other source code on the production machine. |
Always keep source code off of the production machine. Getting access to your source code allows an intruder to find security holes. Consider precompiling JSPs and installing only the compiled JSPs on the production machine. For information about precompiling JSPs, refer to "Precompiling JSPs" in Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server. |
Configure your applications to use SSL. |
Set the Refer to "security-constraint" in Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server. |
Do not use the |
Oracle does not recommend using the Instead, map servlets to URIs explicitly. Remove all existing mappings between WebLogic servlets and the For information on mapping servlets, refer to "Configuring Servlets" in Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server. |
Do not leave |
Oracle does not recommend using the For information on setting up a default servlet, refer to "Setting Up a Default Servlet" in Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server. |
Verify all WebLogic security policies. |
In WebLogic Server 7.0, security policies replace ACLs and answer the question "who has access" to a WebLogic resource. Make sure that you have not removed security policies from WebLogic resources, and make sure that your security role assignments provide users the kind of access that you intend. Refer to Securing Resources Using Roles and Policies for Oracle WebLogic Server. |
Examine applications for security. |
There are instances where an application can lead to a security vulnerability. Many of these instances are defined by third-party organizations such as Open Web Application Security Project (see Of particular concern is code that uses Java native interface (JNI) because Java positions native code outside of the scope of Java security. If Java native code behaves errantly, it is only constrained by the operating system. That is, the Java native code can do anything WebLogic Server itself can do. This potential vulnerability is further complicated by the fact that buffer overflow errors are common in native code and can be used to run arbitrary code. |
If your applications contain untrusted code, enable the Java security manager. |
The Java security manager defines and enforces permissions for classes that run within a JVM. In many cases, where the threat model does not include malicious code being run in the JVM, the Java security manager is unnecessary. However, when third parties use WebLogic Server and untrusted classes are being run, the Java security manager may be useful. To enable the Java security manager for a server instance, use the following Java options when starting the server:
-Djava.security.manager
-Djava.security.policy[=]=filename
Refer to "Using the Java Security Manager to Protect WebLogic Resources" in Developing Applications with the WebLogic Security Service. |
Replace HTML special characters when servlets or JSPs return user-supplied data. |
The ability to return user-supplied data can present a security vulnerability called cross-site scripting, which can be exploited to steal a user's security authorization. For a detailed description of cross-site scripting, refer to "Understanding Malicious Content Mitigation for Web Developers" (a CERT security advisory) at To remove the security vulnerability, before you return data that a user has supplied, scan the data for HTML special characters. If you find any such characters, replace them with their HTML entity or character reference. Replacing the characters prevents the browser from executing the user-supplied data as HTML. See "Securing User-Supplied Data in JSPs" and "Securing Client Input" in Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server. |
Ensure security checks on performed on JMS resources. |
Set the |
Configure WebSocket applications to use authentication and authorization and verified-origin policies. |
Use standard Web container authentication and authorization functionality (BASIC, FORM, CLIENT-CERT) to prevent unauthorized clients from opening WebSocket connections. You can also configure WebSocket applications to only accept WebSocket connections from expected origins. Apply a verified-origin policy to WebSocket applications by specifying the For more information, see "Securing WebSocket Applications" in Developing Applications for Oracle WebLogic Server. |
Establish secure WebSocket connections by using the |
WebSocket applications should use the For more information, see "Securing WebSocket Applications" in Developing Applications for Oracle WebLogic Server. |