🇰🇷 한글 설명
Home Assistant CLI 1.0.0 이전 버전에서 Jinja2 템플릿을 렌더링할 때 샌드박스 없이 처리되어, 사용자가 공급한 입력이 제한 없이 실행된다. 이로 인해 공격자가 Python 내부에 접근할 수 있으며, 템플릿 기능 범위를 의도적으로 벗어날 수 있다.
💡 쉬운 설명
Home Assistant CLI에서 명령어 입력할 때 사용자가 특수한 코드를 삽입하면, 시스템이 이를 검증하지 않고 실행한다. 이를 통해 공격자가 컴퓨터의 민감한 정보에 접근하거나 원치 않는 작업을 수행할 수 있다.
🇺🇸 원문 (English)
The Home Assistant Command-line interface (hass-cli) is a command-line tool for Home Assistant. Up to 1.0.0 of home-assitant-cli an unrestricted environment was used to handle Jninja2 templates instead of a sandboxed one. The user-supplied input within Jinja2 templates was rendered locally with no restrictions. This gave users access to Python's internals and extended the scope of templating beyond the intended usage. This vulnerability is fixed in 1.0.0.
📍 영향받는 시스템
home-assistant-cli 버전 1.0.0 이전
⚔️ 공격 벡터
사용자가 Jinja2 템플릿 구문을 포함한 입력을 CLI에 제공하여 Python 코드 실행을 유발
🛡️ 대응 방법
home-assistant-cli를 1.0.0 이상으로 업그레이드
🔧 검증 코드
설치된 home-assistant-cli의 버전이 1.0.0 이상인지 확인. 1.0.0 미만이면 업그레이드 필요
pip show home-assistant-cli | grep Version || pip list | grep home-assistant-cli