CCE-95457-8Platform: cpe:/o:amazon:linux:2, cpe:/o:centos:centos:7, cpe:/o:oracle:linux:7, cpe:/o:oracle:linux:8, cpe:/o:redhat:enterprise_linux:7, cpe:/o:redhat:enterprise_linux:8, cpe:/o:redhat:enterprise_linux:9 | Date: (C)2021-03-05 (M)2023-07-04 |
Description:
Log files stored in /var/log/ contain logged information from many services on the system,
or on log hosts others as well.
Rationale:
It is important to ensure that log files have the correct permissions to ensure that sensitive
data is archived and protected.
Audit:
Run the following command and verify that other has no permissions on any files and
group does not have write or execute permissions on any files:
# find /var/log -type f -perm /037 -ls -o -type d -perm /026 -ls
No output should be returned
Remediation:
Run the following commands to set permissions on all existing log files:
find /var/log -type f -exec chmod g-wx,o-rwx "{}" + -o -type d -exec chmod g-w,o-rwx "{}" +
Notes:
You may also need to change the configuration for your logging software or services for any
logs that had incorrect permissions.
Parameter:
[111100000]
Technical Mechanism:
Run the following commands to set permissions on all existing log files:
find /var/log -type f -exec chmod g-wx,o-rwx "{}" + -o -type d -exec chmod g-w,o-rwx "{}" +
CCSS Severity: | CCSS Metrics: |
CCSS Score : 7.8 | Attack Vector: LOCAL |
Exploit Score: 1.8 | Attack Complexity: LOW |
Impact Score: 5.9 | Privileges Required: LOW |
Severity: HIGH | User Interaction: NONE |
Vector: AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | Scope: UNCHANGED |
| Confidentiality: HIGH |
| Integrity: HIGH |
| Availability: HIGH |
| |
References: Resource Id | Reference |
---|
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:73008 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72903 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72694 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:68608 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72797 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72409 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72043 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:84283 |