🇰🇷 한글 설명
Betheme WordPress 테마의 아이콘 업로드 기능(upload_icons)에서 사용자가 업로드한 ZIP 파일의 내용을 검증하지 않고 공개 디렉토리에 압축 해제하는 취약점입니다. 저자 권한 이상의 인증된 공격자가 PHP 파일을 포함한 악의적 파일을 업로드할 수 있으며, 이를 통해 원격 코드 실행(RCE)이 가능합니다.
💡 쉬운 설명
WordPress 관리자가 아이콘 팩을 업로드할 때, 악의적인 사람이 숨겨진 PHP 파일이 들어있는 ZIP 파일을 함께 업로드할 수 있는 문제입니다. 서버의 웹 접근이 가능한 영역에 설치되어 웹사이트를 완전히 제어할 수 있습니다.
🇺🇸 원문 (English)
The Betheme theme for WordPress is vulnerable to Arbitrary File Upload in versions up to, and including, 28.4. This is due to the upload_icons() function workflow moving and unzipping user-controlled ZIP files into a public uploads directory without validating extracted file types. This makes it possible for authenticated attackers, with author-level access and above, to upload arbitrary files (including PHP) and achieve remote code execution via the Icons icon-pack upload flow.
📍 영향받는 시스템
Betheme WordPress 테마 버전 28.4 이하
⚔️ 공격 벡터
저자 권한 이상의 인증된 사용자가 Icons 아이콘팩 업로드 기능을 통해 PHP가 포함된 ZIP 파일을 업로드하여 RCE 달성
🛡️ 대응 방법
Betheme 테마를 28.5 이상 버전으로 업데이트하고 파일 업로드 검증 기능 작동 확인
🔧 검증 코드
반환된 버전 번호가 28.4 이하면 취약, 28.5 이상이면 패치 완료, 파일이 없으면 Betheme 미설치
grep "^Version:" /var/www/html/wp-content/themes/betheme/style.css 2>/dev/null | head -1