🇰🇷 한글 설명
Malcolm의 파일 업로드 구성 요소가 수정되지 않은 upstream FilePond PHP 서버를 포함하고 있어 발생한 취약점입니다. 공격자가 특정 API 경로를 통해 임의의 URL을 다운로드하도록 명령할 수 있으며, HEAD 요청을 통해 서버 내부의 데이터를 탈취할 수 있습니다.
💡 쉬운 설명
해커가 서버에 명령을 내려 외부의 파일을 가져오게 하거나, 서버 안에 숨겨진 중요한 정보를 몰래 읽어갈 수 있는 보안 구멍입니다. 파일 업로드 기능의 설정 오류를 악용하여 정보를 빼내는 방식입니다.
🇺🇸 원문 (English)
Malcolm file-upload component ships the upstream FilePond PHP server (pqina/filepond-server-php) largely unmodified: Dockerfile copies all upstream *.php files and Malcolm only overwrites config.php and submit.php. Upstream index.php exposes a fetch API route that instructs the server to download an arbitrary URL with curl (including FOLLOWLOCATION) and, for HEAD requests, stores the fetched response body in the upload container's transfer directory and returns the transfer ID to the caller, enabling full readback of the fetched content.
📍 영향받는 시스템
Malcolm (FilePond PHP server 구성 요소 포함 버전)
⚔️ 공격 벡터
FilePond PHP 서버의 index.php 내 fetch API를 이용한 임의 URL 다운로드 및 데이터 읽기 공격
🛡️ 대응 방법
FilePond PHP 서버의 취약한 API 경로를 차단하거나, 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
명령어 실행 시 서버가 외부 URL의 내용을 처리하거나 응답을 반환하면 취약한 상태입니다.
curl -I -X HEAD http://<target-ip>/index.php