VERIFICARE CHE IL NOSTRO SISTEMA È INFETTO DA SHELLSHOCK
Possiamo inoltre verificare con estrema facilità se il nostro sistema operativo o meno è “infetto” da Shellshock.
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
se avremo come risultato:
vulnerable this is a test
vuol dire che nel nostro sistema è presente il bug Shellshock in bash
se invece abbiamo come risultato
this is a test
possiamo star tranquilli.
Per risolvere il problema basta semplicemente aggiornare Bash digitando da terminale:
Per Debian, Ubuntu e derivate:
sudo apt-get update sudo apt-get install bash
Per Fedora, CentOS, Red Hat e derivate:
sudo yum install bash
Per openSUSE e derivate:
sudo zypper install bash
Per Arch Linux e derivate, Chakra, Manjaro ecc:
sudo pacman -Sy bash
Al termine basta riavviare la verifica, ed ecco risolto il problema Shellshock.