🇰🇷 한글 설명
Microweber CMS 2.0.20 이하 버전에서 인증된 관리자가 메일 템플릿에 Twig 표현식을 주입하여 임의의 OS 명령을 실행할 수 있는 서버 측 템플릿 주입(SSTI) 취약점이 발견되었습니다. TwigView::render() 함수가 샌드박스 환경을 사용하지 않아, 데이터베이스에 저장된 악성 템플릿이 메일 발송 시 자동으로 실행될 수 있습니다.
💡 쉬운 설명
관리자 권한을 가진 사용자가 메일 양식에 특수 코드를 몰래 심어두면, 시스템이 메일을 보낼 때마다 해커의 명령어를 실행하게 되는 보안 약점입니다. 이를 통해 해커는 서버를 마음대로 조종할 수 있습니다.
🇺🇸 원문 (English)
Microweber CMS through 2.0.20 contains a server-side template injection vulnerability that allows authenticated administrators to achieve arbitrary OS command execution by injecting Twig expressions into mail templates. Attackers can exploit the unsandboxed Twig environment in TwigView::render(), which lacks SandboxExtension or a SecurityPolicy, to inject malicious expressions such as filter('system') into mail template bodies stored unsanitized in the database, causing automatic payload execution on each subsequent application event that triggers a mail dispatch.
📍 영향받는 시스템
Microweber CMS 2.0.20 및 그 이전 버전
⚔️ 공격 벡터
인증된 관리자가 메일 템플릿에 악성 Twig 표현식을 주입하여 메일 발송 시 명령 실행 유도
🛡️ 대응 방법
Microweber CMS를 최신 보안 패치가 적용된 버전으로 업데이트하고, Twig 렌더링 시 SandboxExtension을 적용해야 함
🔧 검증 코드
출력된 버전 정보가 2.0.20 이하인지 확인하여 취약 여부를 판단합니다.
composer show microweber/microweber | grep 'versions'
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
💻 영향받는 소프트웨어
IBM WebSphere Application Server