🇰🇷 한글 설명
Thelia 2.6.0 버전의 Smarty 이메일 템플릿 엔진이 위험한 PHP 함수에 대한 접근 제한을 적절히 수행하지 않습니다. 인증된 관리자가 메시지 설정 인터페이스를 통해 악성 Smarty 표현식을 주입하면, 템플릿 렌더링 시 시스템 명령 실행 및 파일 읽기/쓰기가 가능한 원격 코드 실행(RCE) 취약점이 발생합니다.
💡 쉬운 설명
관리자 권한을 가진 사용자가 이메일 양식을 조작하여 서버에 몰래 명령을 내릴 수 있는 보안 약점입니다. 이를 통해 해커가 서버의 파일을 읽거나 마음대로 조작할 수 있습니다.
🇺🇸 원문 (English)
Thelia 2.6.0 uses Smarty for email templates without properly restricting access to dangerous PHP functions. An authenticated administrator can inject malicious Smarty expressions into email templates via the messages configuration interface, and when the template is previewed or rendered, functions such as system(), exec(), file_put_contents(), and file_get_contents() can be executed with the privileges of the web process. This allows arbitrary OS command execution, file read/write operations, and RCE on the underlying server.
⚔️ 공격 벡터
인증된 관리자 계정을 통한 메시지 설정 인터페이스 내 악성 Smarty 표현식 주입
🛡️ 대응 방법
Smarty 템플릿 엔진의 보안 설정을 강화하여 위험한 PHP 함수 호출을 차단하거나 최신 보안 패치를 적용하십시오.
🔧 검증 코드
출력된 버전 정보가 2.6.0인지 확인하여 해당 취약점 대상 여부를 판단합니다.
composer show thelia/thelia | grep 'versions'