🇰🇷 한글 설명
GitPython 3.1.57 미만 버전의 unsafe_git_archive_options 가드에 --add-file 및 --add-virtual-file 옵션이 누락되어 있습니다. 공격자는 Repo.archive() 함수에 해당 옵션을 주입하여 파일 시스템의 임의 파일을 읽고 아카이브에 포함시킬 수 있습니다.
💡 쉬운 설명
GitPython 라이브러리의 보안 검사 기능이 완벽하지 않아 발생하는 문제입니다. 해커가 특수 명령어를 사용하여 서버에 있는 중요한 파일을 몰래 가져갈 수 있습니다.
🇺🇸 원문 (English)
GitPython before 3.1.57 contains an incomplete denylist in the unsafe_git_archive_options guard that omits --add-file and --add-virtual-file options. Attackers can supply these options to Repo.archive() to read arbitrary files from the filesystem and include them in the returned archive.
📍 영향받는 시스템
GitPython 3.1.57 미만 모든 버전
⚔️ 공격 벡터
Repo.archive() 메서드 호출 시 악의적인 --add-file 또는 --add-virtual-file 옵션 주입
🛡️ 대응 방법
GitPython 라이브러리를 3.1.57 이상 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 3.1.57보다 낮으면 취약한 상태입니다.
pip show gitpython | grep Version