🇰🇷 한글 설명
PraisonAI의 CODE_TOOLS 래퍼가 _workspace_root를 None으로 유지하여 파일 읽기 및 수정 도구에 workspace=None을 전달하는 취약점입니다. 이로 인해 작업 디렉토리가 설정되기 전에는 프롬프트 조작을 통해 의도된 프로젝트 디렉토리 외부의 파일을 읽거나 수정할 수 있습니다.
💡 쉬운 설명
AI 에이전트가 정해진 폴더 안에서만 작업해야 하는데, 설정이 제대로 안 된 상태에서는 컴퓨터의 다른 중요한 파일까지 읽거나 고칠 수 있는 보안 구멍이 있습니다. 공격자가 AI에게 명령을 내려 시스템의 민감한 파일을 훔쳐보거나 망가뜨릴 수 있습니다.
🇺🇸 원문 (English)
PraisonAI is a multi-agent teams system. Prior to 4.6.59, the CODE_TOOLS wrappers keep _workspace_root as None and pass workspace=None to read_file, search_replace, and apply_diff helpers that enforce path containment only for a truthy workspace. An application that exposes code_read_file, code_search_replace, or code_apply_diff before set_workspace can therefore let prompt-influenced calls read and modify files outside the intended project directory, while explicitly configured workspaces remain effective. This vulnerability is fixed in 4.6.59.
📍 영향받는 시스템
PraisonAI versions prior to 4.6.59
⚔️ 공격 벡터
프롬프트 인젝션을 통해 workspace가 설정되지 않은 상태에서 파일 읽기 및 수정 함수를 호출하여 경로 제한을 우회함
🛡️ 대응 방법
PraisonAI를 4.6.59 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 4.6.59 미만이면 취약한 상태이며, 4.6.59 이상이면 안전합니다.
pip show praisonai | grep Version