🇰🇷 한글 설명
WuzhiCMS 5.0.0의 썸네일 업로드 엔드포인트에서 발생하는 취약점으로, 인증된 저권한 사용자가 위험한 확장자를 가진 파일을 제한 없이 업로드할 수 있습니다. 파일 확장자에 대한 검증이나 콘텐츠 확인 과정이 없어, 공격자가 조작된 .php 파일을 업로드하여 서버에서 임의의 PHP 코드를 실행할 수 있습니다.
💡 쉬운 설명
웹사이트의 이미지 업로드 기능을 악용하여 해커가 몰래 악성 프로그램을 올릴 수 있는 문제입니다. 이 파일을 실행하면 해커가 서버를 마음대로 조종할 수 있게 됩니다.
🇺🇸 원문 (English)
An unrestricted upload of files with a dangerous type in the thumbnail-upload endpoint (/index.php?m=member&f=article&v=thumbUpload) of WuzhiCMS 5.0.0 allows an authenticated low-privileged member to upload a crafted .php file and execute arbitrary PHP code on the server, because the stored file extension is taken verbatim from the client-supplied filename with no extension allowlist or content validation and the file is written to the web-accessible uploadfile/ directory, from which the web server executes PHP.
📍 영향받는 시스템
WuzhiCMS 5.0.0
⚔️ 공격 벡터
인증된 사용자가 썸네일 업로드 기능을 통해 조작된 .php 파일을 업로드하여 원격 코드 실행(RCE) 수행
🛡️ 대응 방법
업로드 파일의 확장자 화이트리스트 검증을 도입하고, 파일 콘텐츠 검증 및 업로드 디렉토리의 실행 권한을 제거해야 합니다.
🔧 검증 코드
명령어 실행 결과로 업로드 디렉토리 내에 .php 파일이 존재한다면 취약할 가능성이 높습니다.
find /var/www/html/uploadfile/ -name '*.php' 2>/dev/null