Check: WG170 A24
Apache Site 2.4 Unix:
WG170 A24
(in version v1 r1)
Title
Each readable web document directory must contain either a default, home, index, or equivalent file. (Cat III impact)
Discussion
The goal is to completely control the web users experience in navigating any portion of the web document root directories. Ensuring all web content directories have at least the equivalent of an index.html file is a significant factor to accomplish this end. Also, enumeration techniques, such as URL parameter manipulation, rely upon being able to obtain information about the web server’s directory structure by locating directories with default pages. This practice helps ensure that the anonymous web user will not obtain directory browsing information or an error message that reveals the server type and version.
Check Content
To view the DocumentRoot value enter the following command: find / -name httpd.conf -exec awk '{print $1,$2,$3}' {} \; | grep -v '^#' | grep -i DocumentRoot Note each location following the DocumentRoot string, this is the configured path(s) to the document root directory(s). To view a list of the directories and sub-directories and the file index.html, from each stated DocumentRoot location enter the following commands: find . -type d find . -type f -name index.html Review the results for each document root directory and its subdirectories. If a directory does not contain an index.html or equivalent default document, this is a finding.
Fix Text
Add a default document to the applicable directories.
Additional Identifiers
Rule ID:
Vulnerability ID: V-2245
Group Title:
Expert Comments
CCIs
Number | Definition |
---|---|
No CCIs are assigned to this check |
Controls
Number | Title |
---|---|
No controls are assigned to this check |