How to patch bash for shell shock
Posted: Fri Sep 26, 2014 2:35 pm
The Bash vulnerability, now dubbed by some as "Shellshock," has been reportedly found in use by an active exploit against Web servers.
Because of its wide distribution, the vulnerability could be as wide-ranging as the Heartbleed bug, though it may not be nearly as dangerous. The vulnerability affects versions 1.14 through 4.3 of GNU Bash.
Patch your system
For CentOS, Fedora, Red Hat (and the like) users, just type this to update it (yes, theres already a patch, and youll be patched up in about 10 seconds)
For Debian, Ubuntu (and the like) users, type this to update bash:
(This will update the list of packages, then install the latest bash)
Test your system
To test your system, log into your bash shell and type:
(from shellshocker.net)
If you see vulnerable afterwards, you havent patched it.
If you see this is a test, youre patched.
Because of its wide distribution, the vulnerability could be as wide-ranging as the Heartbleed bug, though it may not be nearly as dangerous. The vulnerability affects versions 1.14 through 4.3 of GNU Bash.
Patch your system
For CentOS, Fedora, Red Hat (and the like) users, just type this to update it (yes, theres already a patch, and youll be patched up in about 10 seconds)
Code: Select all
yum -y update bash
Code: Select all
sudo apt-get update && sudo apt-get install --only-upgrade bash
Test your system
To test your system, log into your bash shell and type:
Code: Select all
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
If you see vulnerable afterwards, you havent patched it.
If you see this is a test, youre patched.