🇰🇷 한글 설명
PraisonAI 1.7.2 미만 버전의 codeMode 도구에서 모델이 생성한 JavaScript를 실행할 때 샌드박스 우회 취약점이 존재합니다. 공격자가 코드 인자를 조작할 경우 전역 객체에 접근하거나 child_process 모듈을 동적으로 생성하여 호스트 프로세스의 권한으로 명령을 실행할 수 있습니다.
💡 쉬운 설명
AI가 작성한 코드를 실행하는 과정에서 보안 장치가 뚫려, 해커가 컴퓨터를 마음대로 조종할 수 있는 문제입니다. 이를 통해 파일을 읽거나 삭제하고 중요한 정보를 훔쳐갈 수 있습니다.
🇺🇸 원문 (English)
PraisonAI is a multi-agent teams system. Prior to 1.7.2, the codeMode tool in src/praisonai-ts/src/tools/builtins/code-mode.ts executes model-generated JavaScript with new Function() and with(sandbox), while a regular-expression blocklist can be bypassed with Function('return this')() to recover the global object and by constructing the child_process module name dynamically. An attacker who can influence the code argument can access host process capabilities, read or write files, obtain environment credentials, and execute operating-system commands with the PraisonAI process privileges. This issue is fixed in version 1.7.2.
📍 영향받는 시스템
PraisonAI 1.7.2 미만 모든 버전
⚔️ 공격 벡터
모델이 생성한 JavaScript 코드를 조작하여 샌드박스를 우회하고 시스템 명령어를 실행하는 방식
🛡️ 대응 방법
PraisonAI를 최신 버전인 1.7.2 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.7.2 미만인 경우 취약한 상태입니다.
npm list -g praisonai-ts | grep praisonai-ts