Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: how an hacker can bypass a chrooted environement ? |
|---|---|
| Date: | Fri, 12 May 2006 15:37:02 -0700 |
The most typical is to create a directory, open a file handle and then chroot into that directory, then chdir'ing to the other directory, then ../../ up until root and then calling chroot again. Then suppose you can mount /proc, then you can cd to /proc/1/cwd. Or perhaps, depending on the vulnerable service using already existing file descriptors to fchdir() to freedom, what about mknod? shared memory? unix sockets? signals? kernel exploits? et cetera.
I hope you are starting to get the point that chroot is a severly flawed concept. Yes many people try to limit what exists inside a jail, but that doesn't prevent me from uploading my own code through one method or another.
On Fri, 12 May 2006, Norbert François wrote:
> Hi... > > I was wondering how an attacker can bypass a chrooted environement. A > (common) technique consist in finding a vulnerable program (in the > chrooted environnement) and injecting it a shellcode (i.e > ../../../../../../../bin/bash for ex.) by BoF. But normally, in the > chrooted environement, you volontarily add only necessary tools (like > ls, cat, less...), and vulnerable softwares are uncommon... > > So... how do they this "exploit" of bypassing the chroot ?
------------------------------------------------------------------------------ This List Sponsored by: Cenzic
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Re: Get out of jail cards (Statement of work authorizing access, was Re: Pentester convicted..), cwright |
|---|---|
| Next by Date: | Re: Determining the encryption used, Dotzero |
| Previous by Thread: | Re: how an hacker can bypass a chrooted environement ?, alan |
| Next by Thread: | Re: how an hacker can bypass a chrooted environement ?, Peter Kosinar |
| Indexes: | [Date] [Thread] [Top] [All Lists] |