🇰🇷 한글 설명
GeBlog 0.1의 index.php에 존재하는 디렉토리 탐색 취약점으로, GLOBALS[tplname] 매개변수에 '..'를 입력하여 임의의 로컬 파일을 포함하고 실행할 수 있습니다. Apache 로그 파일에 PHP 코드를 주입하여 실행하는 방식으로 악용됩니다.
💡 쉬운 설명
웹사이트에서 파일을 불러올 때 경로 검증이 부족하여, 공격자가 '..'로 상위 폴더를 접근해 원하는 파일을 실행할 수 있습니다. 서버의 로그 파일에 PHP 코드를 섞어 넣어 이를 실행하는 방식입니다.
🇺🇸 원문 (English)
Directory traversal vulnerability in index.php in GeBlog 0.1 allows remote attackers to include and execute arbitrary local files via a .. (dot dot) in the GLOBALS[tplname] parameter, as demonstrated by injecting PHP sequences into an Apache HTTP Server log file, which is then included by index.php.
📍 영향받는 시스템
GeBlog 0.1 및 이전 버전
⚔️ 공격 벡터
GLOBALS[tplname] 매개변수를 통한 원격 디렉토리 탐색 공격
🛡️ 대응 방법
GeBlog를 최신 패치 버전으로 업그레이드하고, tplname 매개변수의 '..'를 필터링하며 파일 경로 검증을 강화합니다.
🔧 검증 코드
결과가 나오면 GeBlog가 설치된 경로이며, 해당 버전 확인 후 0.1 버전이면 즉시 업그레이드 필요
find /var/www -name 'index.php' -exec grep -l 'GLOBALS\[tplname\]' {} \; 2>/dev/null