🇰🇷 한글 설명
PraisonAI의 FileMemory 생성자에서 검증되지 않은 user_id를 self.user_path에 결합하는 취약점이 발견되었습니다. 공격자가 ../ 또는 경로 구분자를 포함한 user_id를 제공하면 메모리 디렉토리를 벗어나 프로세스가 쓰기 권한을 가진 임의의 위치에 JSON 데이터를 작성할 수 있습니다.
💡 쉬운 설명
사용자 아이디에 특수 문자를 넣어 프로그램이 정해진 폴더가 아닌 엉뚱한 곳에 파일을 저장하게 만드는 보안 약점입니다. 이를 통해 해커가 시스템의 중요한 위치에 악성 파일을 심을 위험이 있습니다.
🇺🇸 원문 (English)
PraisonAI is a multi-agent teams system. Prior to praisonaiagents 1.6.58, the FileMemory constructor joins unsanitized user_id into self.user_path. A caller supplying ../ or path separators can escape the memory directory and write JSON data to arbitrary process-writable locations. The fix sanitizes user_id before constructing self.user_path. This issue is fixed in version 1.6.58.
📍 영향받는 시스템
PraisonAI (praisonaiagents) 1.6.58 미만 버전
⚔️ 공격 벡터
조작된 user_id(경로 조작 문자 포함)를 입력하여 파일 저장 경로를 임의로 변경
🛡️ 대응 방법
PraisonAI를 최신 버전인 1.6.58 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 1.6.58보다 낮으면 취약한 상태입니다.
pip show praisonaiagents | grep Version