What is SUID?
Definition: SUID (Set owner User ID up on execution) is a special permission that allows other users run with the owner’s privileges. That’s why SUID files can be exploited to give adversaries the higher privilege in Linux/Unix system called privilege escalation. Mostly, root access is the goal of hackers when performing privilege escalation.
Techniques :
- Shared Object Injection
- Binary Symlinks
- Environment Variables
How to find the SUID files
The following command will list all of the SUID files in the system
| |
find: a Linux command to search for files in a directory hierarchy-perm: is used to define the permissions to search for-u=s: search for files with the SUID permission-type f: search for regular file2>dev/null: errors will be deleted automatically
