🇰🇷 한글 설명
Tugtainer의 알림 템플릿 기능에서 서버 측 템플릿 주입(SSTI) 취약점이 발견되었습니다. 인증된 사용자가 title_template 또는 body_template 필드를 악용하여 컨테이너 내부에서 루트 권한으로 임의의 OS 명령을 실행할 수 있습니다.
💡 쉬운 설명
알림 메시지를 설정하는 칸에 특수한 코드를 입력하여 해커가 서버를 마음대로 조종할 수 있는 보안 약점입니다. 공격자가 이 기능을 이용하면 관리자 권한을 탈취하여 시스템을 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
Tugtainer is a self-hosted app for automating updates of Docker containers. Versions prior to 1.30.2 are vulnerable to Server-Side Template Injection (SSTI) in the notification template feature. The `title_template` and `body_template` fields are rendered using an unsandboxed `jinja2.Environment`, allowing any authenticated user to execute arbitrary OS commands as root inside the container. Version 1.30.2 fixes the issue.
📍 영향받는 시스템
Tugtainer 1.30.2 미만 모든 버전
⚔️ 공격 벡터
인증된 사용자가 알림 설정의 템플릿 필드에 악성 Jinja2 코드를 삽입하여 공격
🛡️ 대응 방법
Tugtainer를 최신 버전인 1.30.2 이상으로 즉시 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 1.30.2보다 낮은지 확인하여 취약 여부를 판단합니다.
docker exec <container_id> cat /app/version 2>/dev/null || echo 'Version check failed'