Originally posted by: drag
I've broken out of chroot enviroment. It's pretty easy, but there are ways to mitigate it.
I was working on a Debian install inside of a chroot enviroment from a 'live cd', probably knoppix or something like that. The sshd server was running out of chroot and that was the only access I had to it.
I was at work messing around on it (it was at home), but for whatever reason I needed to get out of the chroot and change something or maybe reboot it or something like that.
The exploit I used was a simple C program I got from a article on how to strenghten chroot enviroments. There was a couple lines that were intentially messed up, but I figured it out and compiled it inside the chroot, could of just as easily compiled it somewere else and used scp or lynx or whatnot to get it, though.
Setting up a secure chroot enviroment is pretty difficult sometimes and there is a big limitations on what you can and can't put in there.