Engineering/Linux

bash bug 확인

부스 boos 2014. 9. 29. 21:12
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/