Privilege escalation

eleanor@peppo:~$ id
uid=1000(eleanor) gid=1000(eleanor) groups=1000(eleanor),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),108(netdev),999(docker)

We can see that user is a member of video group. We have privilege escalation for this user.

Video group

there is no tty1 , So, this means that the No user is logged physically to a terminal on the machine.

Linpeas.sh

Result:

Docker group exploit

I tried many different ways.

I got the way to get the shell from here.

First check docker image present here.

We can see that there is two repository or image of docker is available.

Let's try running command mentioned in gtfobin and changing any to first docker image.

This worked and I got the shell as root user.

circle-info

Add group for privilege escalation Cheatsheet

Last updated

Was this helpful?