🇰🇷 한글 설명
PHP의 Phar 확장 모듈에서 파일 포인터 유효성 검사가 누락되어 있는 취약점입니다. 악의적인 TAR 아카이브를 통해 Phar::convertToData 함수 호출 시 세그먼테이션 폴트를 유발하거나 임의의 코드 실행이 가능할 수 있습니다.
💡 쉬운 설명
PHP에서 압축 파일(Phar/TAR)을 변환할 때 잘못된 파일을 안전하게 처리하지 못합니다. 공격자가 특수하게 만든 압축 파일을 업로드하면 웹 서버가 충돌할 수 있습니다.
🇺🇸 원문 (English)
The phar_convert_to_other function in ext/phar/phar_object.c in PHP before 5.4.43, 5.5.x before 5.5.27, and 5.6.x before 5.6.11 does not validate a file pointer before a close operation, which allows remote attackers to cause a denial of service (segmentation fault) or possibly have unspecified other impact via a crafted TAR archive that is mishandled in a Phar::convertToData call.
📍 영향받는 시스템
PHP 5.4.43 미만, 5.5.27 미만, 5.6.11 미만 버전
⚔️ 공격 벡터
원격 공격자가 악의적인 TAR 아카이브를 Phar::convertToData()에 제공하여 DoS 또는 임의 실행 유발
🛡️ 대응 방법
PHP를 5.4.43, 5.5.27, 5.6.11 이상으로 업그레이드하거나 ext/phar 모듈 비활성화
🔧 검증 코드
현재 PHP 버전이 5.4.43 미만, 5.5.x는 5.5.27 미만, 5.6.x는 5.6.11 미만이면 취약함
php -v | grep -oE 'PHP [0-9]+\.[0-9]+\.[0-9]+'