🇰🇷 한글 설명
Gallery 1.4 및 1.4-pl1의 index.php에서 GALLERY_BASEDIR 매개변수를 통한 원격 파일 포함(RFI) 취약점이 발생합니다. 공격자는 이를 이용해 임의의 PHP 코드를 주입 및 실행할 수 있으며, 설치 중이거나 설치 후 보안 스크립트를 실행하지 않은 경우에만 악용 가능합니다.
💡 쉬운 설명
Gallery 사진 관리 프로그램의 설정 파라미터가 검증되지 않아 공격자가 외부 코드를 실행시킬 수 있습니다. 이는 설치 직후나 보안 설정이 완료되지 않은 상태에서만 악용 가능합니다.
🇺🇸 원문 (English)
PHP remote file include vulnerability in index.php for Gallery 1.4 and 1.4-pl1, when running on Windows or in Configuration mode on Unix, allows remote attackers to inject arbitrary PHP code via a URL in the GALLERY_BASEDIR parameter, a different vulnerability than CVE-2002-1412. NOTE: this issue might be exploitable only during installation, or if the administrator has not run a security script after installation.
📍 영향받는 시스템
Gallery 1.4, 1.4-pl1 (Windows 또는 Unix Configuration mode 실행 중)
⚔️ 공격 벡터
GALLERY_BASEDIR 파라미터에 원격 PHP 파일 URL을 전달하여 임의 코드 실행 유도
🛡️ 대응 방법
Gallery를 최신 버전으로 업그레이드 및 설치 후 보안 스크립트 실행, Configuration mode 비활성화
🔧 검증 코드
Gallery 1.4/1.4-pl1의 index.php가 발견되고 GALLERY_BASEDIR 변수를 포함하면 취약한 버전이 설치된 것입니다.
find / -name 'index.php' -path '*gallery*' 2>/dev/null | xargs grep -l 'GALLERY_BASEDIR' 2>/dev/null | head -1