🇰🇷 한글 설명
PHP 3.x, 4.x, 5.x 버전의 특정 애플리케이션에서 mail 함수의 추가 매개변수에 외부 입력값을 그대로 사용할 때 발생하는 인자 주입 취약점입니다. 공격자는 sendmail의 -C 및 -X 옵션을 악용하여 서버 내 임의의 파일을 읽거나 생성할 수 있습니다.
💡 쉬운 설명
이메일 발송 기능에 특수한 명령어를 몰래 끼워 넣어 서버를 조종하는 취약점입니다. 이를 통해 해커가 서버의 비밀 파일을 읽거나 새로운 파일을 만들 수 있습니다.
🇺🇸 원문 (English)
Argument injection vulnerability in certain PHP 3.x, 4.x, and 5.x applications, when used with sendmail and when accepting remote input for the additional_parameters argument to the mail function, allows remote attackers to read and create arbitrary files via the sendmail -C and -X arguments. 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 3.x, 4.x, 5.x 및 sendmail을 함께 사용하는 환경
⚔️ 공격 벡터
mail() 함수의 additional_parameters 인자를 통한 원격 인자 주입(Argument Injection)
🛡️ 대응 방법
사용자 입력값에 대한 엄격한 필터링 및 검증을 적용하고, 최신 버전의 PHP로 업데이트하십시오.
🔧 검증 코드
명령어 실행 결과 PHP 3, 4, 5 버전 중 하나가 출력되면 해당 환경은 잠재적으로 취약합니다.
php -v 2>/dev/null | grep -E 'PHP (3\.|4\.|5\.)'