🇰🇷 한글 설명
Vvveb CMS v1.0.8.2의 미디어 관리 기능에 있는 원격 코드 실행 취약점으로, 파일 이름 바꾸기 핸들러의 누락된 반환문이 원인입니다. 인증된 공격자가 먼저 텍스트 파일을 .htaccess로 이름 변경하여 Apache 지시문을 주입한 후, 다시 파일을 업로드하여 .php로 이름 변경해 www-data 사용자 권한으로 임의 명령어를 실행할 수 있습니다.
💡 쉬운 설명
Vvveb CMS에서 파일을 위험한 확장명으로 변경하는 것을 막아야 하는데, 이 보안 검사가 제대로 작동하지 않습니다. 공격자는 이를 악용하여 서버에 악의적인 코드를 실행할 수 있습니다.
🇺🇸 원문 (English)
Vvveb CMS v1.0.8.2 contains a remote code execution vulnerability in its media management functionality where a missing return statement in the file rename handler allows authenticated attackers to rename files to blocked extensions .php or .htaccess. Attackers can exploit this logic flaw by first uploading a text file and renaming it to .htaccess to inject Apache directives that register PHP-executable MIME types, then uploading another file and renaming it to .php to execute arbitrary operating system commands as the www-data user.
📍 영향받는 시스템
Vvveb CMS v1.0.8.2 및 이전 버전
⚔️ 공격 벡터
인증된 사용자가 미디어 관리 기능의 파일 이름 변경 기능을 악용하여 .htaccess와 .php 파일 생성
🛡️ 대응 방법
Vvveb CMS를 최신 패치 버전으로 업그레이드하고 파일 이름 바꾸기 함수의 반환문 처리 확인
🔧 검증 코드
Vvveb CMS의 파일 이름 바꾸기 함수를 포함한 PHP 파일들을 검색하여 설치 여부 확인 및 반환문 누락 여부 검토
find /var/www -type f -name '*.php' 2>/dev/null | xargs grep -l 'media.*rename\|file.*rename' | head -3