🇰🇷 한글 설명
CubeCart 6.7.0 이전 버전에서 인증된 사용자가 이메일 템플릿과 문서 모듈의 Smarty 템플릿 엔진을 통해 임의의 PHP 함수를 실행할 수 있는 SSTI 취약점입니다. 관리자 권한을 가진 공격자는 readgzfile()로 설정 파일을 읽거나 error_log()로 웹셸을 작성하여 정보 유출 및 원격 코드 실행(RCE)을 달성할 수 있습니다.
💡 쉬운 설명
CubeCart의 관리 기능에서 사용자 입력을 안전하지 않게 처리하여 관리자가 악의적인 코드를 실행할 수 있는 취약점입니다. 공격자는 서버 파일을 읽거나 악성 프로그램을 설치할 수 있습니다.
🇺🇸 원문 (English)
CubeCart is an ecommerce software solution. Prior to 6.7.0, an Authenticated Server-Side Template Injection (SSTI) vulnerability exists in multiple modules of CubeCart (including Email Templates and Documents). The application unsafely evaluates user-supplied input directly through the Smarty template engine. By leveraging this, an authenticated attacker with administrative privileges can bypass current restrictions and call native PHP functions within the templates, such as readgzfile() to read sensitive configuration files, or error_log() to write a malicious PHP web shell, ultimately achieving Information Disclosure and full Remote Code Execution (RCE). This vulnerability is fixed in 6.7.0.
📍 영향받는 시스템
CubeCart 6.7.0 이전 모든 버전
⚔️ 공격 벡터
인증된 관리자가 이메일 템플릿 또는 문서 모듈에서 Smarty 템플릿 문법을 이용하여 PHP 함수 직접 실행
🛡️ 대응 방법
CubeCart를 버전 6.7.0 이상으로 즉시 업그레이드
🔧 검증 코드
출력된 VERSION 값이 6.7.0 이상이면 패치됨, 6.7.0 미만이면 긴급 업그레이드 필요
grep VERSION /var/www/cubecart/init.php 2>/dev/null || find / -name 'init.php' -path '*cubecart*' -exec grep VERSION {} \; 2>/dev/null | head -1