PATH environment abuse 2
Last updated
Last updated
There is another way to escalate the privilege to root.
You can add an additional PATH environment and create a new 'overwrite.sh' to run.
Once the /tmp/rootbash file is created, execute it (with -p to preserve the effective UID) to gain a root shell.