探索,發現,愛好、學習,記錄,分享。
學海無涯,天涯若比鄰,三人行,必有我師。

Linux存在嚴重的安全性漏洞“Bash”

5423cc86ddc66.jpg

Red Hat安全團隊在 Linux 中廣泛使用的Bash shell中發現了一個隱晦而危險的安全性漏洞,該漏洞被稱為「Bash Bug」或「Shellshock」。
該漏洞源于你調用的bash shell之前創建的特殊的環境變數,這些變數可以包含代碼,同時會被bash執行。
當使用者正常訪問時,該漏洞允許攻擊者的代碼像在Shell中一樣執行,這樣就為各種各樣的攻擊打開了方便之門。
其嚴重性要超過之前的「OpenSSL 心臟出血」漏洞,Berkeley ICSI的研究員Nicholas Weaver也同意這個說法:「它很隱晦、很可怕,並且會伴隨我們多年。

漏洞參考:HTTPs://access.redhat.com/security/cve/CVE-2014-6271
Linux官方提供的解決辦法,針對此漏洞Linux官方解決辦法仍然有可能會被繞過,後續我們會提供較為徹底的解決辦法。

已確認被成功利用的軟體及系統:所有安裝GNU bash 版本小於或者等於4.3的Linux作業系統。

漏洞檢測命令: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

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/pool/main/b/bash/bash_4.1-3%2bdeb6u1_amd64.deb && dpkg -i bash_4.1-3+deb6u1_amd64.deb

6.0.x 32bit
wget HTTP://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-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/5/updates/x86_64/RPMS/bash-3.2-33.el5.1.x86_64.rpm && rpm -Uvh bash-3.2-33.el5.1.x86_64.rpm

5.x 32 位
wget HTTP://mirrors.aliyun.com/centos/5/updates/i386/RPMS/bash-3.2-33.el5.1.i386.rpm && rpm-Uvh bash-3.2-33.el5.1.i386.rpm

版權聲明:本文采用知識共享 署名4.0國際許可協議 [BY-NC-SA] 進行授權
轉載事宜:如需轉載需徵得應允,轉載必須注明來源於本站的信息。
文章名称:《Linux存在嚴重的安全性漏洞“Bash”》
文章链接:https://www.thefreesky.com/blog/12295.html
本站資源僅供個人學習交流,請於下載後24小時內刪除,不允許用於商業用途,否則法律問題自行承擔。

評論 抢沙发