CentOS Linuxでのbash脆弱性の修復チュートリアル
今日パソコンを開けると、グループの中でbashの抜け穴のことを話しているのを発見して、すぐに探して、意外にも心血の抜け穴よりも深刻であることを発見して、いいでしょう、今日またすることがあるようです。
システム:centos 5.x
1.サーバーの修復が必要かどうかを確認 コードのコピーenv x='() { :;}; echo vulnerable' bash -c "echo this is a test"
2.bashのアップグレード
コードのコピー
yum -y update bash
3.検証
コードのコピー
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
コードのコピー
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
this is a test