🔍 CVE-2007-3378

6.8
CVSS Score
MEDIUM
2007-06-29
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

PHP 4.4.7 이하 및 5.2.3 이하에서 .htaccess 파일의 php_value, php_flag 지시문을 이용해 safe_mode와 open_basedir 보안 제한을 우회할 수 있는 취약점입니다. 공격자는 session_save_path, ini_set, error_log 함수를 조작하여 임의 명령을 실행할 수 있습니다.

💡 쉬운 설명

웹 서버 설정 파일(.htaccess)을 통해 PHP의 보안 제한을 무시하고 공격자가 원하는 명령을 실행할 수 있습니다. 공유 호스팅에서 특히 위험합니다.

🇺🇸 원문 (English)

The (1) session_save_path, (2) ini_set, and (3) error_log functions in PHP 4.4.7 and earlier, and PHP 5 5.2.3 and earlier, when invoked from a .htaccess file, allow remote attackers to bypass safe_mode and open_basedir restrictions and possibly execute arbitrary commands, as demonstrated using (a) php_value, (b) php_flag, and (c) directives in .htaccess.

📍 영향받는 시스템

PHP 4.4.7 이하, PHP 5.0.0 ~ 5.2.3

⚔️ 공격 벡터

.htaccess 파일에 php_value/php_flag 지시문을 추가하여 php 설정을 조작하고 safe_mode/open_basedir 제한 우회

🛡️ 대응 방법

PHP를 4.4.8+ 또는 5.2.4+ 이상으로 즉시 업그레이드

🔧 검증 코드

PHP 버전이 4.4.8 이상 또는 5.2.4 이상이면 패치됨, 그 이하면 업그레이드 필요

Shell / Script
php -v | grep -oP 'PHP \K[0-9.]+'

📊 CVSS Vector String

CVSS Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P

💻 영향받는 소프트웨어

PHP