🇰🇷 한글 설명
GNU Bash 4.3 이하에서 환경 변수의 함수 정의 뒤에 오는 악의적인 코드를 실행하는 취약점입니다. 원격 공격자가 특수하게 조작된 환경 변수를 통해 임의의 코드를 실행할 수 있으며, SSH, Apache CGI, DHCP 클라이언트 등 다양한 서비스에 영향을 미칩니다.
💡 쉬운 설명
Bash 쉘에서 환경 설정을 통해 공격자가 원하는 명령어를 자동으로 실행하게 할 수 있는 심각한 버그입니다. 웹 서버, SSH 접속 등 원격으로 접근 가능한 서비스를 통해 시스템이 해킹될 수 있습니다.
🇺🇸 원문 (English)
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, aka "ShellShock." NOTE: the original fix for this issue was incorrect; CVE-2014-7169 has been assigned to cover the vulnerability that is still present after the incorrect fix.
📍 영향받는 시스템
GNU Bash 4.3 이하의 모든 버전 (RHEL, CentOS, Ubuntu, Debian 등 Linux 배포판)
⚔️ 공격 벡터
환경 변수에 함수 정의 후 코드 삽입 (예: () { :; }; malicious_command) 후 Bash 실행
🛡️ 대응 방법
GNU Bash를 4.4 이상으로 업그레이드 또는 배포판 패치 적용 (bash 패키지 업데이트)
🔧 검증 코드
Bash 버전이 4.4 이상인지 확인하세요. 4.3 이하면 취약합니다.
bash --version | head -n1