env x='() { :;}; echo vulnerable' bash -c "echo this is a test"复制代码 回车 如果输出
vulnerable this is a test复制代码 那么就必须修复(不用试了!没更新全部中招!) 使用修补方案修复后输出
bash: warning: x: ignoring function definition attempt bash: error importing function definition for `x' this is a test【建议修补方案 】 请您根据Linux版本选择您需要修复的命令, 为了防止意外情况发生,建议您执行命令前先对Linux服务器系统盘打个快照,如果万一出现升级影响您服务器使用情况,可以通过回滚系统盘快照解决。 Centos: yum -y update bash 如果yum无更新,请添加源!有些源还没有及时更新! ubuntu: 14.04 64bit wget http://mirrors.aliyun.com/fix_stuff/bash_4.3-7ubuntu1.1_amd64.deb && dpkg -i bash_4.3-7ubuntu1.1_amd64.deb 14.04 32bit wget http://mirrors.aliyun.com/fix_stuff/bash_4.3-7ubuntu1.1_i386.deb && dpkg -i bash_4.3-7ubuntu1.1_i386.deb 12.04 64bit wget http://mirrors.aliyun.com/fix_stuff/bash_4.2-2ubuntu2.2_amd64.deb && dpkg -i bash_4.2-2ubuntu2.2_amd64.deb 12.04 32bit wget http://mirrors.aliyun.com/fix_stuff/bash_4.2-2ubuntu2.2_i386.deb && dpkg -i bash_4.2-2ubuntu2.2_i386.deb 10.10 64bit wget http://mirrors.aliyun.com/fix_stuff/bash_4.1-2ubuntu3.1_amd64.deb && dpkg -i bash_4.1-2ubuntu3.1_amd64.deb 10.10 32bit wget http://mirrors.aliyun.com/fix_stuff/bash_4.1-2ubuntu3.1_i386.deb && dpkg -i bash_4.1-2ubuntu3.1_i386.deb debian: 7.5 64bit && 32bit apt-get -y install --only-upgrade bash 6.0.x 64bit wget http://mirrors.aliyun.com/debian ... %2bdeb6u1_amd64.deb && dpkg -i bash_4.1-3+deb6u1_amd64.deb 6.0.x 32bit wget http://mirrors.aliyun.com/debian ... 3%2bdeb6u1_i386.deb && dpkg -i bash_4.1-3+deb6u1_i386.deb opensuse: 13.1 64bit wget http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.x86_64.rpm && rpm -Uvh bash-4.2-68.4.1.x86_64.rpm 13.1 32bit wget http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.i586.rpm && rpm -Uvh bash-4.2-68.4.1.i586.rpm aliyun linux: 5.x 64bit wget http://mirrors.aliyun.com/centos ... 33.el5.1.x86_64.rpm && rpm -Uvh bash-3.2-33.el5.1.x86_64.rpm 5.x 32bit wget http://mirrors.aliyun.com/centos ... 2-33.el5.1.i386.rpm && rpm -Uvh bash-3.2-33.el5.1.i386.rpm
这家伙很懒,还没有设置简介