posted by 빠담아빠다 2016. 3. 10. 16:29

들어가며.

linux/unix환경에서 발견된 배시셸 버그

공백 뒤의 커맨드가 적용이 된다는 문제?


1. 체크

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


이렇게 나오면 버그가 있는 환경.

vulnerable가 출력되면 안됨, 악용요지 있음.


2.패치된 파일.

 bash-4.1.2-15.el6_5.1.x86_64.rpm

3. 다운로드 후 

 rpm -Uvh bash-4.1.2-15.el6_5.1.x86_64.rpm


4.적용후

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


* 적용 OS RHEL 6.3

* 임시로? 나온 패치 버전? 인지 확인 안됨.