module

Docker Privileged Container Escape

Disclosed
2019-07-17
Created
2020-08-05

Description

This module escapes from a privileged Docker container and obtains root on the host machine by abusing the Linux cgroup notification on release
feature. This exploit should work against any container started with the following flags: `--cap-add=SYS_ADMIN`, `--privileged`.

Author

stealthcopter

Platform

Linux

Architectures

x86, x64, armle, mipsle, mipsbe

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/linux/local/docker_privileged_container_escape
msf exploit(docker_privileged_container_escape) > show targets
...targets...
msf exploit(docker_privileged_container_escape) > set TARGET < target-id >
msf exploit(docker_privileged_container_escape) > show options
...show and set options...
msf exploit(docker_privileged_container_escape) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.