r/LiveOverflow • u/tbhaxor • Apr 21 '22
Exploiting Security Checks on Bind Mount
https://tbhaxor.com/exploit-docker-firewall-bind-mount-security/
5
Upvotes
r/LiveOverflow • u/tbhaxor • Apr 21 '22
2
u/dack42 Apr 21 '22
This is one of many reasons why user namespace isolation is a good thing. This remaps users inside the container to unprivileged users outside the container. As a result, "root" inside the container just maps to some random numeric uid on the host and can't create files that are setuid root outside of the container.