🇰🇷 한글 설명
Flowise 3.1.3 미만 버전에서 CSV Agent 노드를 사용하는 채팅 플로우에 프롬프트 인젝션 공격을 수행할 경우, 악성 파이썬 스크립트가 실행될 수 있습니다. 공격자는 블록리스트 검증을 우회하여 샌드박스되지 않은 Pyodide 환경에서 임의의 코드를 실행함으로써 서비스 계정 권한을 탈취할 수 있습니다.
💡 쉬운 설명
AI 모델에게 특수한 명령을 내려서 보안 검사를 피해 악성 코드를 실행하게 만드는 취약점입니다. 이를 통해 해커가 사용자의 컴퓨터나 서버에서 마음대로 명령을 내릴 수 있습니다.
🇺🇸 원문 (English)
Flowise is a drag & drop user interface to build a customized large language model flow. Prior to 3.1.3, a prompt injection sent to a chatflow using a CSV Agent node can cause the LLM to respond with a malicious Python script that bypasses the blocklist validator and executes in an unsandboxed Pyodide environment. The specific flaw exists within the run method of the CSV_Agents class, where untrusted data is used to construct an LLM prompt and the resulting pythonCode is validated by validatePythonCodeForDataFrame before execution. An attacker can leverage this to execute arbitrary code in the context of the service account. This issue is fixed in 3.1.3.
📍 영향받는 시스템
Flowise versions prior to 3.1.3
⚔️ 공격 벡터
CSV Agent 노드를 사용하는 채팅 플로우에 악의적인 프롬프트 인젝션 공격 수행
🛡️ 대응 방법
Flowise를 최신 버전인 3.1.3 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 flowise의 버전이 3.1.3 미만인지 확인하십시오.
npm list -g flowise --depth=0 | grep -E 'flowise@'