🇰🇷 한글 설명
TREK 3.3.0 미만 버전에서 LLM_PARSING 기능이 활성화된 경우, 인증된 사용자가 설정 API를 통해 공격자가 제어하는 llm_base_url을 저장할 수 있습니다. 이 취약점은 서버 측 요청 위조(SSRF) 가드가 적용되지 않아 내부 서비스 탐색 및 클라우드 메타데이터 접근을 허용하며, 이를 통해 인프라 자격 증명이 유출될 수 있습니다.
💡 쉬운 설명
협업 여행 플래너인 TREK의 설정 오류를 이용해 공격자가 서버 내부 네트워크에 몰래 접근할 수 있는 보안 약점입니다. 이를 통해 서버의 중요한 비밀번호나 클라우드 관리 권한을 탈취당할 위험이 있습니다.
🇺🇸 원문 (English)
TREK is a collaborative travel planner. Prior to 3.3.0, TREK allows an authenticated user to store an attacker-controlled llm_base_url through the settings API when the LLM_PARSING feature is enabled. Write permission to the target trip instance is required to trigger the vulnerable AI-assisted import path. The value is consumed by the clients in server/src/nest/llm-parse/clients/openai-compatible.client.ts, server/src/nest/llm-parse/clients/anthropic.client.ts, and server/src/nest/llm-parse/router/ollama-format.client.ts without applying the server-side request forgery guard. Triggering AI-assisted trip parsing causes the server to request the supplied destination, and upstream error response text can be returned in parsing warnings. This permits internal service discovery and access to link-local cloud metadata, with possible disclosure of infrastructure credentials and subsequent modification of protected cloud resources. This issue is fixed in version 3.3.0.
📍 영향받는 시스템
TREK version < 3.3.0 (LLM_PARSING 기능 활성화 시)
⚔️ 공격 벡터
인증된 사용자가 설정 API를 통해 조작된 llm_base_url을 입력하고 AI 기반 여행 데이터 가져오기를 실행하여 SSRF 공격 수행
🛡️ 대응 방법
TREK 버전을 3.3.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력 결과에 3.3.0 이상의 버전 번호가 포함되어 있으면 취약점이 해결된 상태입니다.
curl -s http://<TREK_SERVER_IP>/api/version | grep -E '3.3.0'