You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automated escape container which have privilege to manage host device, especially for escape privileged containers.
This exploit will first gather host device information then mount disk to container, so you can escape container by overwriting host files such as /etc/crontab.
Usage
./cdk run mount-disk
Example
测试案例
宿主机以特权模式启动容器,尝试在该容器内部通过本脚本逃逸。docker run -v /root/cdk:/cdk --rm -it --privileged ubuntu bash
容器内部执行 ./cdk run mount-disk
在容器内部进入挂载目录,直接管理宿主机磁盘文件。
Testing Case
run a privileged container in host docker run -v /root/cdk:/cdk --rm -it --privileged ubuntu bash, try to escape this container using CDK.
attach into the container and execute ./cdk run mount-disk
cd to mounted dir, manipulate host disk files directly.