🇰🇷 한글 설명
Rust로 구현된 gitoxide의 gix-sec 크레이트에서 Windows 환경의 권한 검증 오류가 발견되었습니다. 관리자 권한으로 실행된 프로그램이 다른 사용자가 소유한 저장소를 신뢰할 수 있는 것으로 잘못 판단하여, 저장소 설정이나 훅(hook)을 통해 관리자 권한으로 명령어가 실행될 수 있습니다.
💡 쉬운 설명
관리자 권한으로 프로그램을 실행할 때, 다른 사람이 만든 위험한 폴더를 안전한 폴더로 착각하는 보안 결함이 있습니다. 이를 통해 해커가 관리자의 권한을 가로채 컴퓨터를 제어할 위험이 있습니다.
🇺🇸 원문 (English)
gitoxide is an implementation of git written in Rust. Prior to 0.13.3, the gix-sec crate on Windows incorrectly treats repositories controlled by another user as trusted when an administrator runs a dependent program with an unfiltered elevated token. In gix-sec/src/identity.rs, gix_sec::identity::is_path_owned_by_current_user obtains folder_owner and token_owner, but its administrator-specific IsWellKnownSid and CheckTokenMembership checks examine the running token rather than confirming the directory owner. This bypasses safe.directory-style protection for repositories owned and configured by a limited user, allowing repository configuration or hooks to execute commands with the administrator's privileges when an affected operation is performed. Exploitation requires Windows, an elevated administrator, a program that relies on gix-sec trust results, and interaction with a repository controlled by another user. An unelevated UAC process is not affected, and cloning is not affected because repository configuration and hooks are not copied. This issue is fixed in version 0.13.3.
📍 영향받는 시스템
gitoxide 0.13.3 미만 버전 (Windows 환경)
⚔️ 공격 벡터
다른 사용자가 제어하는 저장소를 관리자 권한의 gitoxide 기반 프로그램으로 조작하여 권한 상승 유도
🛡️ 대응 방법
gitoxide를 0.13.3 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 0.13.3보다 낮으면 취약한 상태입니다.
cargo pkgid gitoxide | grep -oE 'gitoxide-[0-9]+\.[0-9]+\.[0-9]+' | cut -d'-' -f2