🇰🇷 한글 설명
PHP 4.4.3 이전 및 5.1.4 이전 버전에서 세션 식별자(PHPSESSID)의 문자 집합을 제한하지 않아, 공격자가 악의적인 PHP 코드를 세션 파일에 삽입할 수 있습니다. 이는 제3자 세션 핸들러의 설계 한계로 인해 다른 취약점 악용이 용이해집니다.
💡 쉬운 설명
PHP 세션 저장 파일에 공격자가 악의적인 코드를 몰래 주입할 수 있는 문제입니다. 이를 통해 서버를 제어하거나 데이터를 탈취할 수 있습니다.
🇺🇸 원문 (English)
PHP before 4.4.3 and 5.x before 5.1.4 does not limit the character set of the session identifier (PHPSESSID) for third party session handlers, which might make it easier for remote attackers to exploit other vulnerabilities by inserting PHP code into the PHPSESSID, which is stored in the session file. NOTE: it could be argued that this not a vulnerability in PHP itself, rather a design limitation that enables certain attacks against session handlers that do not account for this limitation.
📍 영향받는 시스템
PHP 4.4.3 미만, PHP 5.0.0 ~ 5.1.3
⚔️ 공격 벡터
원격 공격자가 조작된 PHPSESSID를 이용해 PHP 코드를 세션 파일에 저장시키고 실행 유발
🛡️ 대응 방법
PHP를 4.4.3 이상 또는 5.1.4 이상으로 업데이트
🔧 검증 코드
출력된 PHP 버전이 4.4.3 미만 또는 5.0.x~5.1.3 범위면 취약, 4.4.3+ 또는 5.1.4+ 이면 안전합니다.
php -v 2>/dev/null | head -1