🇰🇷 한글 설명
easy-CMS 0.1.2의 choose_file.php에서 mod_mime이 설치된 경우, 다중 확장자를 가진 파일 업로드를 제한하지 않는 취약점이 있습니다. 공격자는 GIF 확장자가 포함된 PHP 파일을 업로드한 후 Repositories 디렉토리에서 해당 파일에 직접 접근하여 임의의 PHP 코드를 실행할 수 있습니다.
💡 쉬운 설명
파일 이름에 가짜 확장자를 붙여 위험한 프로그램을 서버에 올릴 수 있는 취약점입니다. 이를 통해 해커가 서버를 원격으로 제어할 수 있게 됩니다.
🇺🇸 원문 (English)
choose_file.php in easy-CMS 0.1.2, when mod_mime is installed, does not restrict uploads of filenames with multiple extensions, which allows remote attackers to execute arbitrary PHP code by uploading a PHP file with a GIF file extension, then directly accessing that file in the Repositories directory.
📍 영향받는 시스템
easy-CMS 0.1.2
⚔️ 공격 벡터
다중 확장자(예: .php.gif)를 이용한 악성 PHP 파일 업로드 및 직접 실행
🛡️ 대응 방법
파일 업로드 시 화이트리스트 기반의 확장자 검증을 적용하고, 업로드 디렉토리의 실행 권한을 제거하십시오.
🔧 검증 코드
결과에 easy-CMS 0.1.2 버전 정보가 출력되면 해당 취약점에 노출된 버전입니다.
grep -r "easy-CMS" /var/www/html | grep "0.1.2"