Skip to content
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

Disable -ask-sudo-password for security reasons #148

Merged
merged 1 commit into from
Aug 16, 2016

Conversation

kotakanbe
Copy link
Member

@kotakanbe kotakanbe commented Aug 9, 2016

Disable -ask-sudo-password option for security reasons.
Vuls user have to be able to execute below commands via SSH without sudo password.

  • CentOS, RHEL, Amazon Linux ... /usr/bin/yum, /path/to/echo
  • Debian, Ubuntu ... /usr/bin/apt-get, /usr/bin/apt-cache

Example of /etc/sudoers on target servers

  • CentOS, RHEL, Amazon Linux
vuls ALL=(root) NOPASSWD: /usr/bin/yum, /bin/echo
  • Ubuntu, Debian
vuls ALL=(root) NOPASSWD: /usr/bin/apt-get, /usr/bin/apt-cache

@kotakanbe kotakanbe force-pushed the remove-ask-sudo-password branch 2 times, most recently from 86e9953 to 1173616 Compare August 16, 2016 01:36
@kotakanbe kotakanbe changed the title [WIP] Disable -ask-sudo-password for security reasons Disable -ask-sudo-password for security reasons Aug 16, 2016
@kotakanbe kotakanbe force-pushed the remove-ask-sudo-password branch from 1173616 to f939041 Compare August 16, 2016 02:09
@kotakanbe kotakanbe merged commit 227da93 into master Aug 16, 2016
@kotakanbe kotakanbe added the bug label Aug 16, 2016
@kotakanbe kotakanbe deleted the remove-ask-sudo-password branch August 23, 2016 01:34
@kotakanbe
Copy link
Member Author

https://news.ycombinator.com/edit?id=12616375

SUDO with Password via ssh is technologically possible.
http://askubuntu.com/questions/470383/how-to-avoid-prompt-pa...
But there is a problem with sudo with password via ssh.
For example...

  userA .... 'watch w' on serverA
  userB ... 'ssh serverA echo sudopassword | sudo -S command'

userA can steal of root password on ServerA because plain sudo password is displayed by w command.
So, I disable -ask-sudo-password for security reasons. #148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant