CCE-95452-9Platform: 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:
The /etc/cron.monthly directory contains system cron jobs that need to run on a monthly
basis. The files in this directory cannot be manipulated by the crontab command, but are
instead edited by system administrators using a text editor. The commands below restrict
read/write and search access to user and group root, preventing regular users from
accessing this directory.
Rationale:
Granting write access to this directory for non-privileged users could provide them the
means for gaining unauthorized elevated privileges. Granting read access to this directory
could give an unprivileged user insight in how to gain elevated privileges or circumvent
auditing controls.
Audit:
Run the following command and verify Uid and Gid are both 0/root and Access does not
grant permissions to group or other :
# stat /etc/cron.monthly
Access: (0700/drwx------) Uid: ( 0/ root) Gid: ( 0/ root)
Remediation:
Run the following commands to set ownership and permissions on /etc/cron.monthly :
# chown root:root /etc/cron.monthly
# chmod og-rwx /etc/cron.monthly
Parameter:
[root, root, 111000000]
Technical Mechanism:
Run the following commands to set ownership and permissions on /etc/cron.monthly :
# chown root:root /etc/cron.monthly
# chmod og-rwx /etc/cron.monthly
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:72898 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:68603 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:71994 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:73003 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72689 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:84234 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72360 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72792 |