-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Do not use "sudo" with vim for security reasons #2151
Comments
I would definitely prefer to use the most correct tool for the job, but it doesn't seem like this is a vulnerability anywhere except a specially configured I left a review on the PR asking for some logic to deal with not having a |
If a user already can do |
I agree with @gaelicWizard, this is not a vulnerability but a misconfiguration I would say. We can have shell set to We can also run vim with |
Instead, I vote we remove any customizations and/or tools that require |
Use
sudoedit
for security reasons inbash-it/aliases/available/general.aliases.bash
Line 74 in 2ef5d48
sudo vim
gives users a root shell by executing arbitrary shell commands.PR will follow…
The text was updated successfully, but these errors were encountered: