Linked by Thom Holwerda on Sun 29th Jan 2006 16:04 UTC, submitted by Falko Timme
Permalink for comment 90795
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.
News
Linked by Thom Holwerda on 05/25/13 0:45 UTC
Linked by Thom Holwerda on 05/24/13 23:59 UTC
Linked by Thom Holwerda on 05/24/13 22:33 UTC
Linked by Howard Fosdick on 05/24/13 21:41 UTC
Linked by Thom Holwerda on 05/24/13 14:44 UTC
Linked by Thom Holwerda on 05/23/13 23:22 UTC
Linked by Thom Holwerda on 05/23/13 22:04 UTC
Linked by Thom Holwerda on 05/23/13 22:01 UTC
Linked by Thom Holwerda on 05/23/13 17:52 UTC
Linked by Thom Holwerda on 05/22/13 22:23 UTC
More News »
Sponsored Links



Member since:
2005-12-31
You can break out of a chroot if there is any program running as the same user as yourself that is not also jailed. Obviously, if you are root then there will always be a few programs running as root that aren't jailed, so that's trivial. A more subtle case is when you are chrooting the shell but not the SSH daemon instance that is connecting the user to it.
I'll leave it as an exercise for the reader to figure out how you can use an unjailed program running as the same user to break out of the jail ... it requires some sophistication on the part of the attacker but it can be done.
(edit: to be more precise, there needs to be an unjailed process that the user can send signals to - on Linux the rules are slightly different for suid programs so the SSH daemon instance being used to connect is probably not a problem)
Edited 2006-01-30 10:55