🇰🇷 한글 설명
DB-GPT 0.8.2 이하 버전에서 인증되지 않은 사용자가 원격 코드를 실행할 수 있는 취약점이 발견되었습니다. /api/v1/chat/react-agent 엔드포인트가 모든 호출자에게 관리자 권한을 부여하는 결함이 있어, 공격자가 ReAct 에이전트의 도구를 통해 웹서버 컨테이너 내에서 루트 권한으로 임의의 파이썬 또는 배시 명령을 실행할 수 있습니다.
💡 쉬운 설명
로그인하지 않은 외부인이 채팅창에 특정 명령을 입력하는 것만으로도 서버의 모든 권한을 탈취할 수 있는 위험한 보안 구멍입니다. 공격자가 서버를 마음대로 조종하거나 데이터베이스에 있는 정보를 모두 빼갈 수 있습니다.
🇺🇸 원문 (English)
DB-GPT through 0.8.2 contains an unauthenticated remote code execution vulnerability because the /api/v1/chat/react-agent endpoint relies on a mock get_user_from_headers function that grants every caller the admin role. Unauthenticated attackers can send prompts that make the ReAct agent's unsandboxed code_interpreter and shell_interpreter tools run arbitrary Python or bash as root in the webserver container, including reaching the bundled database with default credentials.
📍 영향받는 시스템
DB-GPT 0.8.2 및 그 이전 버전
⚔️ 공격 벡터
인증되지 않은 상태에서 /api/v1/chat/react-agent 엔드포인트로 악의적인 프롬프트를 전송하여 코드/쉘 인터프리터 실행
🛡️ 대응 방법
DB-GPT를 최신 보안 패치가 적용된 버전으로 업데이트하고, API 엔드포인트에 대한 적절한 인증 메커니즘을 적용하십시오.
🔧 검증 코드
출력된 버전 번호가 0.8.2 이하인지 확인하십시오.
pip show db-gpt | grep Version