🇰🇷 한글 설명
PhpMyChat Plus 1.9 이전 버전의 디렉토리 트래버설 취약점으로, ChatPath 파라미터와 L 파라미터에 '..'를 삽입하여 임의의 파일을 읽을 수 있습니다. 다수의 PHP 파일들에서 입력값이 제대로 검증되지 않아 서버의 민감한 정보를 노출시킬 수 있습니다.
💡 쉬운 설명
웹 애플리케이션의 폴더 경로 입력창에 '..'를 입력하면 접근할 수 없어야 할 파일들을 읽을 수 있는 문제입니다. 공격자가 비밀번호, 설정 파일 같은 민감한 정보를 훔칠 수 있습니다.
🇺🇸 원문 (English)
Multiple directory traversal vulnerabilities in PhpMyChat Plus 1.9 and earlier allow remote attackers to read arbitrary files via a .. (dot dot) in the ChatPath parameter to (1) avatar.php, (2) colorhelp_popup.php, (3) color_popup.php, (4) index.php, (5) index1.php, (6) lib/connected_users.lib.php, (7) lib/index.lib.php, and (8) phpMyChat.php3; and the (9) L parameter to logs.php. NOTE: CVE analysis suggests that vector 1 might be incorrect.
📍 영향받는 시스템
PhpMyChat Plus 버전 1.9 이하
⚔️ 공격 벡터
avatar.php, colorhelp_popup.php, color_popup.php, index.php 등의 ChatPath 또는 L 파라미터에 '..'를 삽입하여 상위 디렉토리 접근
🛡️ 대응 방법
최신 버전으로 업그레이드 또는 '..'와 '/' 포함된 경로 입력 차단, 화이트리스트 기반 파일 접근 제어 구현
🔧 검증 코드
PhpMyChat Plus 파일이 발견되고 ChatPath 변수가 보이면 취약점 대상이며, 파일이 없으면 설치되지 않은 상태입니다.
find / -name 'avatar.php' -o -name 'index.php' 2>/dev/null | xargs grep -l 'ChatPath' 2>/dev/null