🇰🇷 한글 설명
FastGPT 4.15.2 미만 버전에서 DNS Rebinding 취약점이 발견되었습니다. 공격자가 호스트네임을 검증할 때와 실제 연결할 때의 DNS 조회 결과가 달라지는 점을 악용하여, 내부 네트워크나 로컬 주소로 접근할 수 있는 보안 우회 공격이 가능합니다.
💡 쉬운 설명
서버가 주소를 확인하는 순간과 실제로 접속하는 순간의 차이를 이용해, 원래는 접속하면 안 되는 내부 컴퓨터나 비밀 정보가 담긴 주소로 몰래 접속하는 공격입니다. 마치 검문소에서는 정상적인 주소라고 통과한 뒤, 실제 목적지에서는 다른 곳으로 방향을 트는 것과 같습니다.
🇺🇸 원문 (English)
FastGPT is an open-source LLM platform for building AI applications on a knowledge base. Prior to 4.15.2, the safe Axios request interceptor in packages/service/common/api/axios.ts validates a hostname with isInternalAddress() before a later HTTP connection performs an independent DNS lookup, creating a DNS rebinding window, allowing an attacker-controlled hostname to resolve publicly during the check and to a loopback, private, link-local, or metadata address during connection. An authenticated attacker who can supply a URL to a safe-Axios-backed HTTP tool, workflow HTTP node, external file fetch, or other server-side integration can use this time-of-check/time-of-use gap to reach services that direct private-address inputs would block. The same independent re-resolution occurs after manual redirect hops because each redirect target is checked before a separate connection lookup. This issue is fixed in version 4.15.2.
📍 영향받는 시스템
FastGPT 4.15.2 미만 모든 버전
⚔️ 공격 벡터
인증된 공격자가 HTTP 도구, 워크플로우 노드 등을 통해 조작된 DNS 응답을 사용하는 URL을 입력하여 내부 네트워크에 접근
🛡️ 대응 방법
FastGPT를 최신 보안 패치가 적용된 버전 4.15.2 이상으로 업데이트
🔧 검증 코드
출력된 버전 정보가 4.15.2보다 낮으면 취약한 상태이며, 4.15.2 이상이면 안전합니다.
curl -s http://<fastgpt-host>/api/version | grep -E '4\.[0-1][0-5]\.'
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
💻 영향받는 소프트웨어
Windows iSCSI Target Service