🇰🇷 한글 설명
MongoDB Ruby Driver의 GridFS 구성 요소에서 데이터 쿼리 로직의 특수 요소 중화 미흡으로 인해 발생합니다. 인증된 사용자가 파일 식별자를 조작하여 의도하지 않은 파일 내용을 탈취하거나, GridFS 버킷 내의 모든 파일 청크를 삭제하여 데이터를 손실시킬 수 있습니다.
💡 쉬운 설명
파일을 찾는 이름표를 조작하여 다른 사람의 파일을 몰래 보거나, 저장된 모든 파일을 한꺼번에 지워버릴 수 있는 보안 결함입니다. 공격자가 입력한 특수 문자가 명령어로 오인되어 발생하는 문제입니다.
🇺🇸 원문 (English)
Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Ruby Driver can cause a caller-supplied structured file identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence the identifier passed by an affected application may obtain stored file content beyond the intended target or cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable.
📍 영향받는 시스템
MongoDB Ruby Driver (GridFS 구성 요소 포함 버전)
⚔️ 공격 벡터
인증된 사용자가 애플리케이션을 통해 GridFS 파일 식별자(identifier)에 조작된 쿼리 조건을 주입
🛡️ 대응 방법
MongoDB Ruby Driver를 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 라이브러리 버전이 취약점이 해결된 패치 버전인지 확인
gem list mongo | grep -E 'mongodb-ruby-driver'