🇰🇷 한글 설명
DB-GPT v0.8.1 버전에서 인증되지 않은 사용자가 경로 탐색(Path Traversal) 취약점을 악용하여 서버의 임의 위치에 파일을 작성할 수 있습니다. 공격자는 user_id HTTP 헤더에 경로 탐색 시퀀스를 주입하여 파일 업로드 경로를 벗어난 뒤, 시스템 스크립트나 크론 디렉토리에 악성 파일을 생성하여 원격 코드 실행(RCE)을 수행할 수 있습니다.
💡 쉬운 설명
해커가 파일 업로드 기능을 악용해 서버의 허용되지 않은 폴더에 몰래 파일을 심을 수 있는 보안 결함입니다. 이를 통해 해커가 서버의 제어권을 완전히 뺏어 명령을 내릴 수 있어 매우 위험합니다.
🇺🇸 원문 (English)
DB-GPT v0.8.1 contains an unauthenticated path traversal vulnerability that allows remote attackers to write arbitrary files to any location on the server by injecting directory traversal sequences into the user_id HTTP header of the Python file-upload endpoint. Attackers can send a crafted multipart upload request with a traversal-poisoned user_id header to escape the intended upload directory and write attacker-controlled content to locations such as Python startup hooks, cron directories, or agent scripts, resulting in remote code execution.
⚔️ 공격 벡터
HTTP 요청의 user_id 헤더에 경로 탐색 문자열(예: ../..)을 삽입하여 파일 업로드 경로를 조작함
🛡️ 대응 방법
DB-GPT를 최신 보안 패치가 적용된 버전으로 업데이트하고, 사용자 입력값에 대한 경로 검증 로직을 강화해야 함
🔧 검증 코드
출력된 버전이 v0.8.1과 일치하면 해당 취약점에 노출된 상태임
pip show db-gpt | grep Version