the_open_door
coffee
ESEN
← Tools

docker

docker group or exposed socket → root by mounting the host disk.

The container client. It matters as an escalation vector: if the user is in the docker group or the socket is exposed, they can mount the host disk into a container and read/write as root.

Family Privilege escalation

Flags run -v /:/mnt chroot

Concepts Docker group abuse, Pivoting into Docker containers

Cheatsheet Files, groups & containers

Installation

sudo apt install -y docker.io

Useful commands2 commands

When it fails

  • Unable to find image 'asannou/droopescan:latest' locallyThis is not an error. Docker is saying the image is not on disk and that it is about to pull it: Pulling from ... starts right below. It is only a problem if an Error response from daemon follows, and that does mean the repository is missing or there is no network.seen in Bastard

Appears in

Some machines where its use is documented; not an exhaustive list.