🇰🇷 한글 설명
Inspur Haiyue HCM Cloud의 /api/model_report/file/download 엔드포인트에서 인증되지 않은 원격 공격자가 임의의 파일을 읽을 수 있는 취약점이 발견되었습니다. 공격자는 검증되지 않은 index 및 ext 파라미터를 조작하여 파일 시스템을 탐색하고 /etc/passwd나 데이터베이스 파일과 같은 민감한 정보를 탈취할 수 있습니다.
💡 쉬운 설명
해커가 특별한 권한 없이도 웹사이트의 주소를 교묘하게 조작하여 서버 안에 있는 중요한 비밀 파일들을 몰래 읽어갈 수 있는 문제입니다. 이를 통해 사용자 정보나 시스템 설정 파일이 유출될 위험이 있습니다.
🇺🇸 원문 (English)
Inspur Haiyue HCM Cloud contains an arbitrary file read vulnerability in the /api/model_report/file/download endpoint that allows unauthenticated remote attackers to read arbitrary files by supplying unvalidated path parameters index and ext. Attackers can craft requests such as /api/model_report/file/download?index=/&ext=<path> to traverse the filesystem and disclose sensitive files including /etc/passwd, application database files, and system configuration files. Exploitation evidence was first observed by the Shadowserver Foundation on 2024-11-04 .
📍 영향받는 시스템
Inspur Haiyue HCM Cloud (해당 엔드포인트를 사용하는 버전)
⚔️ 공격 벡터
인증되지 않은 원격 공격자가 조작된 경로 파라미터를 포함한 HTTP GET 요청을 전송하여 파일 시스템 탐색(Path Traversal) 수행
🛡️ 대응 방법
해당 엔드포인트의 입력값(index, ext 파라미터)에 대한 경로 검증 로직을 구현하고, 최신 보안 패치를 적용하십시오.
🔧 검증 코드
응답 코드가 200 OK이고 파일 내용이 일부 노출된다면 취약한 상태이며, 404 또는 403이 발생하면 안전할 가능성이 높습니다.
curl -s -I 'http://<TARGET_IP>/api/model_report/file/download?index=/etc/&ext=passwd' | grep -E '200|404'