Setuid and Setgid
MITRE ATT&CK, Privilege Escalation, Sub-technique T1548.001
-rwsr-sr-x 1 root root 122 May 14 22:25 thefileSetting Permissions
# Change the setsuid flag:
chmod u+s $file
# Change the setgid bit:
chmod g+s $file
# Change both the setuid and setgid bit:
chmod +s $file Locating SUID/SGID Binaries
# Locate suid and sgid-enabled files for the current user
find / -perm -u=s -type f 2>/dev/nullEscalating Privileges
References
Last updated
