🇰🇷 한글 설명
Dgraph 오픈소스 분산 GraphQL 데이터베이스의 restoreTenant 관리자 뮤테이션이 인증 미들웨어 설정에서 누락되어 인증 없이 실행될 수 있는 취약점입니다. 공격자는 이를 통해 데이터베이스 전체를 덮어쓰거나, 서버 측 파일을 읽고, SSRF 공격을 수행할 수 있습니다.
💡 쉬운 설명
데이터베이스 관리자만 사용할 수 있는 복구 기능에 아무나 접근할 수 있는 보안 구멍이 발견되었습니다. 해커가 이 기능을 이용해 데이터베이스를 망가뜨리거나 서버 내부의 중요한 파일을 훔쳐갈 수 있습니다.
🇺🇸 원문 (English)
Dgraph is an open source distributed GraphQL database. Prior to 25.3.1, the restoreTenant admin mutation is missing from the authorization middleware config (admin.go), making it completely unauthenticated. Unlike the similar restore mutation which requires Guardian-of-Galaxy authentication, restoreTenant executes with zero middleware. This mutation accepts attacker-controlled backup source URLs (including file:// for local filesystem access), S3/MinIO credentials, encryption key file paths, and Vault credential file paths. An unauthenticated attacker can overwrite the entire database, read server-side files, and perform SSRF. This vulnerability is fixed in 25.3.1.
📍 영향받는 시스템
Dgraph versions prior to 25.3.1
⚔️ 공격 벡터
인증되지 않은 상태에서 restoreTenant 뮤테이션을 호출하여 악의적인 백업 URL 및 파일 경로 전달
🛡️ 대응 방법
Dgraph를 최신 보안 패치가 적용된 버전인 25.3.1 이상으로 업데이트하십시오.
🔧 검증 코드
명령어 결과에 '25.3.1' 이상의 버전 정보가 포함되어 있으면 안전합니다.
curl -s http://<dgraph-host>:<port>/version | grep -E '25.3.1'