1.5 Ensure Websphere Liberty Server Output is not set to the default value

Information

The user ID that the WebSphere Liberty server process runs under should not have write access to its own configuration files. The WebSphere Liberty server process requires write access to certain runtime files such as temporary caches and logs, but those files can be written to a different location than the configuration files, and permissions can be set separately for those two locations.

Removing write access to a server's configuration files limits the damage that can be done by a theoretical attacker that is able to inject code to be run inside the WebSphere Liberty server process.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Create the server.env file if it does not exist. For more information about server.env please see

here

.

Define WLP_OUTPUT_DIR in the server.env file:

WLP_OUTPUT_DIR=/<server-writeable directory>/

Ensure that the WebSphere Liberty server process user ID has write access to the WLP_OUTPUT_DIR directory.Ensure that the WebSphere Liberty server process user ID does not have write access to the ${server.config.dir} directory.

See Also

https://workbench.cisecurity.org/benchmarks/7724