🔍 CVE-2006-1014

3.2
CVSS Score
LOW
2006-03-07
2026-04-16 00:27
✅ 완료

🇰🇷 한글 설명

PHP 4.x 및 5.x의 mb_send_mail 함수에서 원격 입력을 additional_parameters로 받을 때 sendmail과 함께 사용되는 경우, 공격자가 -C와 -X 인수를 제공하여 임의의 파일을 읽거나 생성할 수 있는 인수 주입 취약점입니다.

💡 쉬운 설명

PHP 이메일 전송 함수가 사용자 입력을 충분히 검증하지 않아, 공격자가 특수 명령어를 추가로 전달하여 서버 파일을 읽거나 생성할 수 있습니다. 민감한 정보 탈취나 시스템 손상으로 이어질 수 있습니다.

🇺🇸 원문 (English)

Argument injection vulnerability in certain PHP 4.x and 5.x applications, when used with sendmail and when accepting remote input for the additional_parameters argument to the mb_send_mail function, allows context-dependent attackers to read and create arbitrary files by providing extra -C and -X arguments to sendmail. NOTE: it could be argued that this is a class of technology-specific vulnerability, instead of a particular instance; if so, then this should not be included in CVE.

📍 영향받는 시스템

PHP 4.x, 5.0-5.2 버전 (sendmail과 함께 mb_send_mail 함수를 사용하는 환경)

⚔️ 공격 벡터

mb_send_mail의 additional_parameters 인수에 unvalidated 사용자 입력을 포함시켜 sendmail -C, -X 옵션 주입

🛡️ 대응 방법

PHP 5.3.4 이상으로 업그레이드하거나, additional_parameters 입력값을 escapeshellarg()로 필터링

🔧 검증 코드

명령어가 'Vulnerable'을 출력하면 취약 버전, 'Not vulnerable'을 출력하면 패치됨

Shell / Script
php -v | grep -oE 'PHP (4\.|5\.[0-2])' && echo 'Vulnerable' || echo 'Not vulnerable'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP