UCF STIG Viewer Logo

OHS must have resource mappings set to disable the serving of certain file types.


Overview

Finding ID Version Rule ID IA Controls Severity
V-64401 OH12-1X-000169 SV-78891r1_rule Medium
Description
Resource mapping is the process of tying a particular file type to a process in the web server that can serve that type of file to a requesting client and to identify which file types are not to be delivered to a client. By not specifying which files can and which files cannot be served to a user, the web server could deliver to a user web server configuration files, log files, password files, etc. The web server must only allow hosted application file types to be served to a user and all other types must be disabled.
STIG Date
Oracle HTTP Server 12.1.3 Security Technical Implementation Guide 2019-01-04

Details

Check Text ( C-65153r1_chk )
1. Open $DOMAIN_HOME/config/fmwconfig/components/OHS//httpd.conf and every .conf file (e.g., ssl.conf) included in it with an editor.

2. Search for "" directives beyond the "" directive at the OHS server, virtual host, and directory configuration scopes.

3. If the "" directive is omitted or it and/or any directives it contains are set improperly, this is a finding.
Fix Text (F-70331r1_fix)
1. Open $DOMAIN_HOME/config/fmwconfig/components/OHS//httpd.conf and every .conf file (e.g., ssl.conf) included in it with an editor.

2. Search for "" directives beyond the "" directive at the OHS server, virtual host, and directory configuration scopes.

3. Set the "" directive to ""^(?!.*\.(gif|jpe?g|png|html?|js|css)).*$"" or other value appropriate for the server/site to prevent inappropriate file access, add the directive if it does not exist.

4a. Within the "" directive, set the "Order" directive to "allow,deny", add the directive if it does not exist.
4b. Within the "" directive, set the "Deny" directive to "from all", add the directive if it does not exist.
4c. Within the "" directive, set the "Satisfy" directive to "All", add the directive if it does not exist.