🇰🇷 한글 설명
Langchain-Chatchat 0.3.1.3 이하 버전에서 인증 없이 POST /tools/call API를 호출하여 등록된 모든 도구를 실행할 수 있는 취약점이 발견되었습니다. 공격자는 기본적으로 등록된 shell 도구를 호출하여 서버 사용자 권한으로 임의의 OS 명령어를 실행할 수 있습니다.
💡 쉬운 설명
인증 절차 없이 누구나 서버에 명령을 내릴 수 있는 통로가 열려 있는 상태입니다. 해커가 이 통로를 통해 서버의 제어권을 완전히 탈취하고 악성 명령을 실행할 수 있습니다.
🇺🇸 원문 (English)
Langchain-Chatchat through 0.3.1.3 exposes a POST /tools/call API endpoint that invokes any registered tool by name without authentication, leaving the always-registered shell tool callable. Remote attackers can send a single request naming the shell tool to execute arbitrary OS commands as the server user (root in the shipped Docker image).
📍 영향받는 시스템
Langchain-Chatchat 0.3.1.3 이하 모든 버전
⚔️ 공격 벡터
인증되지 않은 원격 공격자가 POST /tools/call 엔드포인트로 shell 도구 실행 요청을 전송
🛡️ 대응 방법
최신 보안 패치가 적용된 버전으로 업데이트하거나, 해당 API 엔드포인트에 대한 인증 및 접근 제어를 즉시 적용
🔧 검증 코드
출력된 버전이 0.3.1.3 이하인 경우 해당 취약점에 노출된 상태입니다.
pip show langchain-chatchat | grep Version