🇰🇷 한글 설명
Gitea에서 푸시 미러의 원격 주소 검증이 생성 시점에만 이루어지는 취약점이 발견되었습니다. 이로 인해 미러 생성 후 주소가 차단된 내부 주소로 변경되더라도 동기화 시 검증 없이 git push가 실행되어 내부 Git 서비스로 데이터를 강제 전송할 수 있습니다.
💡 쉬운 설명
미러링 기능을 설정할 때 한 번만 검사하고 이후에는 검사하지 않는 허점이 있습니다. 이를 이용해 공격자가 내부 네트워크에 있는 중요한 서버로 몰래 데이터를 보낼 수 있습니다.
🇺🇸 원문 (English)
Gitea validated a push mirror's remote address against the `[migrations]` allow and block lists only when the mirror was created. Each synchronization passed the stored address directly to `git push`, so a name that later resolved to a blocked or internal address was still reached. A user with administrator access to a repository, which includes repositories they create themselves, could aim push mirror synchronization at internal Git services and force-push the repository's contents to them.
📍 영향받는 시스템
Gitea (푸시 미러 기능 사용 시)
⚔️ 공격 벡터
저장소 관리자 권한을 가진 사용자가 미러 주소를 내부 네트워크 주소로 변경하여 동기화 유도
🛡️ 대응 방법
Gitea를 최신 보안 패치가 적용된 버전으로 업데이트하여 동기화 시마다 주소를 검증하도록 수정
🔧 검증 코드
출력된 버전이 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.