Check: AS24-U1-000180
Apache Server 2.4 UNIX Server STIG:
AS24-U1-000180
(in versions v2 r4 through v1 r3)
Title
The Apache web server log files must only be accessible by privileged users. (Cat II impact)
Discussion
Log data is essential in the investigation of events. If log data were to become compromised, competent forensic analysis and discovery of the true source of potentially malicious system activity would be difficult, if not impossible, to achieve. In addition, access to log records provides information an attacker could potentially use to their advantage since each event record might contain communication ports, protocols, services, trust relationships, user names, etc. The web server must protect the log data from unauthorized read, write, copy, etc. This can be done by the web server if the web server is also doing the logging function. The web server may also use an external log system. In either case, the logs must be protected from access by non-privileged users.
Check Content
Determine the location of the "HTTPD_ROOT" directory and the "httpd.conf" file: # httpd -V | egrep -i 'httpd_root|server_config_file' -D HTTPD_ROOT="/etc/httpd" -D SERVER_CONFIG_FILE="conf/httpd.conf" Review the log file location. To determine permissions for log files, from the command line, navigate to the directory where the log files are located and enter the following command: ls -alH <HTTPD_ROOT>/log* Note the owner and group permissions on these files. Only system administrators and service accounts running the server should have permissions to the files. If any users other than those authorized have read access to the log files, this is a finding.
Fix Text
To protect the integrity of the data that is being captured in the log files, ensure that only the members of the Auditors group, Administrators, and the user assigned to run the web server software is granted permissions to read the log files.
Additional Identifiers
Rule ID: SV-214235r612240_rule
Vulnerability ID: V-214235
Group Title: SRG-APP-000118-WSR-000068
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000162 |
The information system protects audit information from unauthorized access. |
Controls
Number | Title |
---|---|
AU-9 |
Protection Of Audit Information |