REQUIREMENTS:
1) User must be in docker group to run docker commands (or root in the container)
2) Docker socket must be exposed
STEPS:
1) Check if the Docker sock is mounted
cd /var/run
ls -la | grep sock3) Check if our user can run Docker commands
id
groups4) Check if any images are already on the host
docker imagescurl --unix-socket /var/run/docker.sock http://localhost/images/json4.5) Create a new container in the existing image
5) Escape the container
6) PWNED!
Last updated