LXC/LXD (Linux Container/Daemon) Privilege Escalation
LXD is a container management extension for Linux Containers (LXC).
Check if You are in the Lxd Group
If you belong to the Lxd group, you may be able to the root privileges.
Check if Container Image Exists
List all images and check if a container image already exists.
If there are not container, build a new image in your local machine.
In remote machine, download the “alpine-*.tar.gz” and import it.
After that, create a new container from the image.
If you got the error “No storage pool found. Please create a new storage pool.”, initialize the lxd at first.
Then create a new container as above command.
Mount the New Container to Root Directory
Now mount the host's / directory onto /mnt/root in the container you created.
Start the Container
Get a Shell
Check if you are root.
Retrieve the Sensitive Information in the Mounted Directory
Last updated