AS24-U2-000320 - The Apache web server must have resource mappings set to disable the serving of certain file types.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

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 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.

Solution

Determine the location of the 'HTTPD_ROOT' directory and the 'httpd.conf' file:

# httpd -V | egrep -i 'httpd_root|server_config_file'
-D HTTPD_ROOT='/etc/httpd'
-D SERVER_CONFIG_FILE='conf/httpd.conf'

Disable MIME types for .exe, .dll, .com, .bat, and .csh programs.

If 'Action' or 'AddHandler' exist and they configure .exe, .dll, .com, .bat, or .csh, remove those references.

Restart Apache: apachectl restart

Ensure this process is documented and approved by the ISSO.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apache_Server_2-4_UNIX_Y22M01_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7, CAT|II, CCI|CCI-000381, Rule-ID|SV-214283r612241_rule, STIG-ID|AS24-U2-000320, STIG-Legacy|SV-102865, STIG-Legacy|V-92777, Vuln-ID|V-214283

Plugin: Unix

Control ID: 0d1cae0eca4bdaed544cc08693196fabdd6a7a7ce350a076e45bc5ce2b7342b4