🇰🇷 한글 설명
Risesoft Digital-Infrastructure 9.6.5부터 9.6.11 버전에서 파일 관리자의 Y9FileController.retrieveFileStream 핸들러에 경로 탐색(Path Traversal) 취약점이 발견되었습니다. 인증되지 않은 공격자가 fullPath 및 fileName 파라미터에 상위 디렉토리 경로를 삽입하여 서버의 임의 파일을 읽을 수 있으며, 이를 통해 데이터베이스나 Redis 등의 민감한 자격 증명이 포함된 설정 파일을 탈취할 수 있습니다.
💡 쉬운 설명
해커가 파일 경로를 조작하여 원래는 접근할 수 없는 서버 내부의 중요한 비밀 파일들을 몰래 읽어갈 수 있는 문제입니다. 이 과정에서 데이터베이스 접속 비밀번호와 같은 핵심 정보가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
Risesoft Digital-Infrastructure 9.6.5 through 9.6.11 contains a path traversal vulnerability in the fileManager Y9FileController.retrieveFileStream handler that allows unauthenticated attackers to read arbitrary files by supplying parent-directory segments in the fullPath and fileName parameters. Attackers can request the unauthenticated /rest/retrieveFileStream endpoint to retrieve files like application.yml, exposing database, Redis and Nacos credentials.
📍 영향받는 시스템
Risesoft Digital-Infrastructure 9.6.5 ~ 9.6.11
⚔️ 공격 벡터
인증되지 않은 상태에서 /rest/retrieveFileStream 엔드포인트에 경로 조작 파라미터를 전송하여 공격
🛡️ 대응 방법
해당 소프트웨어를 최신 보안 패치가 적용된 버전으로 업데이트하거나, 파일 경로 검증 로직을 강화해야 합니다.
🔧 검증 코드
명령어 실행 결과 'Vulnerable'이 출력되면 경로 탐색을 통한 파일 접근이 가능한 취약한 상태입니다.
curl -s -X GET 'http://<target_ip>/rest/retrieveFileStream?fullPath=../../../../etc/passwd&fileName=passwd' | grep -q 'root:' && echo 'Vulnerable' || echo 'Not Vulnerable'