🇰🇷 한글 설명
MongoDB Java Driver의 GridFS 구성 요소에서 데이터 쿼리 로직의 특수 요소 중립화 미흡으로 인해 발생합니다. 인증된 사용자가 파일 식별자를 조작하여 의도하지 않은 파일 내용을 탈취하거나, 버킷 내의 모든 GridFS 파일 청크를 삭제하여 데이터를 손상시킬 수 있습니다.
💡 쉬운 설명
파일을 찾을 때 사용하는 이름표를 조작하여 다른 사람의 파일을 몰래 보거나, 저장된 모든 파일을 지워버릴 수 있는 보안 약점입니다. 공격자가 파일 이름 대신 특수한 명령어를 입력하여 시스템을 속이는 방식입니다.
🇺🇸 원문 (English)
Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Java 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. The affected rename operation may also rename a stored file other than the intended target.
📍 영향받는 시스템
MongoDB Java Driver (GridFS 구성 요소 포함 버전)
⚔️ 공격 벡터
인증된 사용자가 애플리케이션을 통해 전달되는 파일 식별자(Identifier)에 특수 쿼리 조건을 삽입하여 공격
🛡️ 대응 방법
MongoDB Java Driver를 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 결과에서 사용 중인 mongodb-driver의 버전을 확인하여 취약한 버전인지 대조
mvn dependency:list | grep mongodb-driver-core