🇰🇷 한글 설명
PHP 5.3.4 이전의 Iconv extension에서 이메일 헤더의 인코딩된 문자를 디코딩할 때, iconv와 mbstring이 인식하지 못하는 인코딩(예: ks_c_5601-1987)을 제대로 처리하지 못해 불완전한 배열을 반환한다. 이를 악용하면 스팸 필터 우회나 예상치 못한 동작을 유발할 수 있다.
💡 쉬운 설명
이메일 헤더를 읽는 PHP 기능이 특정 문자 형식을 처리하지 못해 버그가 발생한다. 이를 악용하면 스팸 필터를 우회하거나 시스템에 문제를 일으킬 수 있다.
🇺🇸 원문 (English)
The iconv_mime_decode_headers function in the Iconv extension in PHP before 5.3.4 does not properly handle encodings that are unrecognized by the iconv and mbstring (aka Multibyte String) implementations, which allows remote attackers to trigger an incomplete output array, and possibly bypass spam detection or have unspecified other impact, via a crafted Subject header in an e-mail message, as demonstrated by the ks_c_5601-1987 character set.
📍 영향받는 시스템
PHP 5.3.4 이전 버전 (Iconv extension 포함)
⚔️ 공격 벡터
ks_c_5601-1987 인코딩으로 제작된 특별한 Subject 헤더를 포함한 이메일 전송
🛡️ 대응 방법
PHP를 5.3.4 이상으로 즉시 업그레이드
🔧 검증 코드
설치된 PHP 버전 확인. 5.3.4 미만이면 취약 상태
php -v | grep -oP 'PHP \K[0-9.]+'