🇰🇷 한글 설명
CubeCart 6.7.0 이전 버전의 REST API 파일 관리자에서 인증된 사용자가 임의의 PHP 파일을 업로드할 수 있는 취약점입니다. 경로 순회 결함과 함께 악용되면 공격자가 웹셸을 업로드하여 원격 코드 실행을 달성할 수 있습니다.
💡 쉬운 설명
CubeCart의 파일 업로드 기능에서 로그인한 공격자가 악의적인 프로그램을 업로드할 수 있는 문제입니다. 이를 통해 공격자가 서버를 완전히 제어할 수 있게 됩니다.
🇺🇸 원문 (English)
CubeCart is an ecommerce software solution. Prior to 6.7.0, an Authenticated Arbitrary File Upload vulnerability exists in the REST API File Manager endpoint (POST /api/v1/files) of CubeCart. The endpoint allows any holder of an API key with files:rw permission to upload PHP source files into the web-accessible images/source/ directory, where they are executed by the web server. Combined with a path-traversal flaw in the same endpoint's filepath parameter, a single API request writes a webshell anywhere the webserver process can write — including the document root — yielding full Remote Code Execution. This vulnerability is fixed in 6.7.0.
📍 영향받는 시스템
CubeCart 버전 6.7.0 미만 (모든 플랫폼)
⚔️ 공격 벡터
REST API 파일 업로드 엔드포인트(POST /api/v1/files)를 통해 경로 순회를 이용하여 웹셸을 업로드하는 방식
🛡️ 대응 방법
CubeCart를 6.7.0 이상 버전으로 업그레이드하거나, API 키 권한을 제한하고 업로드 디렉토리를 웹 접근 불가능하게 설정
🔧 검증 코드
출력된 버전 번호가 6.7.0 이상이면 패치됨, 6.6.x 이하면 취약함을 의미합니다.
dpkg -l cubecart 2>/dev/null | tail -1 | awk '{print $2, $3}' || rpm -q cubecart 2>/dev/null