Salt recipe for shellshock (CVE-2014-6271)======================
shellshock bash update
======================
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
Usage
=====
Can be used as an gitfs salt formula:
```yaml
fileserver_backend:
- roots
- git
gitfs_remotes:
- git://github.com/APSL/salt-shellshock.git
```
Runit:
```sh
$ 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 __"
```
[4.0K] /data/pocs/c2cd2472c5557bbc219bbd7790b9573d0dcf01fd
├── [ 806] README.md
└── [4.0K] shellshock
├── [ 298] init.sls
└── [ 500] install_bash.sh
1 directory, 3 files