Linux Privilege Escalation with SUID files
<h1>What is SUID bit set?</h1>
<p><strong>Definition:</strong> 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, <strong>root</strong> 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 <strong>chmod </strong>command. For example: 4777, 4600, 4500, 4000, etc.</p>
<p><strong>Note:</strong> 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’s have a look at the following explanation. The following is the full permission of a file called <strong>demo_file</strong> (777).</p>
<p><a href="https://medium.com/go-cyber/linux-privilege-escalation-with-suid-files-6119d73bc620"><strong>Click Here</strong></a></p>