🇰🇷 한글 설명
LinPHA 1.0에서 발생하는 디렉토리 트래버설 취약점으로, 공격자가 '..' 시퀀스를 이용해 서버의 임의 파일을 읽을 수 있습니다. 특히 사용자 이름에 PHP 코드를 삽입하여 linpha.log 파일에 기록한 뒤, 이 취약점을 통해 해당 로그 파일을 호출함으로써 원격 코드 실행(RCE)이 가능합니다.
💡 쉬운 설명
웹사이트 주소에 특수 문자를 넣어 서버 내부의 비밀 파일을 훔쳐볼 수 있는 결함입니다. 공격자가 서버에 악성 코드를 심고 이를 실행시켜 서버 전체를 제어할 위험이 있습니다.
🇺🇸 원문 (English)
Directory traversal vulnerability in LinPHA 1.0 allows remote attackers to include arbitrary files via .. (dot dot) sequences in the (1) lang parameter in docs/index.php and the language parameter in (2) install/install.php, (3) install/sec_stage_install.php, (4) install/third_stage_install.php, and (5) install/forth_stage_install.php. NOTE: direct static code injection is resultant from this issue, as demonstrated by inserting PHP code into the username, which is inserted into linpha.log, which is accessible from the directory traversal.
⚔️ 공격 벡터
HTTP 요청의 lang 및 language 파라미터에 '../' 경로 조작 문자열을 삽입하여 파일 접근
🛡️ 대응 방법
입력값에서 '..' 및 '/'와 같은 경로 조작 문자를 필터링하도록 코드를 수정하거나 최신 버전으로 업데이트하십시오.
🔧 검증 코드
명령어 실행 결과 LinPHA 1.0 버전 정보가 출력되면 해당 취약점에 노출되었을 가능성이 큽니다.
grep -r "LinPHA" /var/www/html/ 2>/dev/null | grep "1.0"