🇰🇷 한글 설명
Gogs 오픈소스 Git 서비스에서 발생하는 취약점으로, 0.14.3 버전 이전에는 첨부파일 요청 시 권한 확인 절차가 누락되었습니다. 이로 인해 인증되지 않은 사용자가 비공개 저장소의 Issue, Comment, Release에 포함된 첨부파일을 직접 다운로드할 수 있습니다.
💡 쉬운 설명
로그인을 하지 않은 외부인도 허락 없이 비공개 프로젝트에 올라온 파일을 몰래 다운로드할 수 있는 보안 구멍이 발견되었습니다. 파일의 고유 주소만 알면 누구나 접근이 가능한 상태입니다.
🇺🇸 원문 (English)
Gogs is an open source self-hosted Git service. Prior to 0.14.3, GET /attachments/:uuid returns the raw attachment file without verifying whether the requester has view permission for the associated Issue/Comment/Release or the repository.
In a test environment with REQUIRE_SIGNIN_VIEW = false, we confirmed that an unauthenticated user can download attachments belonging to a private repository. This vulnerability is fixed in 0.14.3.
📍 영향받는 시스템
Gogs versions prior to 0.14.3
⚔️ 공격 벡터
인증되지 않은 사용자가 특정 UUID를 포함한 GET /attachments/:uuid 요청을 통해 비공개 파일에 접근
🛡️ 대응 방법
Gogs를 최신 버전인 0.14.3 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 정보가 0.14.3 미만인 경우 해당 취약점에 노출된 상태입니다.
curl -s http://<target-ip>:<port>/api/version | grep -E '0\.[0-1][0-4]\.'