Users and scripts running on behalf of users must be contained to the document root or home directory tree of the Apache web server.

From Apache Server 2.4 Windows Site Security Technical Implementation Guide

Part of SRG-APP-000141-WSR-000087

Associated with: CCI-000381

AS24-W2-000350_rule Users and scripts running on behalf of users must be contained to the document root or home directory tree of the Apache web server.

Vulnerability discussion

A web server is designed to deliver content and execute scripts or applications on the request of a client or user. Containing user requests to files in the directory tree of the hosted web application and limiting the execution of scripts and applications guarantees that the user is not accessing information protected outside the application's realm.The web server must also prohibit users from jumping outside the hosted application directory tree through access to the user's home directory, symbolic links or shortcuts, or through search paths for missing files.

Check content

Review the <'INSTALLED PATH'>\conf\httpd.conf file and search for the following directive: Directory For every root directory entry (i.e., ), verify the following exists. If it does not, this is a finding: Order Deny,Allow Deny from all If the statement above is not found in the root directory statement, this is a finding. If "Allow" directives are included in the root directory statement, this is a finding.

Fix text

Edit the <'INSTALLED PATH'>\conf\httpd.conf file and set the root directory directive as follows: Directory Order Deny,Allow Deny from all

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer