🇰🇷 한글 설명
Computer Vision Annotation Tool (CVAT)에서 발생하는 SSRF 취약점으로, 공격자가 내부 네트워크 IP나 도메인을 포함한 클라우드 스토리지 URL을 지정하여 내부 서버를 탐색할 수 있습니다. 이를 통해 내부 웹 서버의 파일을 목록화하거나 추출하고, 반대로 파일을 덮어쓰는 등의 권한 남용이 가능합니다.
💡 쉬운 설명
CVAT 사용자가 가짜 주소를 입력하여 회사 내부 네트워크에 몰래 접근할 수 있는 보안 구멍입니다. 이를 통해 공격자는 내부 서버에 저장된 중요한 이미지나 데이터를 훔치거나 내용을 바꿀 수 있습니다.
🇺🇸 원문 (English)
Computer Vision Annotation Tool (CVAT) is an interactive video and image annotation tool for computer vision. CVAT allows users to supply custom endpoint URLs for cloud storages based on Amazon S3 and Azure Blob Storage. Starting in version 2.1.0 and prior to version 2.14.3, an attacker with a CVAT account can exploit this feature by specifying URLs whose host part is an intranet IP address or an internal domain name. By doing this, the attacker may be able to probe the network that the CVAT backend runs in for HTTP(S) servers. In addition, if there is a web server on this network that is sufficiently API-compatible with an Amazon S3 or Azure Blob Storage endpoint, and either allows anonymous access, or allows authentication with credentials that are known by the attacker, then the attacker may be able to create a cloud storage linked to this server. They may then be able to list files on the server; extract files from the server, if these files are of a type that CVAT supports reading from cloud storage (media data (such as images/videos/archives), importable annotations or datasets, task/project backups); and/or overwrite files on this server with exported annotations/datasets/backups. The exact capabilities of the attacker will depend on how the internal server is configured. Users should upgrade to CVAT 2.14.3 to receive a patch. In this release, the existing SSRF mitigation measures are applied to requests to cloud providers, with access to intranet IP addresses prohibited by default. Some workarounds are also available. One may use network security solutions such as virtual networks or firewalls to prohibit network access from the CVAT backend to unrelated servers on your internal network and/or require authentication for access to internal servers.
📍 영향받는 시스템
CVAT version 2.1.0 up to 2.14.2
⚔️ 공격 벡터
CVAT 계정을 가진 공격자가 클라우드 스토리지 설정 시 내부 네트워크 IP/도메인을 포함한 악의적인 URL을 입력하여 SSRF 공격 수행
🛡️ 대응 방법
CVAT를 최신 패치가 적용된 버전인 2.14.3 이상으로 업그레이드하거나, 방화벽을 통해 CVAT 백엔드의 내부 네트워크 접근을 제한하십시오.
🔧 검증 코드
API 응답에서 버전 정보가 2.14.3 미만인지 확인하여 취약 여부를 판단합니다.
curl -s http://<CVAT_HOST>/api/version | grep -E '2\.(1[0-4]|\d+)\.[0-3]' || echo 'Version might be vulnerable'