🇰🇷 한글 설명
PHP 5.2.0 및 5.2.1의 세션 확장에서 발생하는 Double free 취약점으로, 세션 식별자에 불법 문자를 포함시켜 메모리 관리 오류를 유발할 수 있습니다. 메모리 제한 위반이나 특정 PHP 오류를 통해 임의의 코드 실행이 가능합니다.
💡 쉬운 설명
PHP의 세션 처리 부분에서 메모리를 두 번 해제하는 버그가 있어서, 특별한 세션 ID를 보내면 서버가 원하지 않는 코드를 실행하게 할 수 있습니다. 이는 PHP 5.2.0과 5.2.1 버전에만 영향을 줍니다.
🇺🇸 원문 (English)
Double free vulnerability in the session extension in PHP 5.2.0 and 5.2.1 allows context-dependent attackers to execute arbitrary code via illegal characters in a session identifier, which is rejected by an internal session storage module, which calls the session identifier generator with an improper environment, leading to code execution when the generator is interrupted, as demonstrated by triggering a memory limit violation or certain PHP errors.
📍 영향받는 시스템
PHP 5.2.0, 5.2.1
⚔️ 공격 벡터
세션 식별자에 불법 문자를 포함하여 요청하거나, 메모리 제한 위반을 유발하는 PHP 오류를 트리거하여 공격
🛡️ 대응 방법
PHP를 5.2.2 이상으로 업그레이드하거나 공식 보안 패치 적용
🔧 검증 코드
PHP 버전이 5.2.0 또는 5.2.1이면 취약함; 5.2.2 이상이면 안전함.
php -v 2>/dev/null | grep -oE 'PHP [0-9]+\.[0-9]+\.[0-9]+'