🇰🇷 한글 설명
Flowise의 CSV_Agents 클래스에서 LLM이 생성한 Python 스크립트를 샌드박싱 없이 실행하는 취약점. 프롬프트 인젝션을 통해 악의적인 스크립트를 실행할 수 있으며, 서버 권한으로 임의의 명령 실행 가능.
💡 쉬운 설명
Flowise 도구에서 AI가 만드는 코드를 그대로 실행해서, 공격자가 특수한 입력으로 나쁜 코드를 만들게 할 수 있습니다. 이러면 서버를 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
Flowise is a drag & drop user interface to build a customized large language model flow. Prior to 3.1.0, the specific flaw exists within the run method of the CSV_Agents class. The issue results from the lack of proper sandboxing when evaluating an LLM generated python script. An attacker can leverage this vulnerability to execute code in the context of the user running the server. Using prompt injection techniques, an unauthenticated attacker with the ability to send prompts to a chatflow using the CSV Agent node may convince an LLM to respond with a malicious python script that executes attacker controlled commands on the Flowise server. This vulnerability is fixed in 3.1.0.
📍 영향받는 시스템
Flowise 3.1.0 이전 모든 버전
⚔️ 공격 벡터
인증 없이 CSV Agent 노드가 있는 chatflow에 프롬프트 인젝션하여 악의적 Python 스크립트 실행
🛡️ 대응 방법
Flowise를 3.1.0 이상으로 즉시 업그레이드
🔧 검증 코드
출력된 버전이 3.1.0 이상이면 안전, 3.0.x 이하면 취약 (패치 필요)
npm list flowise 2>/dev/null | grep flowise | awk '{print $2}' | cut -d'@' -f2