News for hackers. Stuff that matters.
Re:GTFOBins by idorosen on Wednesday October 13, 2021 @05:52AM (#28850213)
You are viewing the list from a position of great privilege, due to your greater knowledge. Many devs don’t understand how sudo or setuid binaries even work, some may not even know that sudo itself is a setuid binary. Asking interview questions like “how does sudo work” yields interesting results ranging from “magic/witchcraft” to “it’s part of the Linux kernel”, even in some very senior engineers. As an educational/training tool, including at least one example of the unintended consequences of ill-formed sudo configurations and setuid binaries in GTFOBins makes sense to me.

Heck, IMO, we shouldn’t have a single role with all the privileges, opting instead for a capabilities-like system with specific admin roles for different domains of control. There are other *nixes where this was the case historically.

Re:GTFOBins by sokoloff on Wednesday October 13, 2021 @08:01AM (#28851070)
You are viewing the list from a position of great privilege

  sudo lynx --dump https://gtfobins.github.io/ | grep https://gtfobins | tail +3 | grep -v # | sed 's/^.*\/\(.*\)\/$/\1/' | sudo less
Re:GTFOBins by idorosen on Friday October 15, 2021 @04:18AM (#28875555)
That first sudo was probably not necessary. Thanks for the laugh. :)
Re:GTFOBins by theshadowknows on Wednesday October 13, 2021 @08:33AM (#28851313)
slow clap
Re:GTFOBins by bawolff on Wednesday October 13, 2021 @12:40PM (#28854385)
You don't need to understand how sudo works to know what it does. If you didn't know that running `sudo cat someFile` will leak the contents of the file, then this list is at the wrong level, and probably won't help you.

I'm not hating on people for not knowing things - it just seems like either its already obvious and this won't help you or its not obvious and it still won't help you because its not really teaching you the right thing. Either way, it seems kind of silly.

Re:GTFOBins by fragmede on Wednesday October 13, 2021 @06:20AM (#28850395)
Linux has capabilities(7), as I'm sure you know, but security is complicated, and the practical thing to do is still to turn off selinux and apparmor if you're running into weird problems. There are absolutely use cases for them, but "complicated" is a bug, not a feature.
Re:GTFOBins by NavinF on Wednesday October 13, 2021 @06:42AM (#28850542)
capabilities(7) is pretty useless in practice because most of those capabilities can be escalated into full root access. The man page does a terrible job of explaining the security implications.

I'm pretty sure he was taking about something completely unrelated to the stuff you're thinking of (capabilities(7), selinux, and apparmor): https://en.m.wikipedia.org/wiki/Capability-based_security

Here's what an implementation of capabilities looks like: https://capnproto.org/rpc.html