🇰🇷 한글 설명
Speedywiki 2.0의 index.php에서 파일 업로드 기능에 대한 제약이 없어, 인증된 사용자가 upload 파라미터를 1로 설정하여 임의의 PHP 파일을 업로드할 수 있습니다. 업로드된 PHP 파일은 서버에서 실행되어 전체 시스템이 제어될 수 있습니다.
💡 쉬운 설명
Speedywiki 웹사이트에서 로그인한 사용자가 악의적인 파일(예: 해킹 도구)을 무제한으로 업로드할 수 있는 보안 구멍입니다. 업로드된 파일이 실행되면 공격자가 서버 전체를 장악할 수 있습니다.
🇺🇸 원문 (English)
Unrestricted file upload vulnerability in index.php in Speedywiki 2.0 allows remote authenticated users to upload and execute arbitrary PHP code by setting the upload parameter to 1.
📍 영향받는 시스템
Speedywiki 2.0 (index.php)
⚔️ 공격 벡터
인증된 사용자가 upload=1 파라미터를 POST/GET으로 전송하여 PHP 파일 업로드 후 실행
🛡️ 대응 방법
Speedywiki를 최신 버전으로 업그레이드하거나, index.php의 파일 업로드 기능에 확장자 검증 및 MIME 타입 체크를 추가하고, 업로드 디렉토리에 PHP 실행 권한 제거
🔧 검증 코드
Speedywiki의 index.php 파일이 발견되고 upload 관련 코드가 있으면 해당 버전이 설치되어 있습니다. 결과가 없으면 Speedywiki가 설치되지 않았거나 버전이 다릅니다.
find / -name 'index.php' -path '*speedywiki*' -type f 2>/dev/null | head -1 | xargs grep -l 'upload' 2>/dev/null