🇰🇷 한글 설명
Greg Neustaetter gCards 1.45 및 이전 버전의 inc/setLang.php에서 디렉토리 트래버설 취약점이 발견되었습니다. 공격자는 lang[*][file] 파라미터에 경로 조작 시퀀스를 삽입하여 서버 내의 임의 파일을 포함하고 실행할 수 있으며, 특히 Apache 액세스 로그에 PHP 코드를 주입한 뒤 이를 실행시키는 공격이 가능합니다.
💡 쉬운 설명
웹사이트의 주소창이나 입력창에 특수 문자를 넣어 서버 내부의 비밀 파일을 훔쳐보거나 악성 코드를 실행시키는 취약점입니다. 해커가 서버의 관리자 권한을 얻을 수 있는 위험한 문제입니다.
🇺🇸 원문 (English)
Directory traversal vulnerability in inc/setLang.php in Greg Neustaetter gCards 1.45 and earlier allows remote attackers to include and execute arbitrary local files via directory traversal sequences in a lang[*][file] parameter, as demonstrated by injecting PHP sequences into an Apache access_log file, which is then included by index.php.
📍 영향받는 시스템
Greg Neustaetter gCards 1.45 및 이전 버전
⚔️ 공격 벡터
HTTP 요청의 lang[*][file] 파라미터에 '../'와 같은 경로 조작 문자를 삽입하여 로컬 파일 포함(LFI) 공격 수행
🛡️ 대응 방법
최신 버전으로 업데이트하거나, 사용자 입력값에서 디렉토리 이동 문자(../)를 제거하는 필터링 로직을 적용해야 합니다.
🔧 검증 코드
명령어 실행 결과 gCards 1.45 이하 버전 정보가 출력되면 취약한 버전이 설치된 것입니다.
grep -r "gCards" /var/www/html/ | grep -E '1\.[0-4][0-9]' || echo "Version not found or updated"