🇰🇷 한글 설명
Cockpit CMS의 /cockpit/collections/save_collection 엔드포인트에서 인증된 공격자가 컬렉션 규칙 매개변수를 통해 임의의 PHP 코드를 주입할 수 있는 원격 코드 실행 취약점입니다. 주입된 PHP 코드는 서버 파일에 직접 기록되어 include() 함수로 실행되어 서버에 대한 임의 명령 실행을 가능하게 합니다.
💡 쉬운 설명
Cockpit CMS에서 권한이 있는 사용자가 악의적인 명령어를 숨겨서 보낼 수 있는 보안 구멍입니다. 공격자는 이를 통해 서버를 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
Cockpit CMS contains an authenticated remote code execution vulnerability in the /cockpit/collections/save_collection endpoint that allows authenticated attackers with collection management privileges to inject arbitrary PHP code into collection rules parameters. Attackers can inject malicious PHP code through rule parameters which is written directly to server-side PHP files and executed via include() to achieve arbitrary command execution on the underlying server.
📍 영향받는 시스템
Cockpit CMS (모든 버전, 컬렉션 관리 권한이 있는 인증된 사용자)
⚔️ 공격 벡터
인증된 사용자가 /cockpit/collections/save_collection 엔드포인트의 rule 매개변수에 PHP 코드를 주입하여 서버 파일에 기록하고 실행
🛡️ 대응 방법
Cockpit CMS를 최신 보안 패치 버전으로 업그레이드하고 컬렉션 관리 권한을 최소한의 신뢰할 수 있는 사용자에게만 제한
🔧 검증 코드
Cockpit CMS 설치 경로에서 save_collection 함수 또는 버전 파일을 찾아 설치 여부와 버전 정보 확인
grep -r 'function save_collection' /path/to/cockpit 2>/dev/null || find /path/to/cockpit -name 'version.txt' -o -name 'VERSION' | head -1