🇰🇷 한글 설명
GNU Bash 4.3 이하에서 환경변수의 잘못된 함수 정의 뒤 문자열을 실행하여 임의 코드 실행을 허용하는 Shellshock 취약점. OpenSSH, Apache, DHCP 등에서 권한 경계를 넘어 환경변수 설정 시 악용 가능.
💡 쉬운 설명
공격자가 특별한 환경변수를 만들어 Bash를 속여 자신의 명령어를 실행시킬 수 있습니다. 웹서버나 SSH같은 서비스를 통해 침투하면 시스템 전체를 제어당할 수 있습니다.
🇺🇸 원문 (English)
GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of environment variables, which allows remote attackers to write to files or possibly have unknown other impact 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. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-6271.
📍 영향받는 시스템
GNU Bash 4.3 이하 (bash43-025 포함) 및 모든 Linux 배포판 (RHEL, Ubuntu, Debian, CentOS 등)
⚔️ 공격 벡터
환경변수를 통한 malformed function definition 주입 (mod_cgi, OpenSSH sshd, DHCP client, CGI 스크립트)
🛡️ 대응 방법
Bash를 최신 버전으로 업그레이드 (4.3-026 이상) 또는 공식 보안 패치 적용
🔧 검증 코드
VULNERABLE 출력 = 취약 상태 (CVE-2014-7169 영향), PATCHED 출력 = 패치됨
bash -c 'f(){ :;}; f (){echo vulnerable;}; f' 2>&1 | grep -q vulnerable && echo VULNERABLE || echo PATCHED