🇰🇷 한글 설명
gitoxide gix-fs 0.23.0 미만 버전에서 워크트리 체크아웃 메커니즘의 경로 검증 우회 취약점이 발견되었습니다. 공격자는 심볼릭 링크 조작을 통해 워크트리 디렉토리를 벗어나 파일 시스템 외부로 파일을 작성할 수 있으며, 이를 통해 코드 실행이나 파일 조작이 가능합니다.
💡 쉬운 설명
프로그램이 정해진 폴더 안에서만 작업해야 하는데, 가짜 연결 통로(심볼릭 링크)를 이용해 폴더 밖의 중요한 파일을 건드릴 수 있는 문제입니다. 이를 통해 해커가 컴퓨터의 다른 파일을 망가뜨리거나 악성 프로그램을 실행할 수 있습니다.
🇺🇸 원문 (English)
gitoxide gix-fs before 0.23.0 contains a path validation bypass vulnerability in the worktree checkout mechanism that allows attackers to escape the worktree directory via symlink manipulation. During forced checkout with overwrite_existing enabled, attackers can craft malicious repository trees where symlink entries replace validated directories, causing subsequent files to be written outside the worktree through the symlink for code execution or file manipulation.
📍 영향받는 시스템
gitoxide gix-fs version < 0.23.0
⚔️ 공격 벡터
악의적으로 조작된 저장소 트리 내의 심볼릭 링크를 이용한 경로 검증 우회 및 파일 쓰기
🛡️ 대응 방법
gitoxide gix-fs를 0.23.0 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 패키지 정보에서 gix-fs의 버전을 확인하여 0.23.0 미만인지 체크합니다.
cargo pkgid | grep gix-fs || echo 'Not found'