🇰🇷 한글 설명
PHP 5.2.0-5.2.13, 5.3.0-5.3.2 버전의 strip_tags, setcookie, strtok, wordwrap, str_word_count, str_pad 함수들이 call time pass by reference 기능과 관련된 취약점을 가지고 있습니다. 공격자는 함수 실행을 의도적으로 중단시켜 메모리의 민감한 정보를 노출시킬 수 있습니다.
💡 쉬운 설명
PHP 프로그램이 특정 함수를 사용할 때, 공격자가 이를 중단시켜 서버 메모리의 비밀정보를 읽을 수 있습니다. 비밀번호, 토큰, 개인정보 등이 유출될 위험이 있습니다.
🇺🇸 원문 (English)
The (1) strip_tags, (2) setcookie, (3) strtok, (4) wordwrap, (5) str_word_count, and (6) str_pad functions in PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 allow context-dependent attackers to obtain sensitive information (memory contents) by causing a userspace interruption of an internal function, related to the call time pass by reference feature.
📍 영향받는 시스템
PHP 5.2.0-5.2.13, PHP 5.3.0-5.3.2
⚔️ 공격 벡터
Call time pass by reference를 이용한 사용자 정의 함수 중단으로 메모리 내용 노출
🛡️ 대응 방법
PHP 5.2.14 이상 또는 PHP 5.3.3 이상으로 즉시 업그레이드
🔧 검증 코드
출력된 PHP 버전이 5.2.14 미만 또는 5.3.3 미만이면 취약; 5.2.14+ 또는 5.3.3+이면 안전
php -v | grep -oP 'PHP \K[0-9]+\.[0-9]+\.[0-9]+'