🇰🇷 한글 설명
GitHub Enterprise Server에서 리포지토리 기여자가 내부 호스트로 요청을 보내도록 유도할 수 있는 SSRF 취약점이 발견되었습니다. 이 취약점은 GCP 서비스 계정 자격 증명에 포함된 토큰 엔드포인트를 검증하는 과정에서 목적지 제한이 없어 발생하며, 이를 연쇄적으로 이용할 경우 원격 코드 실행(RCE)이 가능합니다.
💡 쉬운 설명
해커가 조작된 파일을 올리면 서버가 해커가 지정한 내부 주소로 몰래 접속하게 만드는 보안 구멍입니다. 이 과정을 통해 해커는 서버의 제어권을 완전히 뺏을 수도 있습니다.
🇺🇸 원문 (English)
A Server-Side Request Forgery (SSRF) vulnerability was identified in GitHub Enterprise Server that allowed a repository contributor to cause the appliance to issue requests to attacker-controlled internal hosts, which could be chained to achieve remote code execution on the appliance. The secret scanning validator for GCP service account credentials trusted the token endpoint embedded in a committed credential and issued a request to it without restricting the destination. Exploitation required an authenticated user with permission to push to a repository on an instance with GitHub Advanced Security and secret scanning validity checks enabled, a non-default configuration. This vulnerability affected GitHub Enterprise Server 3.20, 3.21, and 3.22 and was fixed in versions 3.20.9, 3.21.7, and 3.22.2. This vulnerability was reported through the GitHub Bug Bounty program.
📍 영향받는 시스템
GitHub Enterprise Server 3.20, 3.21, 3.22
⚔️ 공격 벡터
권한이 있는 사용자가 조작된 GCP 자격 증명을 포함한 코드를 푸시하여 서버가 내부 네트워크로 요청을 보내도록 유도
🛡️ 대응 방법
GitHub Enterprise Server를 최신 패치 버전(3.20.9, 3.21.7, 3.22.2 이상)으로 업데이트
🔧 검증 코드
출력된 버전 번호가 패치된 버전(3.20.9, 3.21.7, 3.22.2 이상)인지 확인합니다.
curl -s http://localhost/api/v3/connection | grep -E '"version": "(3.20\.[0-9]+|3.21\.[0-9]+|3.22\.[0-9]+)"'
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
💻 영향받는 소프트웨어
Cisco Email Security Appliance