🇰🇷 한글 설명
SQLBot 1.5.0 이하 버전에서 발생하는 저장형 프롬프트 인젝션 취약점입니다. 권한 검증 미흡, 용어 설명의 필터링 부재, LLM 시스템 프롬프트의 세만틱 펜싱 결여가 결합되어 공격자가 LLM의 추론 과정을 가로채고 악성 PostgreSQL 명령어를 실행할 수 있습니다. 이를 통해 데이터베이스 또는 애플리케이션 서버에서 원격 코드 실행(RCE)이 가능합니다.
💡 쉬운 설명
악의적인 내용이 담긴 파일을 업로드하여 인공지능(LLM)을 속이는 공격입니다. 속아 넘어간 인공지능이 해커의 명령을 수행하게 되어, 서버의 제어권을 통째로 빼앗길 수 있습니다.
🇺🇸 원문 (English)
SQLBot is an intelligent data query system based on a large language model and RAG. Versions 1.5.0 and below contain a Stored Prompt Injection vulnerability that chains three flaws: a missing permission check on the Excel upload API allowing any authenticated user to upload malicious terminology, unsanitized storage of terminology descriptions containing dangerous payloads, and a lack of semantic fencing when injecting terminology into the LLM's system prompt. Together, these flaws allow an attacker to hijack the LLM's reasoning to generate malicious PostgreSQL commands (e.g., COPY ... TO PROGRAM), ultimately achieving Remote Code Execution on the database or application server with postgres user privileges. The issue is fixed in v1.6.0.
📍 영향받는 시스템
SQLBot v1.5.0 및 그 이하 모든 버전
⚔️ 공격 벡터
인증된 사용자가 악성 페이로드가 포함된 엑셀 파일을 업로드하여 LLM의 시스템 프롬프트를 조작함
🛡️ 대응 방법
SQLBot을 보안 패치가 적용된 v1.6.0 이상 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 1.6.0 미만(예: 1.5.0)이면 취약한 상태입니다.
python3 -c 'import sqlbot; print(sqlbot.__version__)' 2>/dev/null || echo 'version_check_failed'
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
💻 영향받는 소프트웨어
IBM WebSphere Application Server