STIGQter STIGQter: STIG Summary: Red Hat Enterprise Linux 8 Security Technical Implementation Guide Version: 1 Release: 2 Benchmark Date: 23 Apr 2021:

Local RHEL 8 initialization files must not execute world-writable programs.

DISA Rule

SV-230309r627750_rule

Vulnerability Number

V-230309

Group Title

SRG-OS-000480-GPOS-00227

Rule Version

RHEL-08-010660

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Set the mode on files being executed by the local initialization files with the following command:

$ sudo chmod 0755 <file>

Check Contents

Verify that local initialization files do not execute world-writable programs.

Check the system for world-writable files.

The following command will discover and print world-writable files. Run it once for each local partition [PART]:

$ sudo find [PART] -xdev -type f -perm -0002 -print

For all files listed, check for their presence in the local initialization files with the following commands:

Note: The example will be for a system that is configured to create user home directories in the "/home" directory.

$ sudo grep <file> /home/*/.*

If any local initialization files are found to reference world-writable files, this is a finding.

Vulnerability Number

V-230309

Documentable

False

Rule Version

RHEL-08-010660

Severity Override Guidance

Verify that local initialization files do not execute world-writable programs.

Check the system for world-writable files.

The following command will discover and print world-writable files. Run it once for each local partition [PART]:

$ sudo find [PART] -xdev -type f -perm -0002 -print

For all files listed, check for their presence in the local initialization files with the following commands:

Note: The example will be for a system that is configured to create user home directories in the "/home" directory.

$ sudo grep <file> /home/*/.*

If any local initialization files are found to reference world-writable files, this is a finding.

Check Content Reference

M

Target Key

2921

Comments