🇰🇷 한글 설명
Heym의 0.0.40 미만 버전에서 인증된 사용자가 Agent 커스텀 Python 도구를 사용하여 블랙리스트 기반 샌드박스를 우회할 수 있는 취약점이 발견되었습니다. 허용된 표준 라이브러리 모듈의 공개 속성을 통해 운영 체제, 프로세스 및 파일 시스템에 접근할 수 있으며, 이를 통해 백엔드 애플리케이션 권한으로 임의의 명령과 파일 작업을 수행할 수 있습니다.
💡 쉬운 설명
허가된 사용자라도 시스템의 보안 제한을 뚫고 서버의 파일을 조작하거나 명령을 실행할 수 있는 보안 구멍이 있습니다. 이는 마치 허용된 도구를 사용해 금지된 구역의 문을 여는 것과 같습니다.
🇺🇸 원문 (English)
Heym builds and runs agentic systems and business-process automations on self-hosted infrastructure. Prior to 0.0.40, an authenticated user who can create or edit a workflow with an Agent custom Python tool can bypass the blacklist-based sandbox in backend/app/services/python_tool_executor.py because allowed standard-library modules expose operating-system, process, and filesystem capabilities through public attributes that pass _safe_import() and _validate_code_safety(). The runner then executes the supplied tool with exec(), permitting commands and file operations as the backend application user; self-registration affects reachability, but portal triggering alone does not grant code control. This issue is fixed in 0.0.40.
📍 영향받는 시스템
Heym (version < 0.0.40)
⚔️ 공격 벡터
인증된 사용자가 Python 도구 내에서 표준 라이브러리의 특정 속성을 이용해 샌드박스를 우회하고 exec() 함수로 악성 코드를 실행
🛡️ 대응 방법
Heym을 0.0.40 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력 결과가 'Vulnerable'이면 취약한 버전이며, 아무것도 출력되지 않으면 안전한 버전입니다.
python3 -c "import hey m; print(hey m.__version__)" 2>/dev/null | grep -E '^([0-9]+\.[0-9]+\.[0-9]+)$' | awk -F. '$1>=0 && $2>=0 && $3<40 {print "Vulnerable"}'