News for hackers. Stuff that matters.
Re:List of Unix binaries that can be used to bypass local se... by faiD9Eet on Friday July 07, 2023 @05:50AM (#36629418)
For the sake of this argument, lets suppose you run a git server. Users $(ssh) into your host and are only allowed to execute the command $(git), for instance for submitting a copy of their repository. You think: It's fine, the user cannot mess up anything on this system since he is restricted to run git.

Allowing any user $(git) access is as powerful as providing the user a $(bash)

Suppose you've got a build pipeline. The pipeline executes $(zip) at some point. Executing zip is as powerful as providing any of the pipelines users a $(bash).

Re:List of Unix binaries that can be used to bypass local se... by salawat on Friday July 07, 2023 @05:57AM (#36629465)
....except it isn't if you set up the git user with authorized_keys (user public key), and set the login shell for the system git user to nologin.

Congratulations. Git without bash. Unless there's another escape I'm not aware of.

Re:List of Unix binaries that can be used to bypass local se... by feldrim on Friday July 07, 2023 @08:29AM (#36630691)
And that is the whole idea of having a list like this. These tools by default have some capabilities which can easily be executable. You need to mitigate each of those. Because they are insecure by default.