🇰🇷 한글 설명
VictoriaMetrics의 vmrestore 도구에서 백업 경로 구성 요소를 검증하지 않는 취약점이 발견되었습니다. 공격자가 S3나 GCS와 같은 백업 소스의 객체 이름에 '..' 경로 요소를 삽입할 경우, 복구 과정에서 의도된 저장 경로를 벗어나 파일 시스템의 다른 위치에 파일을 생성하거나 덮어쓸 수 있습니다.
💡 쉬운 설명
백업 데이터를 복구할 때 파일 이름에 포함된 특수 문자를 제대로 검사하지 않아 발생하는 문제입니다. 이를 통해 해커가 원래 저장되어야 할 폴더가 아닌 시스템의 중요한 다른 위치에 악성 파일을 심을 수 있습니다.
🇺🇸 원문 (English)
VictoriaMetrics is a scalable solution for monitoring and managing time series data. Prior to 1.122.25, 1.136.12, and 1.146.0, vmrestore does not validate backup part path components before using lib/backup/actions/restore.go and lib/backup/fslocal/fslocal.go to write restored data below storageDataPath. An attacker who can supply or modify an S3, GCS, Azure Blob Storage, or other backup source can place .. components in object names. When an operator restores that source, the crafted names can create or overwrite files outside the intended restore root within the filesystem permissions of the vmrestore process. This issue is fixed in versions 1.122.25, 1.136.12, and 1.146.0.
📍 영향받는 시스템
VictoriaMetrics 1.122.25, 1.136.12, 1.146.0 미만 버전
⚔️ 공격 벡터
조작된 경로 요소(..)가 포함된 백업 소스(S3, GCS, Azure Blob 등)를 통한 경로 조작 공격
🛡️ 대응 방법
VictoriaMetrics를 최신 수정 버전(1.122.25, 1.136.12 또는 1.146.0 이상)으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 취약점이 해결된 버전(1.122.25, 1.136.12, 1.146.0 이상)인지 확인하십시오.
victoria-metrics --version 2>/dev/null || docker inspect victoria-metrics --format '{{.Config.Image}}'