🇰🇷 한글 설명
PHP의 date 확장에서 'front of'와 'back of' 지시자 처리 중 메모리 범위 초과 오류가 발생합니다. 공격자가 날짜 문자열을 입력할 수 있는 경우, 이를 통해 PHP 인터프리터의 메모리 정보를 유출할 수 있습니다.
💡 쉬운 설명
PHP의 날짜 처리 기능에서 특정 단어를 포함한 문자열을 입력하면 프로그램이 허용된 범위 밖의 메모리에 접근합니다. 이를 통해 공격자가 서버의 민감한 정보를 읽을 수 있습니다.
🇺🇸 원문 (English)
In PHP before 5.6.32, 7.x before 7.0.25, and 7.1.x before 7.1.11, an error in the date extension's timelib_meridian handling of 'front of' and 'back of' directives could be used by attackers able to supply date strings to leak information from the interpreter, related to ext/date/lib/parse_date.c out-of-bounds reads affecting the php_parse_date function. NOTE: this is a different issue than CVE-2017-11145.
📍 영향받는 시스템
PHP 5.6.32 이전, 7.0.25 이전, 7.1.11 이전
⚔️ 공격 벡터
공격자가 제어 가능한 날짜 문자열을 strtotime() 같은 PHP 날짜 함수에 입력하여 메모리 정보 유출
🛡️ 대응 방법
PHP를 5.6.32 이상, 7.0.25 이상, 또는 7.1.11 이상으로 업그레이드
🔧 검증 코드
현재 PHP 버전이 5.6.32, 7.0.25, 7.1.11 이상인지 확인하여 취약한 버전이면 업그레이드 필요
php -v | grep -oP 'PHP \K[0-9]+\.[0-9]+\.[0-9]+'