🇰🇷 한글 설명
Dokeos 1.8.4의 프로필 페이지(main/auth/profile.php)에서 인증된 사용자가 이중 확장자(.php.jpg 등)를 가진 파일을 업로드하여 arbitrary PHP 코드를 실행할 수 있는 취약점입니다. 업로드된 파일은 main/upload/users/ 디렉토리 아래에서 접근 가능하여 웹 셸로 악용될 수 있습니다.
💡 쉬운 설명
로그인한 사용자가 프로필 페이지에서 속임수를 써서 실행 가능한 프로그램 파일을 업로드할 수 있습니다. 공격자는 이를 통해 서버 내 파일을 삭제하거나 정보를 유출할 수 있습니다.
🇺🇸 원문 (English)
Unrestricted file upload vulnerability in the "My productions" component for main/auth/profile.php (aka the "My profile" page) in Dokeos 1.8.4 allows remote authenticated users to upload and execute arbitrary PHP files via a filename with a double extension, which can then be accessed through a URI under main/upload/users/.
📍 영향받는 시스템
Dokeos 1.8.4 이하
⚔️ 공격 벡터
인증된 사용자가 My profile 페이지의 파일 업로드 기능에서 이중 확장자 파일명을 이용하여 PHP 파일을 업로드
🛡️ 대응 방법
Dokeos를 1.8.5 이상으로 업그레이드하거나 업로드 파일의 확장자 검증 로직을 강화하여 이중 확장자를 차단
🔧 검증 코드
명령어가 profile.php 파일을 찾으면 해당 버전이 설치되어 있으며, Dokeos 버전 정보는 /path/to/dokeos/main/inc/conf/configuration.php에서 확인 가능합니다
find /path/to/dokeos -name '*.php' -path '*/main/auth/profile.php' 2>/dev/null | head -1