🇰🇷 한글 설명
FastGPT의 MCP 도구 엔드포인트에서 사용자 입력 URL에 대한 검증 미비로 인해 SSRF 취약점이 존재합니다. 인증된 공격자는 이를 악용하여 내부 네트워크를 스캔하거나 클라우드 메타데이터 서비스 및 내부 데이터베이스에 접근할 수 있습니다.
💡 쉬운 설명
해커가 FastGPT 시스템을 통해 내부 네트워크에 몰래 접속하여 중요한 정보를 훔쳐볼 수 있는 보안 구멍이 발견되었습니다. 이 문제는 시스템이 외부 주소인지 내부 주소인지 제대로 확인하지 않아 발생합니다.
🇺🇸 원문 (English)
FastGPT is an AI Agent building platform. Prior to version 4.14.9.5, FastGPT's MCP (Model Context Protocol) tools endpoints (/api/core/app/mcpTools/getTools and /api/core/app/mcpTools/runTool) accept a user-supplied URL parameter and make server-side HTTP requests to it without validating whether the URL points to an internal/private network address. Although the application has a dedicated isInternalAddress() function for SSRF protection (used in other endpoints like the HTTP workflow node), the MCP tools endpoints do not call this function. An authenticated attacker can use these endpoints to scan internal networks, access cloud metadata services, and interact with internal services such as MongoDB and Redis. This issue has been patched in version 4.14.9.5.
📍 영향받는 시스템
FastGPT version 4.14.9.5 미만 버전
⚔️ 공격 벡터
인증된 공격자가 MCP 도구 엔드포인트(/api/core/app/mcpTools/...)에 조작된 내부 네트워크 URL을 전달하여 서버 측 요청 위조(SSRF) 수행
🛡️ 대응 방법
FastGPT를 최신 보안 패치가 적용된 버전 4.14.9.5 이상으로 업데이트하십시오.
🔧 검증 코드
설치된 FastGPT의 버전을 확인하여 4.14.9.5 미만인 경우 취약한 상태로 판단합니다.
curl -s http://<fastgpt-host>/api/core/app/mcpTools/getTools | grep -i 'version' || echo 'Version check required via application logs or package manager'