🇰🇷 한글 설명
PHP 5.3.x 버전의 phar 확장에서 stream.c의 형식 문자열 취약점으로, phar_stream_flush 함수가 악의적인 phar:// URI를 제대로 처리하지 못하여 메모리 내용 유출 또는 임의 코드 실행을 야기합니다. 이는 CVE-2010-2094의 불완전한 패치로 인해 발생했습니다.
💡 쉬운 설명
PHP의 파일 처리 기능에서 특수하게 조작된 파일 경로를 사용하면 공격자가 서버 메모리의 민감한 정보를 읽거나 서버를 제어할 수 있습니다. PHP 5.3.0~5.3.3의 오래된 버전에만 해당하는 문제입니다.
🇺🇸 원문 (English)
Format string vulnerability in stream.c in the phar extension in PHP 5.3.x through 5.3.3 allows context-dependent attackers to obtain sensitive information (memory contents) and possibly execute arbitrary code via a crafted phar:// URI that is not properly handled by the phar_stream_flush function, leading to errors in the php_stream_wrapper_log_error function. NOTE: this vulnerability exists because of an incomplete fix for CVE-2010-2094.
📍 영향받는 시스템
PHP 5.3.0 ~ 5.3.3
⚔️ 공격 벡터
악의적으로 조작된 phar:// 프로토콜 URI를 포함한 HTTP 요청
🛡️ 대응 방법
PHP를 5.3.4 이상으로 즉시 업그레이드
🔧 검증 코드
명령어가 버전을 반환하면 취약함 (업그레이드 필요); 아무것도 반환되지 않으면 안전
php -v | grep -oE 'PHP 5\.3\.[0-3]($|[^0-9])'