🇰🇷 한글 설명
libtidy 라이브러리의 버퍼 오버플로우 취약점으로, PHP 5.2.3의 Tidy 확장에 영향을 미칩니다. tidy_parse_string 함수의 긴 두 번째 인수 또는 tidy_repair_string 함수를 통해 공격자가 임의 코드를 실행할 수 있습니다. vsnprintf가 vsprintf 래퍼로 구현된 환경에서만 발생할 수 있습니다.
💡 쉬운 설명
PHP의 HTML 정리 도구인 Tidy에 입력 검증 부족으로 인한 보안 결함이 있습니다. 공격자가 특별히 만든 데이터를 보내면 컴퓨터를 제어하는 악의적인 코드를 실행할 수 있습니다.
🇺🇸 원문 (English)
Multiple buffer overflows in libtidy, as used in the Tidy extension for PHP 5.2.3 and possibly other products, allow context-dependent attackers to execute arbitrary code via (1) a long second argument to the tidy_parse_string function or (2) an unspecified vector to the tidy_repair_string function. NOTE: this might only be an issue in environments where vsnprintf is implemented as a wrapper for vsprintf.
📍 영향받는 시스템
PHP 5.2.3 및 이전 버전의 Tidy 확장, libtidy 라이브러리를 사용하는 모든 제품
⚔️ 공격 벡터
tidy_parse_string() 또는 tidy_repair_string() 함수에 특정 길이의 악성 입력값을 전달하여 메모리 버퍼 오버플로우 트리거
🛡️ 대응 방법
PHP 및 libtidy를 최신 보안 패치가 적용된 버전으로 업데이트하거나 Tidy 확장 비활성화
🔧 검증 코드
Tidy 버전이 표시되지 않거나 5.2.3 이하면 취약함; 5.3.0 이상이면 패치됨
php -r "echo 'Tidy Version: ' . (extension_loaded('tidy') ? phpversion('tidy') : 'Not installed');" 2>/dev/null || dpkg -l | grep -i tidy