🇰🇷 한글 설명
MISP의 CollectionsController.add() 메서드가 POST 요청에 대해서만 공유 그룹 권한 확인을 수행하여, PUT 요청 시 이 검증을 우회할 수 있는 취약점입니다. 인증된 사용자가 권한이 없는 공유 그룹을 대상으로 컬렉션을 생성하여 데이터를 부적절하게 노출할 수 있습니다.
💡 쉬운 설명
로그인한 사용자가 원래 접근할 수 없는 그룹에 데이터를 몰래 공유할 수 있는 보안 허점이 발견되었습니다. 공격자가 특정 요청 방식(PUT)을 사용하면 시스템의 권한 확인 절차를 건너뛸 수 있습니다.
🇺🇸 원문 (English)
In MISP, the CollectionsController add() method enforced the sharing-group usability authorization check and element capture only when the HTTP request method was POST. However, the underlying CRUDComponent::add() method persists data on both POST and PUT requests. As a result, an authenticated user could issue a PUT request to the collections/add endpoint, bypassing the sharing-group authorization check entirely. This allowed the creation of a collection with distribution=4 (shared with a specific sharing group) targeting a sharing group that the user was not authorized to use. The bypassed check would normally verify that the current user has access to the specified sharing group before allowing the collection to be associated with it.
The security impact is that an authenticated user can place collection data into a sharing group context they do not have legitimate access to, potentially exposing that data to all members of the unauthorized sharing group and violating the intended access-control boundaries of the MISP instance.
The vulnerability requires an authenticated session and knowledge of a valid sharing group identifier; no user interaction or special tooling is needed beyond sending a PUT request instead of a POST request to the same endpoint.
📍 영향받는 시스템
MISP (Malware Information Sharing Platform) - 특정 버전 미기재 (CollectionsController 관련 기능 사용 시)
⚔️ 공격 벡터
인증된 사용자가 collections/add 엔드포인트에 POST 대신 PUT 요청을 전송하여 권한 검증 우회
🛡️ 대응 방법
PUT 요청 시에도 공유 그룹 사용 권한을 확인하도록 소스 코드를 수정하거나, 권한 검증 로직을 CRUDComponent 수준으로 강화해야 합니다.
🔧 검증 코드
PUT 요청을 통해 권한이 없는 sharing_group_id로 컬렉션 생성이 성공하면 취약한 상태입니다.
curl -X PUT -u user:pass -H 'Content-Type: application/json' -d '{"distribution": 4, "sharing_group_id": "unauthorized_id"}' https://misp-instance/collections/add
💻 영향받는 소프트웨어
IBM Security Verify Access