🇰🇷 한글 설명
PHP의 preg_quote 함수에 메모리 접근 취약점이 존재합니다. 공격자가 함수 실행을 의도적으로 중단시키고 call-time pass-by-reference를 악용하여 ZVAL 수정을 일으키면 이미 해제된 메모리에 접근할 수 있습니다. 이를 통해 시스템 메모리의 민감한 정보를 유출할 수 있습니다.
💡 쉬운 설명
PHP 버전 5.2와 5.3의 정규표현식 함수에 버그가 있어서 이미 삭제된 메모리 내용을 읽을 수 있습니다. 공격자가 특정 방식으로 함수를 조작하면 보안 정보가 노출될 수 있습니다.
🇺🇸 원문 (English)
The preg_quote function in PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 allows context-dependent attackers to obtain sensitive information (memory contents) by causing a userspace interruption of an internal function, related to the call time pass by reference feature, modification of ZVALs whose values are not updated in the associated local variables, and access of previously-freed memory.
📍 영향받는 시스템
PHP 5.2.0-5.2.13, PHP 5.3.0-5.3.2
⚔️ 공격 벡터
preg_quote 함수의 call-time pass-by-reference 조작과 의도적 함수 중단을 통한 메모리 접근
🛡️ 대응 방법
PHP를 5.2.14 이상 또는 5.3.3 이상으로 업그레이드
🔧 검증 코드
PHP 버전이 5.2.0-5.2.13 또는 5.3.0-5.3.2 범위에 있으면 취약함
php -v 2>/dev/null | grep -E '(5\.2\.(1[0-3]|[0-9])|5\.3\.[0-2])' && echo 'Vulnerable' || echo 'Not vulnerable'