escaping chroot jails
play

Escaping chroot jails Why? Chroot jails come up in writing - PowerPoint PPT Presentation

Escaping chroot jails Why? Chroot jails come up in writing exploits, CtF competitions, etc. In the context of this class, a good intro to basic UNIX concepts UNIX 101 man man man 2 chroot Users (UID 0 is root)


  1. Escaping chroot jails

  2. Why? ● Chroot jails come up in writing exploits, CtF competitions, etc. ● In the context of this class, a good intro to basic UNIX concepts

  3. UNIX 101 ● “man man” ● “man 2 chroot” ● Users (UID 0 is root) ● Tree of processes, with owners – pstree, ps, top ● Tree of files and directories, with owners and permissions – ls, tree

  4. Explore in the shell a little bit...

  5. After you boot ● Authentication – Ties a person to a process – Typically involves entering username and password

  6. chroot jail ● Intended to keep a process in its own root directory – E.g. , to keep them out of /home directory ● Not intended to keep a superuser who can run arbitrary code contained, but people try to use it for that – FreeBSD has a stronger jail concept, or use Linux Containers

  7. Putting ourselves in a chroot jail...

  8. Breaking out of it... ● Build a new jail inside the one you're in ● Request that the new jail be your jail – Okay because it's smaller and inside the one you're currently in ● Ask to go anywhere you want in the system – Not a problem, because you're not in your jail anyway so you're not getting let out

  9. Explore both versions of the C code...

  10. References ● https://filippo.io/escaping-a-chroot-jail-slash-1/

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend