centoslarda bazen yum update işe yaramıyor elle yapmak daha garanti.
ssh de
vulnerable görürseniz tehlikedesiniz.
env x='() { :;}; echo vulnerable' bash -c "echo patched"id karşısında değer görürseniz tehlikedesiniz.
rm -f echo && env -i X='() { (a)=>\' bash -c 'echo id'; cat echofixlemek için sırayla aşağıdaki kodları ssh de girin. for daki tırnaklara dikkat.
mkdir src
cd src
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
#download all patches
for i in $(seq -f "%03g" 0 26); do wget http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-$i; done
tar zxvf bash-4.3.tar.gz
cd bash-4.3
#apply all patches
for i in $(seq -f "%03g" 0 26);do patch -p0 < ../bash43-$i; done
#build and install
./configure && make && make install
cd ..
cd ..
rm -rf src
reboot etmeyi unutmayın.
verdiğiniz kodlarda patched ve id yazıyor sadece CentOS-6.5 ve bash verisyonu bash-4.1.2-15.el6_5.2.x86_64