🇰🇷 한글 설명
register_globals가 활성화된 Docmint 2.0 이전 버전의 engine/require.php에서 MY_ENV[BASE_ENGINE_LOC] 매개변수를 통해 원격 파일을 포함할 수 있는 취약점입니다. 공격자는 임의의 PHP 코드를 원격으로 실행할 수 있습니다.
💡 쉬운 설명
Docmint 웹 애플리케이션이 사용자가 제공한 파일 경로를 검증하지 않고 그대로 실행합니다. 공격자는 악의적인 PHP 코드를 포함한 원격 파일의 URL을 입력하여 서버에서 해당 코드를 실행시킬 수 있습니다.
🇺🇸 원문 (English)
PHP remote file inclusion vulnerability in engine/require.php in Docmint 2.0 and earlier, when register_globals is enabled, allows remote attackers to execute arbitrary PHP code via a URL in the MY_ENV[BASE_ENGINE_LOC] parameter.
📍 영향받는 시스템
Docmint 2.0 및 그 이전 버전 (register_globals 활성화 시)
⚔️ 공격 벡터
HTTP 요청의 MY_ENV[BASE_ENGINE_LOC] 파라미터에 원격 PHP 파일 URL 전달
🛡️ 대응 방법
Docmint를 최신 버전으로 업그레이드 또는 PHP register_globals 비활성화 및 입력값 검증 추가
🔧 검증 코드
'Docmint found' 출력 시 영향받는 버전 존재 가능성, 파일 확인 후 register_globals 설정 및 입력값 검증 상태 확인 필요
find / -name 'engine' -type d 2>/dev/null | xargs -I {} test -f {}/require.php && echo 'Docmint found' || echo 'Not found'