SV-33021r1_rule
V-3333
WG205
WG205 A22
CAT II
10
Move the web document (normally "htdocs") directory to a separate partition, other than the OS root partition and the web server’s system files.
grep "DocumentRoot" /usr/local/apache2/conf/httpd.conf
Note each location following the DocumentRoot string, this is the configured path 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:
df -k /usr/local/apache2/bin
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.
V-3333
False
WG205 A22
grep "DocumentRoot" /usr/local/apache2/conf/httpd.conf
Note each location following the DocumentRoot string, this is the configured path 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:
df -k /usr/local/apache2/bin
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.
M
Web Administrator
161