
Shell script to detect and automatically patch the Bash Shellshock vulnerability (CVE-2014-6271) on macOS systems.
An automated way to fix bash
You can determine if you are vulnerable by executing this test:
env x='() { :;}; echo vulnerable' bash -c 'echo hello'
Run this on the command line. You may be prompted to enter your password.
bash <( curl -s https://raw.githubusercontent.com/mattclegg/CVE-2014-6271/master/patch-mac.sh)