Home SUID / SGID Executables - Known Exploits
Post
Cancel

SUID / SGID Executables - Known Exploits

SUID / SGID Executables - Known Exploits

Enumeration

We are going to exploit a vulnerable suid/sgid executable to escalate our privileges to root. Let’s find all the SUID/SGID executables on the machine.

linpriv

As you can see, suid/sgid is set on exim-4.84-3. By searching on exploit-db, we found out that it’s vulnerable to local privilege escalation

linpriv

linpriv

Exploitation

We will copy the exploit and execute it on our target machine, which if successful will provide us with a root shell.

linpriv

This post is licensed under CC BY 4.0 by the author.