🇰🇷 한글 설명
PHP 4.3.x 버전의 php_check_safe_mode_include_dir 함수에서 safe_mode_include_dir이 설정되지 않았을 때 실패 대신 성공 값을 반환하는 취약점으로, 원격 공격자가 파일 포함 취약점을 악용하여 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
PHP의 파일 보안 검사가 제대로 작동하지 않아 공격자가 원격에서 악의적인 파일을 실행시킬 수 있습니다. PHP 4.3 버전 사용자가 반드시 업데이트해야 합니다.
🇺🇸 원문 (English)
The php_check_safe_mode_include_dir function in fopen_wrappers.c of PHP 4.3.x returns a success value (0) when the safe_mode_include_dir variable is not specified in configuration, which differs from the previous failure value and may allow remote attackers to exploit file include vulnerabilities in PHP applications.
📍 영향받는 시스템
PHP 4.3.0 ~ 4.3.x 버전
⚔️ 공격 벡터
원격 공격자가 HTTP 요청을 통해 PHP 애플리케이션의 include/require 함수에 악의적인 파일 경로를 전달하여 임의 코드 실행
🛡️ 대응 방법
PHP를 4.3.x 이후 버전(4.4.0+)으로 즉시 업그레이드 또는 safe_mode 활성화 및 safe_mode_include_dir 명시적 설정
🔧 검증 코드
PHP 버전이 4.3.x로 표시되면 취약하며, 4.4.0 이상으로 업그레이드 필요합니다.
php -v | grep -oE 'PHP [0-9]+\.[0-9]+\.[0-9]+'