🇰🇷 한글 설명
Mautic의 Twig 테마 렌더링 샌드박스에서 서버 사이드 템플릿 인젝션 취약점이 존재합니다. 이전 패치(GHSA-9fx4-7cmj-47vg)가 불완전하여, 조작된 테마 템플릿이 샌드박스를 탈출할 수 있습니다. core:themes:create 권한을 가진 인증된 사용자가 악성 테마를 업로드하면 웹 서버 권한으로 임의 코드가 실행될 수 있습니다.
💡 쉬운 설명
마케팅 자동화 도구 Mautic에서 테마 파일 처리에 결함이 있어, 테마 업로드 권한이 있는 사용자가 서버를 장악할 수 있습니다. 관리자 계정이 이 권한을 기본으로 가지므로 특히 주의가 필요합니다.
🇺🇸 원문 (English)
A server-side template injection vulnerability exists in the Twig theme rendering sandbox of Mautic. The sandbox introduced to restrict user-uploaded theme templates (the fix for GHSA-9fx4-7cmj-47vg) does not fully enforce its restrictions, allowing a crafted theme template to escape the sandbox. An authenticated user with the core:themes:create permission can upload a malicious theme whose template is later rendered, resulting in execution of arbitrary code on the server with the privileges of the web server process. This allows the attacker to execute operating system commands, read server-side files including configuration files and database credentials, write files, and reach internal services. In default installations the core:themes:create permission is granted to the Administrator role, and in multi-operator setups it may be delegated to other roles. This is an incomplete fix for GHSA-9fx4-7cmj-47vg.
📍 영향받는 시스템
Mautic (GHSA-9fx4-7cmj-47vg 수정 이후 버전, 정확한 영향 버전은 공식 권고문 확인 필요)
⚔️ 공격 벡터
core:themes:create 권한을 가진 인증 사용자가 악성 Twig 테마를 업로드하여 샌드박스를 우회하고 서버에서 OS 명령을 실행
🛡️ 대응 방법
Mautic을 공식 패치 버전으로 업데이트하고, 테마 업로드 권한(core:themes:create)을 필요한 최소 사용자에게만 부여
🔧 검증 코드
출력된 버전을 Mautic 공식 보안 권고문의 영향 버전 목록과 비교하여, 해당 버전 이하이면 취약하고 패치된 버전 이상이면 안전합니다.
composer show mautic/core-lib 2>/dev/null | grep -i version || grep -rn "version" /var/www/html/app/version.txt 2>/dev/null