
Salt recipe for shellshock (CVE-2014-6271)
This recipe tries to upgrade bash from OS pkg, and falls back to compile bash on systems with no update available.
Works for us on old ubuntu/debian.
Bash install script from: http://askubuntu.com/questions/528101/what-is-the-cve-2014-6271-bash-vulnerability-and-how-do-i-fix-it
Can be used as an gitfs salt formula:
fileserver_backend:
- roots
- git
gitfs_remotes:
- git://github.com/APSL/salt-shellshock.git
Runit:
$ sudo salt "oldubuntu" state.sls shellshock
bonus: Test shellshock from salt:
https://twitter.com/johan_moreau/status/515226448270213121
$ sudo salt -G 'kernel:Linux' cmd.run "env x='() { :;}; echo __bad' bash -c 'echo __good' 2>&1 |grep __"