🇰🇷 한글 설명
Directus 12.0.0 미만 버전에서 파일 URL 가져오기 기능의 SSRF 보호를 우회할 수 있는 취약점이 발견되었습니다. 공격자가 0.0.0.0 주소를 사용하여 서버 내부의 로컬 서비스에 접근하고 그 응답을 파일 형태로 내려받을 수 있습니다.
💡 쉬운 설명
서버가 외부 파일을 가져오는 기능을 악용하여, 서버 내부의 비밀스러운 정보나 다른 서비스에 몰래 접근할 수 있는 문제입니다. 공격자는 이를 통해 서버 내부 네트워크에 있는 데이터에 접근할 수 있습니다.
🇺🇸 원문 (English)
Directus is a real-time API and App dashboard for managing SQL database content. Prior to 12.0.0, the SSRF protection on Directus's file-import-from-URL feature can be bypassed using the address 0.0.0.0 because api/src/request/is-denied-ip.ts treats 0.0.0.0 as a keyword for local interfaces but never blocks the literal address itself. On Linux and macOS, connecting to 0.0.0.0 reaches localhost, so an authenticated user with file-upload rights can make the server fetch internal services through the /files/import endpoint and retrieve the response as a downloadable file. This issue is fixed in version 12.0.0.
📍 영향받는 시스템
Directus 12.0.0 미만 모든 버전
⚔️ 공격 벡터
인증된 사용자가 /files/import 엔드포인트에 0.0.0.0 주소를 사용하여 내부 서비스 요청
🛡️ 대응 방법
Directus를 최신 버전인 12.0.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 12.0.0 미만인지 확인하십시오.
npm list directus 2>/dev/null | grep -E 'directus@'