🇰🇷 한글 설명
Gitea의 공유 비교 도우미가 풀 리퀘스트 업데이트 시 사용되는 토큰의 저장소 접근 권한 확인을 누락합니다. 이로 인해 공개 전용 토큰을 가진 사용자가 공개 베이스 저장소를 통해 비공개 헤드 저장소의 커밋 기록과 차이점(diff)을 조회할 수 있어 토큰의 공개 전용 제한을 우회할 수 있습니다.
💡 쉬운 설명
공개용 권한만 가진 사용자가 시스템의 허점을 이용해 몰래 비공개 저장소의 내용을 훔쳐볼 수 있는 보안 결함입니다. 이는 권한 설정이 제대로 작동하지 않아 발생하는 문제입니다.
🇺🇸 원문 (English)
Gitea's shared comparison helper omits the token repository-access check used when updating pull requests. A public-only token with read:repository scope can route a comparison or pull request creation through a public base repository and retrieve commit history and diffs from a private head repository accessible to the token owner. This bypasses the token's public-only restriction; it does not remove the account's underlying repository permission checks.
📍 영향받는 시스템
Gitea (취약한 버전)
⚔️ 공격 벡터
공개 전용 토큰을 사용하여 공개 저장소와 비공개 저장소를 비교하는 방식으로 비공개 데이터에 접근
🛡️ 대응 방법
Gitea를 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 Gitea의 버전을 확인하여 취약점이 해결된 최신 버전인지 대조합니다.
gitea --version 2>/dev/null || dpkg -l | grep gitea