🇰🇷 한글 설명
Snews CMS 1.7의 파일 업로드 검증 부재로 인한 취약점으로, 인증 없는 공격자가 snews_files 디렉토리에 PHP 등 임의의 실행 가능한 파일을 업로드할 수 있습니다. 업로드된 파일에 직접 접근하여 PHP 코드를 실행함으로써 원격코드실행(RCE)이 가능합니다.
💡 쉬운 설명
웹사이트가 누구나 아무 검사 없이 파일을 올릴 수 있게 놔두는 보안 문제입니다. 해커가 악성 프로그램 파일을 올린 후 실행해서 서버를 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
Snews CMS 1.7 contains an unrestricted file upload vulnerability that allows unauthenticated attackers to upload arbitrary files including PHP executables to the snews_files directory. Attackers can upload malicious PHP files through the multipart form-data upload endpoint and execute them by accessing the uploaded file path to achieve remote code execution.
📍 영향받는 시스템
Snews CMS 버전 1.7 및 이전 버전
⚔️ 공격 벡터
multipart form-data를 이용한 snews_files 디렉토리로의 인증되지 않은 파일 업로드 후 업로드된 파일 경로 접근으로 PHP 실행
🛡️ 대응 방법
Snews CMS를 최신 버전으로 업그레이드하거나, 파일 업로드 기능을 비활성화하고, 웹서버 설정에서 snews_files 디렉토리의 PHP 실행 권한을 제거하며, 엄격한 파일 타입 검증 추가
🔧 검증 코드
snews_files 디렉토리가 존재하면 취약점이 존재할 가능성 높음 (디렉토리가 검색되면 경로 출력, 없으면 아무것도 출력 안 됨)
find / -type d -name snews_files 2>/dev/null | head -1