CCE-95417-2Platform: 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 |
Over time, system administration errors and changes can lead to groups being defined in /etc/passwd but not in /etc/group.
Rationale
Groups defined in the /etc/passwd file but not in the /etc/group file pose a threat to system security since group permissions are not properly managed.
Audit
Run the following script and verify no results are returned:
#!/bin/bash
for i in $(cut -s -d: -f4 /etc/passwd | sort -u ); do
grep -q -P "^.*?:[^:]*:$i:" /etc/group
if [ $? -ne 0 ]; then
fi
done
Remediation
Analyze the output of the Audit step above and perform the appropriate action to correct any discrepancies found.
Parameter:
[yes/no]
Technical Mechanism:
Analyze the output of the Audit step above and perform the appropriate action to correct any discrepancies found.
CCSS Severity: | CCSS Metrics: |
CCSS Score : 8.8 | Attack Vector: LOCAL |
Exploit Score: 2.0 | Attack Complexity: LOW |
Impact Score: 6.0 | Privileges Required: LOW |
Severity: HIGH | User Interaction: NONE |
Vector: AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H | Scope: CHANGED |
| Confidentiality: HIGH |
| Integrity: HIGH |
| Availability: HIGH |
| |
References: Resource Id | Reference |
---|
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:84266 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72757 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72654 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72392 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72026 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72863 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72968 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:68568 |