🇰🇷 한글 설명
PHP의 phar_rename_archive 함수에서 발생하는 메모리 해제 후 사용(Use-after-free) 취약점으로, Phar 아카이브 이름을 기존 파일 이름으로 변경할 때 발생합니다. 원격 공격자가 악용하여 서비스 거부 또는 시스템 손상을 야기할 수 있습니다.
💡 쉬운 설명
PHP 파일 압축 기능에서 메모리 관리 오류가 발생합니다. 공격자가 특정 요청을 보내면 웹서버를 마비시키거나 제어할 수 있습니다.
🇺🇸 원문 (English)
Use-after-free vulnerability in the phar_rename_archive function in phar_object.c in PHP before 5.5.22 and 5.6.x before 5.6.6 allows remote attackers to cause a denial of service or possibly have unspecified other impact via vectors that trigger an attempted renaming of a Phar archive to the name of an existing file.
📍 영향받는 시스템
PHP 5.5.22 이전, PHP 5.6.0~5.6.5
⚔️ 공격 벡터
Phar 아카이브를 기존 파일 이름으로 변경하는 원격 요청
🛡️ 대응 방법
PHP를 5.5.22 이상 또는 5.6.6 이상으로 업그레이드
🔧 검증 코드
PHP 버전이 5.5.22 이상(5.5.x) 또는 5.6.6 이상(5.6.x)이면 안전. 취약 버전이면 업그레이드 필요
php -v | grep -oP 'PHP \K[0-9]+\.[0-9]+\.[0-9]+'