🇰🇷 한글 설명
Usagi-org의 ai-goofish-monitor Windows 배포판에서 인증되지 않은 공격자가 임의의 파일을 읽을 수 있는 취약점이 발견되었습니다. GET /api/prompts/{filename} 엔드포인트에서 경로 탐색 방어 로직이 불완전하여, 절대 경로를 입력할 경우 시스템 파일에 접근할 수 있습니다.
💡 쉬운 설명
해커가 특수한 주소를 입력하여 서버에 저장된 중요한 파일을 몰래 훔쳐볼 수 있는 문제입니다. 윈도우 시스템의 파일 경로를 직접 입력하면 보안 장치를 우회하여 파일이 유출될 수 있습니다.
🇺🇸 원문 (English)
Usagi-org ai-goofish-monitor contains an unauthenticated arbitrary file read vulnerability in the GET /api/prompts/{filename} endpoint on Windows deployments that allows unauthenticated remote attackers to read arbitrary files by supplying absolute Windows paths or backslash-based traversal sequences. Attackers can bypass the incomplete path traversal guard, which only blocks forward slashes and '..', by providing absolute paths such as Windows system file locations, causing os.path.join to discard the intended prompts directory prefix and expose files accessible to the application process.
📍 영향받는 시스템
Usagi-org ai-goofish-monitor (Windows 배포 환경)
⚔️ 공격 벡터
인증되지 않은 원격 공격자가 GET 요청 시 절대 경로 또는 백슬래시(\)를 이용한 경로 탐색 시퀀스를 전송
🛡️ 대응 방법
경로 탐색 방어 로직을 강화하여 절대 경로 및 백슬래시 입력을 차단하고, 파일 접근 시 디렉토리 제한을 엄격히 적용