본문 바로가기

TroubleShooting/Linux

bash bug 확인

728x90

Bash bug 관련해서 구글링해서 찾으면 많은 정보가 나오지만, 일단 레드햇 계열(fedora, CentOS) 은 이미 패치가 되었다고 합니다.

문제가 있는지는 다음 명령어를 root 사용자로 확인이 가능합니다.


env x='() { :;}; echo vulnerable' bash -c "echo this is a test"

vulnerable

this is a test


이렇게 두 문장이 나오면 문제가 있는 상태입니다. 


패치 방법은 bash 를 업데이트 하면 됩니다.

# yum update bash

설치한 bash 의 버전을 확인하면 됩니다.

# rpm –qa | grep bash

CentOS 6.5 : bash-4.1.2-15-el6_5.2

CentOS 5.X : bash-3.2-33.el5_10.4


출처 :

https://www.centosblog.com/criticical-bash-vulnerability-discovered-update-bash-centos-linux-server-now/

'TroubleShooting > Linux' 카테고리의 다른 글

CentOS 7 EPEL repository 설명  (0) 2014.11.24
openssl 1.0.1i 설치 on CentOS 6.5  (2) 2014.10.08
mecurial(hg) download  (0) 2014.09.19
CentOS 5.X 에서 git 설치  (0) 2014.08.14
Xen 서버에서 linux vm 시간 설정  (0) 2013.10.13