🇰🇷 한글 설명
GitHub Enterprise Server의 Dependabot 업데이트 컨테이너 내에서 코드 실행이 가능한 공격자가 임의의 저장소 경로에 파일을 쓸 수 있는 경로 탐색 취약점이 발견되었습니다. 공격자는 이를 통해 .github/workflows/ 디렉토리에 악성 워크플로우 파일을 삽입할 수 있으며, 특정 조건에서 저장소의 GitHub Actions 비밀 정보에 접근할 수 있습니다.
💡 쉬운 설명
Dependabot이라는 자동 업데이트 도구의 허점을 이용해 해커가 몰래 악성 명령 파일을 저장소에 심을 수 있는 문제입니다. 이 파일을 통해 해커가 저장소에 저장된 중요한 비밀번호나 인증 키를 훔쳐갈 위험이 있습니다.
🇺🇸 원문 (English)
A path traversal vulnerability was identified in GitHub Enterprise Server that allowed an attacker who had code execution inside the Dependabot updater container to write files to arbitrary repository paths, including GitHub Actions workflow files under .github/workflows/ as the path validation did not check the effective path which the attacker could control through the dependency file's directory and symlink target. If the repository used a pull_request_target workflow or had auto-merge enabled, an injected workflow could execute with access to the repository's GitHub Actions secrets. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.22 and was fixed in versions 3.21.3, 3.20.5, 3.19.9, 3.18.12, 3.17.18.
📍 영향받는 시스템
GitHub Enterprise Server 3.22 미만 모든 버전
⚔️ 공격 벡터
Dependabot 컨테이너 내 코드 실행 권한을 이용한 심볼릭 링크 및 경로 탐색 공격
🛡️ 대응 방법
GitHub Enterprise Server를 수정 버전(3.21.3, 3.20.5, 3.19.9, 3.18.12, 3.17.18 이상)으로 업데이트하십시오.
🔧 검증 코드
현재 설치된 GitHub Enterprise Server의 버전을 확인하여 취약한 버전 범위에 해당하는지 체크합니다.
curl -s https://api.github.com/repos/YOUR_ORG/YOUR_REPO/installation/repositories | grep -E '"version": "(3\.[0-9]+\.[0-9]+)"'