🇰🇷 한글 설명
AlstraSoft E-friends 4.85의 chat/getStartOptions.php에서 발생하는 디렉토리 트래버설 취약점으로, 공격자가 '..'와 null 바이트(%00)를 lang 파라미터에 주입하여 임의의 로컬 파일을 포함시키고 로그 파일에 PHP 코드를 삽입해 원격 코드 실행이 가능한 심각한 취약점이다.
💡 쉬운 설명
웹 애플리케이션의 파라미터 조작으로 서버의 보호된 파일들에 접근하고 악의적인 코드를 실행할 수 있는 취약점이다. 특수 문자(점 두 개와 null 바이트)를 이용해 디렉토리 구조를 무시하고 파일에 접근한다.
🇺🇸 원문 (English)
Directory traversal vulnerability in chat/getStartOptions.php in AlstraSoft E-friends 4.85 allows remote attackers to include arbitrary local files and possibly execute arbitrary code via a .. (dot dot) sequence and trailing null (%00) byte in the lang parameter, as demonstrated by injecting PHP code into a log file.
📍 영향받는 시스템
AlstraSoft E-friends version 4.85 및 이전 버전
⚔️ 공격 벡터
chat/getStartOptions.php의 lang 파라미터를 통한 원격 디렉토리 트래버설 공격으로 PHP 코드 주입
🛡️ 대응 방법
패치된 버전으로 업그레이드 또는 lang 파라미터의 입력값 검증을 통해 '..'와 null 바이트 문자 필터링
🔧 검증 코드
파일 경로가 반환되면 취약한 애플리케이션이 설치되어 있으며, 버전 확인 후 즉시 패치를 적용해야 한다.
find / -name "getStartOptions.php" 2>/dev/null | head -1