SV-226579r603265_rule
V-226579
SRG-OS-000480
GEN002380
CAT II
10
Document the files with the setuid bit set or unset the setuid bit on the executable.
Files with the setuid bit set will allow anyone running these files to be temporarily assigned the user or group ID of the file. If an executable with setuid allows shell escapes, the user can operate on the system with the effective permission rights of the user or group owner.
List all setuid files on the system.
Procedure:
# find / -perm -4000 -exec ls -l {} \; | more
NOTE: Executing these commands may result in large listings of files; the output may be redirected to a file for easier analysis.
Ask the SA or IAO if files with the setuid bit set have been documented. If any undocumented file has its setuid bit set, this is a finding.
V-226579
False
GEN002380
Files with the setuid bit set will allow anyone running these files to be temporarily assigned the user or group ID of the file. If an executable with setuid allows shell escapes, the user can operate on the system with the effective permission rights of the user or group owner.
List all setuid files on the system.
Procedure:
# find / -perm -4000 -exec ls -l {} \; | more
NOTE: Executing these commands may result in large listings of files; the output may be redirected to a file for easier analysis.
Ask the SA or IAO if files with the setuid bit set have been documented. If any undocumented file has its setuid bit set, this is a finding.
M
4060