privilege escalation
I can see that current user has tar command run permission with wildcard set. We can abuse it.

We can see that we can crate zip of all files and then save it in /tmp directory.
I got the way to abuse it.
Run below command in victim machine.

The file was created successfully.
Start the listen at port 80.
Run the tar command.

Check the listener.

Got the root shell.
Last updated
Was this helpful?
