Linux Privilege Escalation with SUID files

<h1>What is SUID bit set?</h1> <p><strong>Definition:</strong>&nbsp;SUID (Set owner User ID up on execution) is a special permission that allows other users run with the owner&rsquo;s privileges. That&rsquo;s why SUID files can be exploited to give adversaries the higher privilege in Linux/Unix system called privilege escalation. Mostly,&nbsp;<strong>root</strong>&nbsp;access is the goal of hackers when performing privilege escalation.</p> <p>SUID will be set by adding number 4 in the permission number when using&nbsp;<strong>chmod&nbsp;</strong>command. For example: 4777, 4600, 4500, 4000, etc.</p> <p><strong>Note:</strong>&nbsp;Letter s or S in the permission both represent for the SUID file. They only switch to one another when the execute permission is set.</p> <p>To be more specific, let&rsquo;s have a look at the following explanation. The following is the full permission of a file called&nbsp;<strong>demo_file</strong>&nbsp;(777).</p> <p><a href="https://medium.com/go-cyber/linux-privilege-escalation-with-suid-files-6119d73bc620"><strong>Click Here</strong></a></p>