🇰🇷 한글 설명
Moonware(Dale Mooney Gallery)의 config/upload.php에서 파일 업로드 검증이 없는 취약점이 존재합니다. 원격 공격자는 제한 없이 images/ 디렉토리에 임의의 PHP 파일을 업로드하여 서버에서 실행시킬 수 있습니다. 이는 config/admin.php와 연관된 인증 우회 공격으로 확대될 수 있습니다.
💡 쉬운 설명
갤러리 프로그램의 파일 업로드 기능에 보안 검사가 없어서, 누구나 위험한 파일을 업로드해서 서버를 장악할 수 있습니다. 마치 집의 현관에 자물쇠가 없는 것과 같습니다.
🇺🇸 원문 (English)
Unrestricted file upload vulnerability in config/upload.php in Moonware (aka Dale Mooney Gallery) allows remote attackers to upload and execute arbitrary PHP files in images/, possibly related to config/admin.php.
📍 영향받는 시스템
Moonware (Dale Mooney Gallery) - 2007년경 및 이전 버전
⚔️ 공격 벡터
원격 공격자가 HTTP POST 요청으로 config/upload.php에 PHP 쉘 파일을 전송하여 images/ 디렉토리에 저장 후 웹브라우저로 접근하여 실행
🛡️ 대응 방법
업로드 파일의 MIME 타입/확장자 검증, 업로드 디렉토리의 PHP 실행 금지(웹서버 설정), 파일명 재생성, 최신 보안 패치 적용
🔧 검증 코드
취약한 upload.php가 발견되고 파일 타입 검증 함수(mime_type, finfo_file, pathinfo 등)가 없으면 즉시 패치 적용 필요
find / -name 'upload.php' -path '*/config/*' 2>/dev/null && grep -l 'move_uploaded_file' $(find / -name 'upload.php' -path '*/config/*' 2>/dev/null) | xargs grep -L 'mime_type\|finfo_file\|pathinfo.*php'