Check: WG205 A24
Apache Site 2.4 Unix:
WG205 A24
(in version v1 r1)
Title
The web document (home) directory must be in a separate partition from the web server's system files. (Cat II impact)
Discussion
Application partitioning enables an additional security measure by securing user traffic under one security context, while managing system and application files under another. Web content is can be to an anonymous web user. For such an account to have access to system files of any type is a major security risk that is avoidable and desirable. Failure to partition the system files from the web site documents increases risk of attack via directory traversal, or impede web site availability due to drive space exhaustion.
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). Use the command df -k to view each document root's partition setup. Compare that against the results for the Operating System file systems, and against the partition for the web server system files, which is the result of the command: which httpd | xargs df -k If the document root path is on the same partition as the web server system files or the OS file systems, this is a finding.
Fix Text
Move the web document directory to a separate partition, other than the OS root partition and the web server’s system files.
Additional Identifiers
Rule ID:
Vulnerability ID: V-3333
Group Title:
Expert Comments
CCIs
Number | Definition |
---|---|
No CCIs are assigned to this check |
Controls
Number | Title |
---|---|
No controls are assigned to this check |