🇰🇷 한글 설명
GRBoard 1.8에서 register_globals가 활성화되고 magic_quotes_gpc가 비활성화된 환경에서 발생하는 원격 파일 포함(RFI) 취약점입니다. 공격자가 theme, path, grboard 파라미터를 통해 악의적인 PHP 파일을 로드하여 임의의 PHP 코드를 실행할 수 있습니다.
💡 쉬운 설명
GRBoard 게시판 소프트웨어의 여러 페이지에서 외부 파일을 로드할 때 입력값을 제대로 검증하지 않습니다. 공격자가 악성 PHP 파일 주소를 매개변수로 전달하면 서버가 이를 실행해줍니다.
🇺🇸 원문 (English)
Multiple PHP remote file inclusion vulnerabilities in GRBoard 1.8, when register_globals is enabled and magic_quotes_gpc is disabled, allow remote attackers to execute arbitrary PHP code via a URL in the (1) theme parameter to (a) 179_squarebox_pds_list/view.php, (b) 179_squarebox_minishop_expand/view.php, (c) 179_squarebox_gallery_list_pds/view.php, (d) 179_squarebox_gallery_list/view.php, (e) 179_squarebox_gallery/view.php, (f) 179_squarebox_board_swfupload/view.php, (g) 179_squarebox_board_expand/view.php, (h) 179_squarebox_board_basic_with_grcode/view.php, (i) 179_squarebox_board_basic/view.php, (j) 179_simplebar_pds_list/view.php, (k) 179_simplebar_notice/view.php, (l) 179_simplebar_gallery_list_pds/view.php, (m) 179_simplebar_gallery/view.php, and (n) 179_simplebar_basic/view.php in theme/; the (2) path parameter to (o) latest/sirini_gallery_latest/list.php; and the (3) grboard parameter to (p) include.php and (q) form_mail.php.
📍 영향받는 시스템
GRBoard 1.8 (register_globals 활성화, magic_quotes_gpc 비활성화된 PHP 환경)
⚔️ 공격 벡터
HTTP GET/POST 요청을 통해 theme, path, grboard 파라미터에 원격 PHP 파일 URL을 삽입하여 원격 코드 실행
🛡️ 대응 방법
GRBoard를 최신 버전으로 업그레이드하고, PHP 설정에서 register_globals를 비활성화하며, magic_quotes_gpc를 활성화하고, 모든 파라미터에 대한 입력값 검증 추가
🔧 검증 코드
파일 경로가 출력되면 GRBoard가 설치되어 있으므로 버전 확인 후 1.8 버전인지 확인하고 패치 필요. 결과가 없으면 GRBoard가 설치되어 있지 않음.
find /var/www* -type f -name 'include.php' -path '*/grboard/*' 2>/dev/null | head -1