🇰🇷 한글 설명
MAXdev MDForum 2.0.1 이하의 search_mdforum.php에서 magic_quotes_gpc 비활성화 및 register_globals 활성화 상태에서, PNSVlang 쿠키의 디렉토리 트래버설(../)을 통해 임의의 로컬 파일을 포함/실행할 수 있습니다. 공격자는 Apache 로그에 PHP 코드를 주입한 후 error.php를 통해 실행할 수 있습니다.
💡 쉬운 설명
오래된 웹 포럼 프로그램의 설정 오류로 쿠키 값 조작을 통해 서버의 임의 파일을 실행시킬 수 있습니다. 공격자가 웹 로그에 악성 코드를 주입하고 강제로 실행하게 할 수 있습니다.
🇺🇸 원문 (English)
Directory traversal vulnerability in includes/search/search_mdforum.php in MAXdev MDForum 2.0.1 and earlier, when magic_quotes_gpc is disabled and register_globals is enabled, allows remote attackers to include and execute arbitrary local files via a .. (dot dot) in the PNSVlang cookie to error.php, as demonstrated by injecting PHP sequences into an Apache HTTP Server log file, which is then included by error.php.
📍 영향받는 시스템
MAXdev MDForum 2.0.1 이하 (register_globals 활성, magic_quotes_gpc 비활성 설정)
⚔️ 공격 벡터
PNSVlang 쿠키에 ../ 시퀀스를 삽입하여 Apache 로그 파일의 악성 PHP 코드 실행
🛡️ 대응 방법
MDForum을 최신 버전으로 업그레이드하고, PHP register_globals를 비활성화하며, 웹서버 로그 파일 접근 제한 설정
🔧 검증 코드
search_mdforum.php 파일 존재 여부 확인 및 PHP 설정에서 register_globals 활성화 여부를 확인합니다. 파일이 없거나 register_globals가 비활성화되어 있으면 안전합니다.
find /var/www -name search_mdforum.php 2>/dev/null && php -i | grep -E 'register_globals|magic_quotes_gpc'