🇰🇷 한글 설명
PraisonAIAgents 1.5.128 미만 버전의 shell_tools.py 내 execute_command 함수에서 환경 변수 확장 취약점이 발견되었습니다. 공격자는 명령 인자에 환경 변수를 삽입하여 데이터베이스 자격 증명이나 API 키와 같은 민감한 정보를 탈취할 수 있습니다. 승인 시스템에는 확장되지 않은 변수명이 표시되어 검토자를 속일 수 있는 위험이 있습니다.
💡 쉬운 설명
사용자가 명령어를 승인할 때 보이는 내용과 실제로 실행되는 내용이 달라지는 보안 결함입니다. 이를 통해 해커가 시스템에 숨겨진 비밀번호나 중요한 열쇠 정보를 몰래 빼낼 수 있습니다.
🇺🇸 원문 (English)
PraisonAIAgents is a multi-agent teams system. Prior to 1.5.128, the execute_command function in shell_tools.py calls os.path.expandvars() on every command argument at line 64, manually re-implementing shell-level environment variable expansion despite using shell=False (line 88) for security. This allows exfiltration of secrets stored in environment variables (database credentials, API keys, cloud access keys). The approval system displays the unexpanded $VAR references to human reviewers, creating a deceptive approval where the displayed command differs from what actually executes. This vulnerability is fixed in 1.5.128.
📍 영향받는 시스템
PraisonAIAgents 1.5.128 미만 모든 버전
⚔️ 공격 벡터
명령어 인자에 $VARIABLE 형태의 환경 변수를 삽입하여 실행 시점에 민감 정보가 노출되도록 유도
🛡️ 대응 방법
PraisonAIAgents를 1.5.128 이상 버전으로 업데이트
🔧 검증 코드
출력된 버전이 1.5.128 미만이면 취약한 상태이며, 1.5.128 이상이면 안전합니다.
pip show praisonaiaagents 2>/dev/null | grep -E 'Version'