5.4 Ensure Default HTML Content Is Removed - 'Server Information handler does not exist'

Warning! Audit Deprecated

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

View Next Audit Version

Information

Apache installations have default content that is not needed or appropriate for production use. The primary function for the sample content is to provide a default web site, provide user manuals, or demonstrate special features of the web server. All content that is not needed should be removed.

Rationale:

Historically, sample content and features have been remotely exploited and can provide different levels of access to the server. Usually these routines are not written for production use and consequently little thought was given to security in their development.

Solution

Review all pre-installed content and remove content which is not required. In particular, look for unnecessary content in the document root directory, in a configuration directory such as 'conf/extra' directory, or as a Unix/Linux package.

1. Remove the default 'index.html' or welcome page, if it is a separate package, or comment out the configuration if it is part of the main Apache 'httpd' package, such as it is on Red Hat Linux. Removing a file such as the 'welcome.conf' shown below is not recommended as it may get replaced if the package is updated.

#
# This configuration file enables the default 'Welcome'
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
##
## Options -Indexes
## ErrorDocument 403 /error/noindex.html
##

2. Remove the Apache user manual content or comment out configurations referencing the manual.

# yum erase httpd-manual

3. Remove or comment out any Server Status handler configuration.

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the '.example.com' to match your domain to enable.
#
#
# SetHandler server-status
# Order deny,allow
# Deny from all
# Allow from .example.com
#

4. Remove or comment out any Server Information handler configuration.

#
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the '.example.com' to match your domain to enable.
#
#
# SetHandler server-info
# Order deny,allow
# Deny from all
# Allow from .example.com
#

5. Remove or comment out any other handler configurations such as 'perl-status'.

# This will allow remote server configuration reports, with the URL of
# http://servername/perl-status
# Change the '.example.com' to match your domain to enable.
#
#
# SetHandler perl-script
# PerlResponseHandler Apache2::Status
# Order deny,allow
# Deny from all
# Allow from .example.com
#

See Also

https://workbench.cisecurity.org/files/2020

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7, CSCv6|18.9

Plugin: Unix

Control ID: b6939740d55a3fbc0947b4631e6c041cb278912258792a241f532ca24fb379dd