🇰🇷 한글 설명
PHP 4.3.9의 addslashes 함수가 NULL(\0) 문자를 적절히 이스케이프하지 못하는 취약점입니다. 이로 인해 magic_quotes_gpc 메커니즘으로 보호되는 PHP 애플리케이션에서 require 또는 include 문에 디렉토리 트래버설 취약점이 있을 경우, 원격 공격자가 임의의 파일을 읽을 수 있습니다.
💡 쉬운 설명
보안을 위해 특수 문자를 처리하는 기능에 빈틈이 있어 이를 우회하는 취약점입니다. 공격자가 이 틈을 이용해 서버에 저장된 민감한 파일을 몰래 훔쳐볼 수 있습니다.
🇺🇸 원문 (English)
The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may allow remote attackers to read arbitrary files in PHP applications that contain a directory traversal vulnerability in require or include statements, but are otherwise protected by the magic_quotes_gpc mechanism. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.
📍 영향받는 시스템
PHP 4.3.9 및 해당 기능이 포함된 이전 버전
⚔️ 공격 벡터
NULL 바이트 주입을 통한 보안 필터 우회 및 디렉토리 트래버설 공격
🛡️ 대응 방법
PHP를 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
명령어 실행 결과 PHP 4.3.x 버전이 출력되면 해당 취약점에 노출되었을 가능성이 큽니다.
php -v | grep -E '4\.3\.[0-9]'