🇰🇷 한글 설명
Laravel의 MongoDB 통합 구성 요소에서 데이터 쿼리 로직의 부적절한 중화로 인해 발생합니다. 명시적 일치 필터에 배열이 전달될 경우, 이를 리터럴 값이 아닌 쿼리 조건으로 해석하여 의도하지 않은 문서를 조회하거나 삭제할 수 있습니다.
💡 쉬운 설명
데이터를 찾거나 지울 때 입력값이 단순한 글자가 아니라 특수한 명령어로 작동할 수 있는 취약점입니다. 공격자가 이를 악용하면 원래 접근해서는 안 되는 정보를 보거나 원치 않는 데이터를 삭제할 수 있습니다.
🇺🇸 원문 (English)
Improper neutralization of special elements in data query logic in the MongoDB integration for Laravel can cause an array supplied to an explicit equality filter to be interpreted as a query condition rather than as a literal value. This affects the three-argument `where` method when the operator is `=` or `eq`, as well as the `find` and `delete` methods that use that code path. An attacker who can cause an affected application to supply an operator-shaped array to one of these APIs may obtain a document other than the intended target or delete documents beyond the intended target.
📍 영향받는 시스템
Laravel MongoDB integration (where, find, delete 메서드 사용 시)
⚔️ 공격 벡터
공격자가 조작된 배열 형태의 연산자를 API에 전달하여 쿼리 로직을 변조함
🛡️ 대응 방법
Laravel MongoDB 통합 패키지를 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 취약점이 해결된 최신 버전인지 확인하십시오.
composer show mongodb/laravel-mongodb | grep 'versions'