-
Notifications
You must be signed in to change notification settings - Fork 9
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bbin install should not overwrite other executables in bin - potential security issue #40
Comments
I think it's a feature that the older version gets overwritten with the newer version. |
We could however prevent overwriting by introducing a flag: |
@ieugen: If you're concerned about security, you need to make sure you only install scripts from a) authors you trust or b) code that you've verified yourself. If you're installing from an untrusted source, there's nothing that |
I also recommend putting local bin directories as a suffix in the export PATH="$PATH:$HOME/.local/bin" This reduces the risk of overriding something like That said, this isn’t a complete solution since a malicious script could start a subshell with a new |
I can overwrite ANY binary this way so IMO it needs some consideration or at least a notice. @rads :
This is normally set by the distribution.
True. We can maybe do one or more of the following:
|
I agree with @ieugen. I think leaving all the responsibility to the end user of
I believe something like So one extra vote for having I would want this to go even further than only
Maybe a permission system would be interesting. "Script asks permission for X, Y, Z. Please confirm" |
@jeroenvandijk: In general I'm in favor of making To keep things simple, I think of I think it's too far for #!/usr/bin/env bash
echo "Hello" {
"name": "rads-ls",
"bin": {"ls": "./ls"}
}
|
I'm going to move this to a discussion since I don't currently plan to take any action on this issue, but I don't want to outright close it either. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
bbin install should fail when a binary with the same name exists at the path.
It should IMO allow user to force installation with a flag.
This could be a security issue, especially with package owners allowed to set the binary name.
Some people might chose to override things like
ls
or other stuff.Current status:
Might be related to
The text was updated successfully, but these errors were encountered: