Imported from node011/Bounty-Reaper (
.bountyreper/skill/CIS_benchmarks/Server_Software/Apache_HTTP_Server/cis-apache-http-server-2-4-benchmark-v2/cis-apache24-5.2/SKILL.md). Install upstream withnpx skills add node011/Bounty-Reaper --skill cis-apache24-5.2. Copyright stays with the author (CC-BY-NC-SA-4.0).
5.2 Ensure Options for the Web Root Directory Are Restricted
Profile Applicability
- Level 2
Description
The Apache Options directive allows for specific configuration of options, including:
- Execution of CGI
- Following symbolic links
- Server side includes
- Content negotiation
Rationale
The Options directive at the web root or document root level also needs to be restricted to the minimal options required. A setting of None is highly recommended, however it is recognized that this level configuration may be needed if multiple languages are supported. No other options should be enabled.
Audit
Perform the following to determine if the recommended state is implemented:
- Search the Apache configuration files (
httpd.confand any included configuration files) to find document root<Directory>elements. - Ensure there is a single
Optionsdirective with the value ofNoneorMultiviews.
The following may be useful in extracting directory elements from the Apache configuration for auditing.
perl -ne 'print if /^ *<Directory */\/i .. /<\/Directory>/i'
$APACHE_PREFIX/conf/httpd.conf
Remediation
Perform the following to implement the recommended state:
- Search the Apache configuration files (
httpd.confand any included configuration files) to find document root<Directory>element. - Add or modify any existing
Optionsdirective to have a value ofNoneorMultiviews, if multiviews are needed.
<Directory "/usr/local/apache2/htdocs">
. . .
Options None
. . .
Default Value
The default value for the web root directory's Option directive is FollowSymLinks.
References
CIS Controls
Controls Version: v8
- 5.4 Restrict Administrator Privileges to Dedicated Administrator Accounts
- Restrict administrator privileges to dedicated administrator accounts on enterprise assets. Conduct general computing activities, such as internet browsing, email, and productivity suite use, from the user's primary, non-privileged account.
- IG 1: •
- IG 2: •
- IG 3: •
Controls Version: v7
- 4.7 Limit Access to Script Tools
- Limit access to scripting tools (such as Microsoft PowerShell and Python) to only administrative or development users with the need to access those capabilities.
- IG 2: •
- IG 3: •
Profile
- Level 2 | Automated