關于該漏洞
你好,一個被指比“心臟出血”還要嚴重的Linux安全漏洞被發現,那就是ShellShock: CVE-2014-6271漏洞,可以讓攻擊者遠程執行任意命令,完全控制您的服務器,比“心臟出血”更低的操作門檻,讓它比前者更加危險。下面是漏洞提示原文:
"GNU Bash through 4.3 processes trailing strings after function definitions in the values of
environment variables, which allows remote attackers to execute arbitrary code via a crafted environment,
as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, the mod_cgi
and mod_cgid modules in the Apache HTTP Server, scripts executed by unspecified DHCP clients, and
other situations in which setting the environment occurs across a privilege boundary from Bash execution."
如何驗證
$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
在終端中運行上面的命令,如果返回有vulnerable,就說明這臺服務器中槍了。
把命令中的bash替換成其他類型的shell,可以檢查機器上其他shell是否中槍。
推薦使用網站衛士修復安全問題
360網站衛士已經支持該漏洞的防護,為了您網站的安全,建議開啟360網站衛士的防護功能。
注意:由于補丁修復的不完整,導致了CVE-2014-7169的爆出,可以繞過9月25日的官方補丁,導致任意文件讀取漏洞。強烈建議在做好服務器補丁升級的同時,開啟網站衛士的防護功能。
如何修復系統Bug
* GNU官方補丁所在地址:http://secli
* 各大發行版的解決方法:
Debian:
查看 https://www.debian.org/security/2014/dsa-3032
Ubuntu:
查看 http://www.ubuntu.com/usn/usn-2362-1/
CentOS:
# yum -y update bash
Fedora:
查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6271
Redhat:
產品 | 補丁包 | 詳情 |
---|---|---|
Red Hat Enterprise Linux 7 | bash-4.2.45-5.el7_0.2 | Red Hat Enterprise Linux |
Red Hat Enterprise Linux 6 | bash-4.1.2-15.el6_5.1 | Red Hat Enterprise Linux |
bash-4.1.2-15.el6_5.1.sjis.1 | Red Hat Enterprise Linux | |
bash-4.1.2-9.el6_2.1 | Red Hat Enterprise Linux 6.2 AUS | |
bash-4.1.2-15.el6_4.1 | Red Hat Enterprise Linux 6.4 EUS | |
Red Hat Enterprise Linux 5 | bash-3.2-33.el5.1 | Red Hat Enterprise Linux |
bash-3.2-33.el5_11.1.sjis.1 | Red Hat Enterprise Linux | |
bash-3.2-24.el5_6.1 | Red Hat Enterprise Linux 5.6 LL | |
bash-3.2-32.el5_9.2 | Red Hat Enterprise Linux 5.9 EUS | |
Red Hat Enterprise Linux 4 | bash-3.0-27.el4.2 | Red Hat Enterprise Linux 4 ELS |
Novel/SuSE:
查看 http://support.novell.com/security/cve/CVE-2014-6271.html
* 其他發行版也可以參照上面的方法自行編譯,或者通過發行版內置的包管理器來更新bash。