🇰🇷 한글 설명
Harness Open Source Git LFS 서버(Gitness) 3.3.0 이전 버전에서 파일 업로드 API의 경로 검증 부족으로 인해, 인증된 사용자가 서버의 임의 위치에 파일을 작성할 수 있는 취약점. 공격자는 이를 악용하여 서버를 완전히 손상시킬 수 있습니다.
💡 쉬운 설명
Harness 서버의 파일 업로드 기능에서 경로 검증이 제대로 되지 않아, 로그인한 공격자가 서버 어디든지 파일을 저장할 수 있는 문제입니다. 이로 인해 서버 전체가 손상될 수 있습니다.
🇺🇸 원문 (English)
Harness Open Source is an end-to-end developer platform with Source Control Management, CI/CD Pipelines, Hosted Developer Environments, and Artifact Registries. Prior to version 3.3.0, Open Source Harness git LFS server (Gitness) exposes api to retrieve and upload files via git LFS. Implementation of upload git LFS file api is vulnerable to arbitrary file write. Due to improper sanitization for upload path, a malicious authenticated user who has access to Harness Gitness server api can use a crafted upload request to write arbitrary file to any location on file system, may even compromise the server. Users using git LFS are vulnerable. This issue has been patched in version 3.3.0.
📍 영향받는 시스템
Harness Open Source 버전 3.3.0 미만 (Git LFS 활성화된 Gitness)
⚔️ 공격 벡터
인증된 사용자가 경로 조작(path traversal)을 포함한 파일 업로드 요청 전송
🛡️ 대응 방법
Harness Open Source를 3.3.0 이상으로 즉시 업그레이드
🔧 검증 코드
출력된 버전이 3.3.0 이상이면 안전, 미만이면 취약함
grep -r 'version' /opt/harness/*/config.yaml 2>/dev/null | grep -oP 'version[\s:]+\K[0-9]+\.[0-9]+\.[0-9]+'