RHEL-09-411115 - Local RHEL 9 initialization files must not execute world-writable programs.

Information

If user start-up files execute world-writable programs, especially in unprotected directories, they could be maliciously modified to destroy user files or otherwise compromise the system at the user level. If the system is compromised at the user level, it is easier to elevate privileges to eventually compromise the system at the root and network level.

Solution

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

$ sudo chmod 0755 <file>

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_9_V2R2_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-258062r991589_rule, STIG-ID|RHEL-09-411115, Vuln-ID|V-258062

Plugin: Unix

Control ID: 325f1c9cedfaeba58a776abb77118ce5e7e8d5fb697e80ea8c1a4dc075d576ba