Shebang, $PATH, sudo and exploiting misconfigurations
In this post, we will look at what shebangs and the $PATH variable are, and how sudo works. At the end, we will walk through examples of how they can be exploited by a local user to get root privileges, and how to effectively mitigate it.