2 ms·
Here's a list of ways to break out, marked either as root required or not. Some are only vague idea, others are explained. https://deepsec.net/docs/Slides/2015/
by viraptor 7y ago
Here's a list of ways to break out, marked either as root required or not. Some are only vague idea, others are explained. https://deepsec.net/docs/Slides/2015/Chw00t_How_To_Break%20Out_from_Various_Chroot_Solutions_-_Bucsay_Balazs.pdf https://deepsec.net/docs/Slides/2015/Chw00t_How_To_Break%20O...
I too thought you can't easily escape unprivileged chroot, but in reality you need to think about quite a few things to make sure it's true.
And once you need to think about those things... Why not apparmor/selinux instead.
- xorcist 7y agoNone of the listed methods are novel. Most are elaborate ways of saying "privilege escalation". If an untrusted process can escalate to root, ptrace to unrelated processes, or access memory outside your process, it was never really contained in the first place. Do also note that none of the listed methods works in what the presentation itself calls a "reasonable chroot". > Why not apparmor/selinux instead It's not either or. Dropping privileges is something you preferably do in more ways than one.